1
0
mirror of https://gitee.com/incloudcode/yexuejc-springboot.git synced 2025-08-02 16:49:31 +08:00

Compare commits

...

17 Commits

Author SHA1 Message Date
9ebaf69ecc 添加计划 2023-09-19 13:57:20 +08:00
9ce56206f5 2.x 合并到master(方便后续分支) 2023-09-19 13:44:07 +08:00
4dc52444ce
Merge pull request #6 from yexuejc/dependabot/maven/org.postgresql-postgresql-42.4.3
Bump postgresql from 42.4.1 to 42.4.3
2023-04-15 10:16:54 +08:00
dependabot[bot]
76e4b858e9
Bump postgresql from 42.4.1 to 42.4.3
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.1 to 42.4.3.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.4.1...REL42.4.3)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 22:25:40 +00:00
4c9520de70
Merge pull request #1 from yexuejc/dependabot/maven/org.mybatis-mybatis-3.5.6
Bump mybatis from 3.4.6 to 3.5.6
2022-09-08 10:06:44 +09:00
55c64e59d4
Merge pull request #4 from yexuejc/dependabot/maven/com.alibaba-fastjson-1.2.83
Bump fastjson from 1.2.49 to 1.2.83
2022-09-08 10:06:31 +09:00
53437a57e2
Merge pull request #5 from yexuejc/dependabot/maven/org.postgresql-postgresql-42.4.1
Bump postgresql from 42.2.4 to 42.4.1
2022-09-08 10:06:18 +09:00
dependabot[bot]
0dc6b8aa6d
Bump postgresql from 42.2.4 to 42.4.1
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.2.4 to 42.4.1.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.2.4...REL42.4.1)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 00:29:23 +00:00
dependabot[bot]
c23db40776
Bump fastjson from 1.2.49 to 1.2.83
Bumps [fastjson](https://github.com/alibaba/fastjson) from 1.2.49 to 1.2.83.
- [Release notes](https://github.com/alibaba/fastjson/releases)
- [Commits](https://github.com/alibaba/fastjson/compare/1.2.49...1.2.83)

---
updated-dependencies:
- dependency-name: com.alibaba:fastjson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 01:57:59 +00:00
dependabot[bot]
ab074953db
Bump mybatis from 3.4.6 to 3.5.6
Bumps [mybatis](https://github.com/mybatis/mybatis-3) from 3.4.6 to 3.5.6.
- [Release notes](https://github.com/mybatis/mybatis-3/releases)
- [Commits](https://github.com/mybatis/mybatis-3/compare/mybatis-3.4.6...mybatis-3.5.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 17:47:58 +00:00
f3b23730d6 更新说明文档 版本升级 2019-11-01 13:35:25 +08:00
4cdc2b631c 更新master 2019-07-27 11:46:56 +08:00
09f2138327 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	README.md
2018-12-03 10:56:11 +08:00
01b94cbdd2 Merge branch '1.x'
# Conflicts:
#	README.md
2018-12-03 10:55:47 +08:00
2b82d8205d 更新 MENU.md 2018-12-01 12:34:46 +08:00
0cd3709838 Merge branch '1.x'
# Conflicts:
#	README.md
2018-12-01 12:32:41 +08:00
d4ec02db64 更新文档 2018-11-20 20:48:42 +08:00
7 changed files with 290 additions and 97 deletions

197
1.x-update.md Normal file
View File

@ -0,0 +1,197 @@
yexuejc-springboot 更新内容
-------------------
#### version 1.2.2
**time2019-11-1 13:11:44** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.3.9
spring-boot-starter-parent:1.5.16.RELEASE
```
**update** <br/>
1. redis 配置修改,增加开关,更兼容
#### version 1.2.1
**time2019-7-27 09:39:24** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.3.9
spring-boot-starter-parent:1.5.16.RELEASE
```
**update** <br/>
1. 所有自动装配增加开关,默认不装配。装配方式请参考[本项目自动装配开关](doc/plugin/AutoConfigure.md)
#
#### version 1.2.0
**time2018-12-1 12:19:06** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.2.4
spring-boot-starter-parent:1.5.16.RELEASE
```
**update** <br/>
1. security多方登录第一个稳定版<br/>
支持账号登录、短信登录、第三方授权openid登录<br/>
功能链接[security重构-多方登录](doc/SECURITY.md)
---
#### version 1.1.0
**time2018-9-23 12:49:36** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.9
spring-boot-starter-parent:1.5.15.RELEASE
```
**update** <br/>
1. 升级依赖
2. 增加SSL证书忽略默认关闭
3. 本版本更新工具依赖[https://github.com/yexuejc/yexuejc-base.git](https://github.com/yexuejc/yexuejc-base.git)不向下兼容
---
#### version 1.0.15
**time2018-9-3 19:29:39** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.8
spring-boot-starter-parent:1.5.15.RELEASE
```
**update** <br/>
1. 升级依赖
---
#### version 1.0.14
**time2018-8-25 14:31:05** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.7
spring-boot-starter-parent:1.5.15.RELEASE
```
**update** <br/>
1. 升级依赖
2. 优化拦截规则:增加通配符 /**
---
#### version 1.0.13
**time2018-8-17 11:41:18** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.7
```
**update** <br/>
1. 升级base
---
#### version 1.0.12
**time2018-6-19 22:18:03** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.6
```
**update** <br/>
1. maven仓库更新
---
#
#### version 1.0.11
**time2018-6-19 22:18:03** <br/>
**branch** master <br/>
**update** <br/>
1. 更新springboot-base:1.1.5依赖
---
#### version 1.0.10
**time2018年6月14日22:31:18** <br/>
**branch** master <br/>
**update** <br/>
1. 更新springboot-base:1.1.4依赖
2. 统一编码UTF-8
---
#### version 1.0.9
**time2018年6月2日12:17:18** <br/>
**branch** master <br/>
**update** <br/>
1. 更新base依赖
---
#### 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/>
>1. 新增加密证书配置
>2. RSA迁移到[yexuejc-base:1.1.1](https://github.com/yexuejc/yexuejc-base)工程
---
##### version 1.0.6 ~~1.0.5~~
**【change:2018-5-15 09:24:37】** 1.0.5 jitpack打包失败升级版本1.0.6<br/>
**time** 2018-5-4 09:54:18<br/>
**branch** master <br/>
**update** <br/>
> [使用加密解密](doc/PARAMS_RSA_DECRYPT_ENCRYPT.md)
>
>1.增加json入参解密、出参加密
---
##### version 1.0.4
**time** 2018-5-4 09:54:18<br/>
**branch** master <br/>
**update** <br/>
>1.更新springboot至1.5.12.RELEASE
---
#### version 1.0.3
**time** 2018-4-9 15:24:13<br/>
**branch** master <br/>
**update** <br/>
>1.变更包名
---
#### version 1.0.2
**time** 2018-4-1 17:00:15<br/>
**env** prod <br/>
**update** <br/>
>1.修复工具包ApiVO
---
#### version 0.0.2
**time** 2018-1-31 13:48:34<br/>
**env** ivt <br/>
**update** <br/>
>1.集成日志【security】
---
##### version 0.0.1
**time** 2018-1-31 12:16:10<br/>
**env** ivt <br/>
**update** <br/>
>1.第一次上传,集成通用环境
---

View File

@ -1,6 +1,5 @@
yexuejc-springboot 更新内容
-------------------
#### version 2.1.3
**time2023-9-19 11:15:33** <br/>
**branch** 2.x <br/>
@ -26,8 +25,8 @@ spring-boot-starter-parent:1.5.16.RELEASE
**update** <br/>
1. 更新依赖
2. 更新仓库地址 https://nexus.yexuejc.club/ 为 https://nexus.yexuejc.top/
---
#### version 2.1.1
**time2019-11-1 13:32:07** <br/>
**branch** master <br/>
@ -38,7 +37,8 @@ spring-boot-starter-parent:2.0.5.RELEASE
```
**update** <br/>
1. redis 配置修改,增加开关,更兼容
---
#### version 2.1.0
**time2019-7-24 18:30:49** <br/>
**branch** master <br/>
@ -50,7 +50,7 @@ spring-boot-starter-parent:2.0.5.RELEASE
**update** <br/>
1. 所有自动装配增加开关,默认不装配。装配方式请参考[本项目自动装配开关](doc/plugin/AutoConfigure.md)
---
#
#### version 2.0.6
**time2019年4月2日21:08:453** <br/>
@ -64,7 +64,7 @@ spring-boot-starter-parent:2.0.5.RELEASE
1. 升级依赖
2. 出入参加密 ParamsRequestBodyAdvice/ParamsResponseBodyAdvice 增加开关(默认关)
---
#
#### version 2.0.5
@ -80,7 +80,7 @@ spring-boot-starter-parent:2.0.5.RELEASE
支持账号登录、短信登录、第三方授权openid登录<br/>
功能链接[security重构-多方登录](doc/SECURITY.md)
---
#
#### version 2.0.3
**time2018-11-9 16:58:06** <br/>
@ -93,7 +93,7 @@ spring-boot-starter-parent:2.0.5.RELEASE
**update** <br/>
1. 集成springboot security 多方登录
2. 文档拆分
---
#
#### version 2.0.2
@ -122,8 +122,8 @@ logging.level.root=info
logging.path=/logs/yexuejc-springboot-parent
```
#
---
#### version 2.0.1
**time2018-9-28 15:25:30** <br/>
**branch** 2.x <br/>
@ -134,8 +134,8 @@ spring-boot-starter-parent:2.0.5.RELEASE
```
**update** <br/>
1. 新增声明包
#
---
#### version 2.0.0
**time2018-9-26 16:55:00** <br/>
**branch** 2.x <br/>
@ -147,8 +147,8 @@ spring-boot-starter-parent:2.0.5.RELEASE
**update** <br/>
1. 升级依赖
2. 2.x分支将基于springboot 2.x 开发
#
---
#### version 1.1.0
**time2018-9-23 12:49:36** <br/>
**branch** master <br/>
@ -161,8 +161,8 @@ spring-boot-starter-parent:1.5.15.RELEASE
1. 升级依赖
2. 增加SSL证书忽略默认关闭
3. 本版本更新工具依赖[https://github.com/yexuejc/yexuejc-base.git](https://github.com/yexuejc/yexuejc-base.git)不向下兼容
#
---
#### version 1.0.15
**time2018-9-3 19:29:39** <br/>
**branch** master <br/>
@ -173,8 +173,8 @@ spring-boot-starter-parent:1.5.15.RELEASE
```
**update** <br/>
1. 升级依赖
#
---
#### version 1.0.14
**time2018-8-25 14:31:05** <br/>
**branch** master <br/>
@ -186,8 +186,8 @@ spring-boot-starter-parent:1.5.15.RELEASE
**update** <br/>
1. 升级依赖
2. 优化拦截规则:增加通配符 /**
#
---
#### version 1.0.13
**time2018-8-17 11:41:18** <br/>
**branch** master <br/>
@ -197,8 +197,8 @@ springboot-base:1.1.7
```
**update** <br/>
1. 升级base
#
---
#### version 1.0.12
**time2018-6-19 22:18:03** <br/>
**branch** master <br/>
@ -208,32 +208,30 @@ springboot-base:1.1.6
```
**update** <br/>
1. maven仓库更新
---
#
#### version 1.0.11
**time2018-6-19 22:18:03** <br/>
**branch** master <br/>
**update** <br/>
1. 更新springboot-base:1.1.5依赖
#
---
#### version 1.0.10
**time2018年6月14日22:31:18** <br/>
**branch** master <br/>
**update** <br/>
1. 更新springboot-base:1.1.4依赖
2. 统一编码UTF-8
#
---
#### version 1.0.9
**time2018年6月2日12:17:18** <br/>
**branch** master <br/>
**update** <br/>
1. 更新base依赖
#
---
#### version 1.0.8
**time** 2018-5-4 09:54:18<br/>
**branch** master <br/>
@ -252,7 +250,7 @@ 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/>
@ -260,7 +258,7 @@ yexuejc.http.encrypt.private-pwd=密码
>1. 新增加密证书配置
>2. RSA迁移到[yexuejc-base:1.1.1](https://github.com/yexuejc/yexuejc-base)工程
---
#
##### version 1.0.6 ~~1.0.5~~
**【change:2018-5-15 09:24:37】** 1.0.5 jitpack打包失败升级版本1.0.6<br/>
**time** 2018-5-4 09:54:18<br/>
@ -269,34 +267,32 @@ yexuejc.http.encrypt.private-pwd=密码
> [使用加密解密](doc/PARAMS_RSA_DECRYPT_ENCRYPT.md)
>
>1.增加json入参解密、出参加密
---
#
##### version 1.0.4
**time** 2018-5-4 09:54:18<br/>
**branch** master <br/>
**update** <br/>
>1.更新springboot至1.5.12.RELEASE
---
#
#### version 1.0.3
**time** 2018-4-9 15:24:13<br/>
**branch** master <br/>
**update** <br/>
>1.变更包名
---
#
#### version 1.0.2
**time** 2018-4-1 17:00:15<br/>
**env** prod <br/>
**update** <br/>
>1.修复工具包ApiVO
---
#
#### version 0.0.2
**time** 2018-1-31 13:48:34<br/>
**env** ivt <br/>
**update** <br/>
>1.集成日志【security】
---
#
##### version 0.0.1
**time** 2018-1-31 12:16:10<br/>
@ -304,4 +300,4 @@ yexuejc.http.encrypt.private-pwd=密码
**update** <br/>
>1.第一次上传,集成通用环境
---
#

View File

@ -1,10 +1,12 @@
# yexuejc-springboot
### 说明
>本分支基于 springboot 2.x 开发版本号也将保持2.x
>1.x分支继续基于 springboot 1.x开发
> 基于springboot版本分别维护1.x(对应springboot1.5.16.RELEASE) 2.x(对应springboot2.0.5.RELEASE) 分支 <br>
> master不再提供源代码源代码请到具体分支中查看
#### 项目介绍
基于springboot maven 封装可继承基础工程
内含parent和base工程可分开使用<br/>
@ -12,10 +14,13 @@ parent版本封装<br/>
base:功能封装
#### 最新版本
>yexuejc.springboot.version=2.1.1 <br>
>yexuejc.base.version=1.3.9
* 1.x yexuejc.springboot.version=1.2.2 <br>
* 2.x yexuejc.springboot.version=2.1.3 <br>
* yexuejc.base.version=1.5.0-jre8
pom.xml
```
<!--parent 引用-->
<parent>
@ -34,22 +39,22 @@ pom.xml
<!--推荐使用-->
<!--https://gitee.com/incloudcode/yexuejc-base.git-->
<dependency>
<groupId>com.yexuejc.base</groupId>
<groupId>top.yexuejc</groupId>
<artifactId>yexuejc-base</artifactId>
<version>${yexuejc.base.version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>yexuejc-nexus-public</id>
<name>yexuejc-nexus-public</name>
<url>https://nexus.yexuejc.club/repository/maven-public/</url>
<id>yexuejc-maven</id>
<name>yexuejc maven</name>
<url>https://nexus.yexuejc.top/repository/maven-public/</url>
</repository>
</repositories>
```
#### 目录
<table>
<tr>
<td>\src\main\java</td>
@ -101,9 +106,24 @@ pom.xml
</tr>
</table>
#### 版本更新
[更新记录](UPDATE.md)
持续集成中...
<br/>
集成到自己项目前请先阅读文档,或者先运行示例工程
更新记录: [1.x](1.x-update.md)、[2.x](2.x-update.md)
<br/>
[相关功能使用指南](doc/MENU.md)
### 计划
- [ ] 升级jdk版本到openjdk-11
- [ ] 优化原有框架
- [ ] 请求日志优化(适配多方日志框架)
- [ ] 请求拦截器优化
- [ ] 增加本地缓存支持ehcache3
- [ ] 多种数据库支持H2,Mysql,PostgreSQL
- [ ] 多种数据库框架支持jpa,mybatis
- [ ] 全局异常优化
- [ ] 多语言支持

View File

@ -56,7 +56,6 @@
<WXPay-SDK-Java.version>0.0.4</WXPay-SDK-Java.version>
<postgresql.version>42.6.0</postgresql.version>
<!--thymeleaf 相关-->
<thymeleaf.version>3.1.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>3.3.0</thymeleaf-layout-dialect.version>
<thymeleaf-extras-springsecurity4.version>3.0.5.RELEASE</thymeleaf-extras-springsecurity4.version>

View File

@ -7,21 +7,21 @@ logging.path=/logs/yexuejc-springboot-parent
#========================================================================================================================
#========================================================================================================================
#\u6838\u5FC3
#\u5F00\u542F\u529F\u80FD redis webmvc
#核心
#开启功能 redis webmvc
yexuejc.autoconfigure.redis.enable=true
#webmvc \u5305\u542B\u4EE5\u4E0B\u529F\u80FD
#webmvc 包含以下功能
yexuejc.autoconfigure.webmvc.enable=true
#\u5168\u5C40\u5F02\u5E38\u5904\u7406
#全局异常处理
yexuejc.ssl-ignore.enable=true
#\u5F00\u542FHTTPS\uFF08SSL\uFF09\u8BF7\u6C42\u8BC1\u4E66\u9A8C\u8BC1\u5FFD\u7565
#开启HTTPSSSL请求证书验证忽略
yexuejc.global.exception.enable=true
#\u5F00\u542F\u6821\u9A8C\u8FC7\u6EE4\u5668\uFF0C\u76EE\u524D\u6821\u9A8CHTTP Header\u662F\u5426\u7B26\u5408\u89C4\u8303
#开启校验过滤器目前校验HTTP Header是否符合规范
yexuejc.web.validation-filter.enable=true
# \u62E6\u622A\u7C7B\u578B\uFF08\u8BF7\u6C42\u8DEF\u5F84\uFF09\uFF1A0\u5FFD\u7565\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u62E6\u622A\u5168\u90E8\uFF1B1\u62E6\u622A\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u4E00\u4E2A\u90FD\u4E0D\u62E6\u622A
# 拦截类型请求路径0忽略模式默认拦截全部1拦截模式默认一个都不拦截
#yexuejc.http.filter=0
yexuejc.http.filter.type=1
#\u5FFD\u7565\u8DEF\u5F84\uFF1A\u793A\u4F8B\u653E\u5F00swagger
#忽略路径:示例放开swagger
#yexuejc.http.filter.ignored=/,/swagger/**,/error,/v2/api-docs,/webjars/**
#========================================================================================================================
#========================================================================================================================
@ -29,22 +29,22 @@ yexuejc.http.filter.type=1
yexuejc.http.encrypt.encrypt=true
yexuejc.http.encrypt.decrypt=true
#\u914D\u7F6E\u5BC6\u94A5\u65B9\u5F0F
#配置密钥方式
#yexuejc.http.encrypt.private-key=MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAiSo5blJ9-QJ0_QElcy5AaRTq-3oO4lJ8PvIOIt-Xr5SUFODVj3DUbiy6_0bxQYO3NiYHlXPb37UVV3jjlXJsXwIDAQABAkBE0WOJH2hGs93gRl_0vwLf9ffDfkTTdlER_73p70aad3QZRslEkinQH7G5aE_DgBm5m72TCeH-PD2FZ2lwtavBAiEAvnRown5Lpqbl0tN_OUxr_e1u9d_-8dNL_JEETO7BZCECIQC4XtY-18j0bVVLxaXPjKQ00D59yntwObihDNyRK0nAfwIgHPHEGgrnpGQo-Wl7JFIg925mNqfcLxRVsAS6CpcefQECIQCUsLdsmy6QIhTmNRJSXoSXq1KatE_05DhIekzwLs8eFQIgfMawMiu52ZxBI5_pZ7ancQZ6Dsxl45utFqJShzV1pio
#yexuejc.http.encrypt.public-key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIkqOW5SffkCdP0BJXMuQGkU6vt6DuJSfD7yDiLfl6-UlBTg1Y9w1G4suv9G8UGDtzYmB5Vz29-1FVd445VybF8CAwEAAQ
#\u914D\u7F6E\u8BC1\u4E66\u65B9\u5F0F
#配置证书方式
yexuejc.http.encrypt.private-key-path=/lgfishing.keystore
yexuejc.http.encrypt.private-alias=lgfishing
yexuejc.http.encrypt.private-pwd=lgfishing2018
#\u7F16\u7801
#编码
spring.http.encoding.force=true
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding=UTF-8
#\u662F\u5426\u5F00\u542FHTTPS\uFF08SSL\uFF09\u8BF7\u6C42\u8BC1\u4E66\u9A8C\u8BC1\u5FFD\u7565\uFF1A\u9ED8\u8BA4false
#是否开启HTTPSSSL请求证书验证忽略默认false
yexuejc.enable.ssl-ignore=true
@ -66,9 +66,9 @@ yexuejc.alibaba.oss.bucket=guansichou
#========================================================================================================================
# security\u76F8\u5173
# security相关
#reids
#\u5F00\u542F\u6307\u5B9Aredis\u5E93db0\u9ED8\u8BA4\u5F00\u542F
#开启指定redis库db0默认开启
yexuejc.redis.db1=true
spring.redis.jedis.pool.max-active=100
spring.redis.jedis.pool.max-idle=10
@ -93,19 +93,19 @@ spring.datasource.data=classpath:db/data.sql
#========================================================================================================================
#mybatis-plus
mybatis-plus.mapper-locations=classpath*:mapper/*.xml
#\u5B9E\u4F53\u626B\u63CF\uFF0C\u591A\u4E2Apackage\u7528\u9017\u53F7\u6216\u8005\u5206\u53F7\u5206\u9694
#实体扫描多个package用逗号或者分号分隔
mybatis-plus.type-aliases-package=com.yexuejc.springboot.base.security.domain
#\u4E3B\u952E\u7C7B\u578B0:"\u6570\u636E\u5E93ID\u81EA\u589E", 1:"\u7528\u6237\u8F93\u5165ID",2:"\u8BE5\u7C7B\u578B\u4E3A\u672A\u8BBE\u7F6E\u4E3B\u952E\u7C7B\u578B", 3:"\u5168\u5C40\u552F\u4E00ID UUID",4:\u5168\u5C40\u552F\u4E00ID (UUID),5:\u5B57\u7B26\u4E32\u5168\u5C40\u552F\u4E00ID (idWorker \u7684\u5B57\u7B26\u4E32\u8868\u793A);
#主键类型0:"数据库ID自增", 1:"用户输入ID",2:"该类型为未设置主键类型", 3:"全局唯一ID UUID",4:全局唯一ID (UUID),5:字符串全局唯一ID (idWorker 的字符串表示);
mybatis-plus.global-config.db-config.id-type=uuid
mybatis-plus.global-config.db-config.db-type=POSTGRE_SQL
#\u5B57\u6BB5\u7B56\u7565 0:"\u5FFD\u7565\u5224\u65AD",1:"\u975E NULL \u5224\u65AD"),2:"\u975E\u7A7A\u5224\u65AD"
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
mybatis-plus.global-config.db-config.field-strategy=not_empty
#\u9A7C\u5CF0\u4E0B\u5212\u7EBF\u8F6C\u6362
#驼峰下划线转换
mybatis-plus.global-config.db-config.column-underline=true
#\u903B\u8F91\u5220\u9664\u914D\u7F6E\uFF08\u4E0B\u97623\u4E2A\u914D\u7F6E\uFF09
#逻辑删除配置下面3个配置
mybatis-plus.global-config.db-config.logic-delete-value=true
mybatis-plus.global-config.db-config.logic-not-delete-value=false
#\u914D\u7F6E\u8FD4\u56DE\u6570\u636E\u5E93(column\u4E0B\u5212\u7EBF\u547D\u540D&&\u8FD4\u56DEjava\u5B9E\u4F53\u662F\u9A7C\u5CF0\u547D\u540D)\uFF0C\u81EA\u52A8\u5339\u914D\u65E0\u9700as\uFF08\u6CA1\u5F00\u542F\u8FD9\u4E2A\uFF0CSQL\u9700\u8981\u5199as\uFF1A select user_id as userId\uFF09
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名)自动匹配无需as没开启这个SQL需要写as select user_id as userId
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
#========================================================================================================================

View File

@ -9,27 +9,8 @@
<packaging>pom</packaging>
<name>yexuejc-springboot-example</name>
<parent>
<groupId>com.yexuejc.springboot</groupId>
<artifactId>yexuejc-springboot-parent</artifactId>
<version>2.1.3</version>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.verbose>true</maven.compiler.verbose>
<yexuejc-springboot.version>${parent.version}</yexuejc-springboot.version>
</properties>
<modules>
<module>yexuejc-springboot-simple</module>
<module>springboot-security-login-simple</module>
</modules>
</project>

View File

@ -3,27 +3,27 @@ logging.level.root=info
#========================================================================================================================
#========================================================================================================================
#\u6838\u5FC3
#\u5F00\u542F\u529F\u80FD redis webmvc
#核心
#开启功能 redis webmvc
yexuejc.autoconfigure.redis.enable=true
#webmvc \u5305\u542B\u4EE5\u4E0B\u529F\u80FD
#webmvc 包含以下功能
yexuejc.autoconfigure.webmvc.enable=true
#\u5168\u5C40\u5F02\u5E38\u5904\u7406
#全局异常处理
yexuejc.ssl-ignore.enable=true
#\u5F00\u542FHTTPS\uFF08SSL\uFF09\u8BF7\u6C42\u8BC1\u4E66\u9A8C\u8BC1\u5FFD\u7565
#开启HTTPSSSL请求证书验证忽略
yexuejc.global.exception.enable=true
#\u5F00\u542F\u6821\u9A8C\u8FC7\u6EE4\u5668\uFF0C\u76EE\u524D\u6821\u9A8CHTTP Header\u662F\u5426\u7B26\u5408\u89C4\u8303
#开启校验过滤器目前校验HTTP Header是否符合规范
yexuejc.web.validation-filter.enable=true
# \u62E6\u622A\u7C7B\u578B\uFF08\u8BF7\u6C42\u8DEF\u5F84\uFF09\uFF1A0\u5FFD\u7565\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u62E6\u622A\u5168\u90E8\uFF1B1\u62E6\u622A\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u4E00\u4E2A\u90FD\u4E0D\u62E6\u622A
# 拦截类型请求路径0忽略模式默认拦截全部1拦截模式默认一个都不拦截
yexuejc.http.filter=0
#\u5FFD\u7565\u8DEF\u5F84\uFF1A\u793A\u4F8B\u653E\u5F00swagger
#忽略路径:示例放开swagger
yexuejc.http.filter.ignored=/,/swagger/**,/error,/v2/api-docs,/webjars/**
#========================================================================================================================
#========================================================================================================================
#========================================================================================================================
# security\u76F8\u5173
# security相关
#reids
#\u5F00\u542F\u6307\u5B9Aredis\u5E93db0\u9ED8\u8BA4\u5F00\u542F
#开启指定redis库db0默认开启
yexuejc.redis.db1=true
spring.redis.jedis.pool.max-active=100
spring.redis.jedis.pool.max-idle=10
@ -48,19 +48,19 @@ spring.datasource.data=classpath:db/data.sql
#========================================================================================================================
#mybatis-plus
mybatis-plus.mapper-locations=classpath*:mapper/*.xml
#\u5B9E\u4F53\u626B\u63CF\uFF0C\u591A\u4E2Apackage\u7528\u9017\u53F7\u6216\u8005\u5206\u53F7\u5206\u9694
#实体扫描多个package用逗号或者分号分隔
mybatis-plus.type-aliases-package=com.yexuejc.springboot.base.security.domain
#\u4E3B\u952E\u7C7B\u578B0:"\u6570\u636E\u5E93ID\u81EA\u589E", 1:"\u7528\u6237\u8F93\u5165ID",2:"\u8BE5\u7C7B\u578B\u4E3A\u672A\u8BBE\u7F6E\u4E3B\u952E\u7C7B\u578B", 3:"\u5168\u5C40\u552F\u4E00ID UUID",4:\u5168\u5C40\u552F\u4E00ID (UUID),5:\u5B57\u7B26\u4E32\u5168\u5C40\u552F\u4E00ID (idWorker \u7684\u5B57\u7B26\u4E32\u8868\u793A);
#主键类型0:"数据库ID自增", 1:"用户输入ID",2:"该类型为未设置主键类型", 3:"全局唯一ID UUID",4:全局唯一ID (UUID),5:字符串全局唯一ID (idWorker 的字符串表示);
mybatis-plus.global-config.db-config.id-type=uuid
mybatis-plus.global-config.db-config.db-type=POSTGRE_SQL
#\u5B57\u6BB5\u7B56\u7565 0:"\u5FFD\u7565\u5224\u65AD",1:"\u975E NULL \u5224\u65AD"),2:"\u975E\u7A7A\u5224\u65AD"
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
mybatis-plus.global-config.db-config.field-strategy=not_empty
#\u9A7C\u5CF0\u4E0B\u5212\u7EBF\u8F6C\u6362
#驼峰下划线转换
mybatis-plus.global-config.db-config.column-underline=true
#\u903B\u8F91\u5220\u9664\u914D\u7F6E\uFF08\u4E0B\u97623\u4E2A\u914D\u7F6E\uFF09
#逻辑删除配置下面3个配置
mybatis-plus.global-config.db-config.logic-delete-value=true
mybatis-plus.global-config.db-config.logic-not-delete-value=false
#\u914D\u7F6E\u8FD4\u56DE\u6570\u636E\u5E93(column\u4E0B\u5212\u7EBF\u547D\u540D&&\u8FD4\u56DEjava\u5B9E\u4F53\u662F\u9A7C\u5CF0\u547D\u540D)\uFF0C\u81EA\u52A8\u5339\u914D\u65E0\u9700as\uFF08\u6CA1\u5F00\u542F\u8FD9\u4E2A\uFF0CSQL\u9700\u8981\u5199as\uFF1A select user_id as userId\uFF09
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名)自动匹配无需as没开启这个SQL需要写as select user_id as userId
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
#========================================================================================================================