mirror of
https://gitee.com/incloudcode/yexuejc-springboot.git
synced 2025-09-29 03:13:21 +08:00
修复依赖问题
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<groupId>com.yexuejc.springboot</groupId>
|
||||
<artifactId>yexuejc-springboot-parent</artifactId>
|
||||
<version>1.0.7</version>
|
||||
<version>1.0.8</version>
|
||||
<!-- 本地打包:使用相对关联路径 -->
|
||||
<!--<relativePath>../../yexuejc</relativePath>-->
|
||||
</parent>
|
||||
@@ -22,14 +22,15 @@
|
||||
|
||||
<dependencies>
|
||||
<!--基础包-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.yexuejc.base</groupId>-->
|
||||
<!--<artifactId>yexuejc-base</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.github.yexuejc</groupId>
|
||||
<groupId>com.yexuejc.base</groupId>
|
||||
<artifactId>yexuejc-base</artifactId>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.github.yexuejc</groupId>-->
|
||||
<!--<artifactId>yexuejc-base</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!-- 使用springMVC -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -78,14 +79,6 @@
|
||||
<artifactId>jedis</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.6</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
|
@@ -30,7 +30,7 @@ import java.security.interfaces.RSAPrivateKey;
|
||||
* @author: maxf
|
||||
* @date: 2018/5/12 22:49
|
||||
*/
|
||||
@ControllerAdvice(basePackages = "com")
|
||||
@ControllerAdvice
|
||||
@EnableConfigurationProperties(RsaProperties.class)
|
||||
public class ParamsRequestBodyAdvice implements RequestBodyAdvice {
|
||||
|
||||
|
@@ -28,7 +28,7 @@ import java.util.Map;
|
||||
* @author: maxf
|
||||
* @date: 2018/5/12 22:50
|
||||
*/
|
||||
@ControllerAdvice(basePackages = "com")
|
||||
@ControllerAdvice
|
||||
@EnableConfigurationProperties(RsaProperties.class)
|
||||
public class ParamsResponseBodyAdvice implements ResponseBodyAdvice {
|
||||
|
||||
|
@@ -1,4 +1,7 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.yexuejc.springboot.base.autoconfigure.WebAutoConfiguration,\
|
||||
com.yexuejc.springboot.base.autoconfigure.OssAutoConfiguration,\
|
||||
com.yexuejc.springboot.base.autoconfigure.MutiRedisAutoConfiguration
|
||||
com.yexuejc.springboot.base.autoconfigure.MutiRedisAutoConfiguration,\
|
||||
com.yexuejc.springboot.base.filter.ParamsRequestBodyAdvice,\
|
||||
com.yexuejc.springboot.base.filter.ParamsResponseBodyAdvice
|
||||
|
||||
|
@@ -4,7 +4,6 @@ import com.yexuejc.base.http.Resps;
|
||||
import com.yexuejc.base.pojo.PagerVO;
|
||||
import com.yexuejc.base.util.JsonUtil;
|
||||
import com.yexuejc.base.util.StrUtil;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@@ -27,7 +26,7 @@ public class IndexCtrl {
|
||||
}
|
||||
|
||||
@RequestMapping(value = {"/2"})
|
||||
public Resps a(String name, @Param("name") String pwd) {
|
||||
public Resps a(String name, String pwd) {
|
||||
System.out.println("请求参数:name = [" + name + "], pwd = [" + pwd + "]");
|
||||
return Resps.success("请求成功").setSucc("id>" + StrUtil.genUUID());
|
||||
}
|
||||
|
Reference in New Issue
Block a user