mirror of
https://gitee.com/incloudcode/yexuejc-springboot.git
synced 2025-07-18 01:37:27 +08:00
修复依赖问题
This commit is contained in:
parent
f1cdbf7549
commit
3e2b3d56de
@ -9,7 +9,7 @@ parent:版本封装<br/>
|
||||
base:功能封装
|
||||
|
||||
#### 引用
|
||||
>yexuejc.springboot.version=1.0.7
|
||||
>yexuejc.springboot.version=1.0.8
|
||||
|
||||
pom.xml
|
||||
```
|
||||
|
21
UPDATE.md
21
UPDATE.md
@ -1,7 +1,26 @@
|
||||
uselaw-base 更新内容
|
||||
-------------------
|
||||
|
||||
#### version :1.0.7
|
||||
#### version :1.0.8
|
||||
**time:** 2018-5-4 09:54:18<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
1. 修复依赖
|
||||
2. 使用加密:配置密钥方式/配置密钥方式 二选一
|
||||
```
|
||||
#加密开关
|
||||
yexuejc.http.encrypt.encrypt=true
|
||||
yexuejc.http.encrypt.decrypt=true
|
||||
#配置密钥方式
|
||||
yexuejc.http.encrypt.private-key=私钥
|
||||
#配置证书方式
|
||||
yexuejc.http.encrypt.private-key-path=/lgfishing.keystore 路径
|
||||
yexuejc.http.encrypt.private-alias=别名
|
||||
yexuejc.http.encrypt.private-pwd=密码
|
||||
```
|
||||
|
||||
#
|
||||
##### version :1.0.7
|
||||
**time:** 2018-5-4 09:54:18<br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
|
3
pom.xml
3
pom.xml
@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>com.yexuejc.springboot</groupId>
|
||||
<artifactId>yexuejc-springboot-parent</artifactId>
|
||||
<version>1.0.7</version>
|
||||
<version>1.0.8</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
@ -105,6 +105,7 @@
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${springfox-swagger2.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 使用mybatis的starter -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user