修改配置文件

This commit is contained in:
wangyan 2022-04-26 13:28:49 +08:00
parent d9897564e5
commit c91c036ee3
7 changed files with 15 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# 吉林省农业资源薪资平台 # 吉林省农业资源信息平台
# 创建项目必须要做的事 # 创建项目必须要做的事

View File

@ -6,7 +6,7 @@
<artifactId>nyzy</artifactId> <artifactId>nyzy</artifactId>
<version>0.0.1</version> <version>0.0.1</version>
<name>nyzy</name> <name>nyzy</name>
<description>吉林省农业资源薪资平台</description> <description>吉林省农业资源信息平台</description>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -139,7 +139,8 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/gateway/**/delete", "jwt");//禁止可修改的免登陆 filterChainDefinitionMap.put("/gateway/**/delete", "jwt");//禁止可修改的免登陆
filterChainDefinitionMap.put("/gateway/**/deleteBatch", "jwt");//禁止可修改的免登陆 filterChainDefinitionMap.put("/gateway/**/deleteBatch", "jwt");//禁止可修改的免登陆
//前台免登陆 //前台免登陆
filterChainDefinitionMap.put("/gateway/**/", "anon");//前台免登陆 // filterChainDefinitionMap.put("/gateway/**/", "anon");//前台免登陆
filterChainDefinitionMap.put("/gateway/**", "anon");//前台免登陆
//性能监控 TODO 存在安全漏洞 //性能监控 TODO 存在安全漏洞
//filterChainDefinitionMap.put("/actuator/**", "anon"); //filterChainDefinitionMap.put("/actuator/**", "anon");

View File

@ -7,7 +7,7 @@ server:
include-stacktrace: ALWAYS include-stacktrace: ALWAYS
include-message: ALWAYS include-message: ALWAYS
servlet: servlet:
context-path: /gjc context-path: /nyzy
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
@ -131,7 +131,7 @@ spring:
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/ndgjc_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://127.0.0.1:3306/nyzy_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: admin password: admin
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver

View File

@ -7,7 +7,7 @@ server:
include-stacktrace: ALWAYS include-stacktrace: ALWAYS
include-message: ALWAYS include-message: ALWAYS
servlet: servlet:
context-path: /gjc context-path: /nyzy
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
@ -131,7 +131,7 @@ spring:
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/ndgjc_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://127.0.0.1:3306/nyzy_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: root password: root
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
@ -176,9 +176,9 @@ jeecg :
uploadType: alioss uploadType: alioss
path : path :
#文件上传根目录 设置 #文件上传根目录 设置
upload: D://opt//gjc//upFiles upload: D://opt//nyzy//upFiles
#webapp文件路径 #webapp文件路径
webapp: D://opt//gjc//webapp webapp: D://opt//nyzy//webapp
shiro: shiro:
excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo
#阿里云oss存储配置 #阿里云oss存储配置

View File

@ -131,9 +131,9 @@ spring:
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3307/ndgjc_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://127.0.0.1:3307/nyzy_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: root password: admin
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置 # 多数据源配置
#multi-datasource1: #multi-datasource1:

View File

@ -1,9 +1,9 @@
#mysql #mysql
diver_name=com.mysql.cj.jdbc.Driver diver_name=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://127.0.0.1:3307/ndgjc_jeecg_db?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai url=jdbc:mysql://127.0.0.1:3306/nyzy_jeecg_db?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
username=root username=root
password=root password=admin
database_name=ndgjc_jeecg_db database_name=nyzy_jeecg_db
#oracle #oracle
#diver_name=oracle.jdbc.driver.OracleDriver #diver_name=oracle.jdbc.driver.OracleDriver