配置文件更新
This commit is contained in:
parent
1eb313e825
commit
f29cc76714
|
|
@ -18,11 +18,4 @@
|
|||
<description>
|
||||
bonus-api系统接口
|
||||
</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -1,29 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 21997
|
||||
port: 8200
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: bonus-tcp
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: Jjsp@nacos2023
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: ljzhgd
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: ljzhgd
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8200
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8200
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -1,7 +1,3 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8200
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
application:
|
||||
|
|
@ -9,30 +5,13 @@ spring:
|
|||
name: gz-att-auth
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: @profiles.active@
|
||||
cloud:
|
||||
loadbalancer:
|
||||
# 关闭Ribbon的负载均衡器
|
||||
ribbon:
|
||||
enabled: false
|
||||
# 开启Nacos的负载均衡器
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: @nacos.server@
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: @nacos.server@
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
active: local
|
||||
|
||||
management:
|
||||
server:
|
||||
port: -1
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: [] # 不暴露任何端点
|
||||
enabled-by-default: false
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8100
|
||||
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8100
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8100
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -1,7 +1,3 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8100
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
application:
|
||||
|
|
@ -9,33 +5,8 @@ spring:
|
|||
name: gz-att-gateway
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: @profiles.active@
|
||||
cloud:
|
||||
loadbalancer:
|
||||
# 关闭Ribbon的负载均衡器
|
||||
ribbon:
|
||||
enabled: false
|
||||
# 开启Nacos的负载均衡器
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: @nacos.server@
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: @nacos.server@
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
active: local
|
||||
|
||||
#系统 自动 加解密开关
|
||||
system:
|
||||
#返回数据加密
|
||||
|
|
@ -45,4 +16,12 @@ system:
|
|||
#加密组件
|
||||
jasypt:
|
||||
encryptor:
|
||||
password: Encrypt
|
||||
password: Encrypt
|
||||
management:
|
||||
server:
|
||||
port: -1
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: [] # 不暴露任何端点
|
||||
enabled-by-default: false
|
||||
|
|
|
|||
|
|
@ -16,50 +16,50 @@
|
|||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- FastDFS -->
|
||||
<dependency>
|
||||
<groupId>com.github.tobato</groupId>
|
||||
<artifactId>fastdfs-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Minio -->
|
||||
<dependency>
|
||||
<groupId>io.minio</groupId>
|
||||
<artifactId>minio</artifactId>
|
||||
<version>${minio.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Api System -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-api-system</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
|
|
@ -71,10 +71,7 @@
|
|||
<artifactId>commons-net</artifactId>
|
||||
<version>3.9.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-entity</artifactId>
|
||||
|
|
@ -106,5 +103,5 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -16,38 +16,43 @@
|
|||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Quartz -->
|
||||
<dependency>
|
||||
<groupId>org.quartz-scheduler</groupId>
|
||||
|
|
@ -59,19 +64,29 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- bonus Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- bonus Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-datascope</artifactId>
|
||||
</dependency>
|
||||
<!-- bonus Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
|
|
@ -101,5 +116,5 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8300
|
||||
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
path:
|
||||
wechatDevUrl: http://192.168.0.14:21907/gz_att_wechat
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8300
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
path:
|
||||
wechatDevUrl: http://127.0.0.1:21907/gz_att_wechat
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8300
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
path:
|
||||
wechatDevUrl: https://jj.jypxks.com/gz_att_wechat
|
||||
|
|
@ -1,29 +1,8 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9203
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: bonus-job
|
||||
name: gz-att-job
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f1fcd3ea-9460-4597-8acd-0f334527017c
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f1fcd3ea-9460-4597-8acd-0f334527017c
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
active: local
|
||||
|
|
|
|||
|
|
@ -8,70 +8,70 @@
|
|||
<version>24.6.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
<artifactId>gz_att_system</artifactId>
|
||||
|
||||
<description>
|
||||
bonus-modules-system系统模块
|
||||
</description>
|
||||
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>bonus-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- bonus Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.bonus</groupId>
|
||||
|
|
@ -119,5 +119,5 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 1810
|
||||
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_attendance_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 1810
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: gz_att_fly_test
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 1810
|
||||
|
||||
## Spring 测试环境
|
||||
spring:
|
||||
cloud:
|
||||
loadbalancer:
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 10.1.0.142:8848
|
||||
namespace: gz_att_prod
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
|
|
@ -1,38 +1,47 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 1810
|
||||
|
||||
## Spring 测试环境
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: gz-att-system
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: @profiles.active@
|
||||
cloud:
|
||||
loadbalancer:
|
||||
# 关闭Ribbon的负载均衡器
|
||||
ribbon:
|
||||
enabled: false
|
||||
# 开启Nacos的负载均衡器
|
||||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: @nacos.server@
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: @nacos.server@
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: @name.space@
|
||||
# username: @username@
|
||||
# password: @password@
|
||||
active: local
|
||||
task:
|
||||
scheduling:
|
||||
pool:
|
||||
size: 1 # 定时任务线程池大小
|
||||
thread-name-prefix: scheduled-task- # 定时任务线程名称前缀
|
||||
|
||||
# 跨域配置
|
||||
# 允许的源(多个用逗号分隔)
|
||||
cors:
|
||||
allowed-origins: http://localhost:*,http://127.0.0.1:*,http://192.168.0.14:*,http://10.1.0.*:*
|
||||
allowed-methods: GET,POST,PUT,DELETE,OPTIONS
|
||||
allowed-headers: Content-Type,X-Requested-With,Token,Authorization,X-Custom-Header
|
||||
allow-credentials: true
|
||||
max-age: 3600
|
||||
# 安全头配置
|
||||
# 是否启用严格的安全头
|
||||
security:
|
||||
headers:
|
||||
strict: true
|
||||
clear-server-info: true
|
||||
hsts:
|
||||
enabled: true
|
||||
|
||||
|
||||
# CSP和安全头配置
|
||||
# 是否启用CSP报告模式(true为仅报告,false为强制执行)
|
||||
csp:
|
||||
report-only: false
|
||||
allow-iframe: true
|
||||
enable-webgl: true
|
||||
|
||||
management:
|
||||
server:
|
||||
port: -1
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: [] # 不暴露任何端点
|
||||
enabled-by-default: false
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@
|
|||
<module>bonus-gen</module>
|
||||
<module>bonus-job</module>
|
||||
<module>bonus-file</module>
|
||||
<module>bonus-app</module>
|
||||
<module>bonus-bracelet</module>
|
||||
<module>bonus-tcp</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>bonus-modules</artifactId>
|
||||
|
|
|
|||
87
pom.xml
87
pom.xml
|
|
@ -226,84 +226,33 @@
|
|||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<profiles>
|
||||
|
||||
<!--<profile>
|
||||
<id>fly_dev</id>
|
||||
<properties>
|
||||
<profiles.active>gz_attendance_fl</profiles.active>
|
||||
<nacos.server>192.168.0.14:8848</nacos.server>
|
||||
<name.space>gz_attendance_fl</name.space>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>-->
|
||||
<profile>
|
||||
<id>gz_attendance_dev</id>
|
||||
<properties>
|
||||
<profiles.active>gz_attendance_dev</profiles.active>
|
||||
<nacos.server>127.0.0.1:8848</nacos.server>
|
||||
<name.space>gz_attendance_dev</name.space>
|
||||
</properties>
|
||||
</profile>
|
||||
<!--<profile>
|
||||
<id>fly_test</id>
|
||||
<properties>
|
||||
<profiles.active>gz_att_fly_test</profiles.active>
|
||||
<nacos.server>192.168.0.14:8848</nacos.server>
|
||||
<name.space>gz_att_fly_test</name.space>
|
||||
</properties>
|
||||
</profile>-->
|
||||
|
||||
<!--<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<profiles.active>gz_attendance_test</profiles.active>
|
||||
<nacos.server>192.168.0.14:8848</nacos.server>
|
||||
<name.space>gz_attendance_test</name.space>
|
||||
</properties>
|
||||
</profile>-->
|
||||
|
||||
<!--<profile>
|
||||
<id>gz_att_prod</id>
|
||||
<properties>
|
||||
<profiles.active>gz_att_prod</profiles.active>
|
||||
<nacos.server>10.1.0.142:8848</nacos.server>
|
||||
<name.space>gz_att_prod</name.space>
|
||||
</properties>
|
||||
</profile>-->
|
||||
|
||||
<!-- <profiles>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>zys_dev</id>-->
|
||||
<!-- <id>fly_test</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <profiles.active>gz_attendance_zys</profiles.active>-->
|
||||
<!-- <profiles.active>gz_att_fly_test</profiles.active>-->
|
||||
<!-- <nacos.server>192.168.0.14:8848</nacos.server>-->
|
||||
<!-- <name.space>gz_attendance_zys</name.space>-->
|
||||
<!-- <name.space>gz_att_fly_test</name.space>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>test</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <profiles.active>gz_attendance_test</profiles.active>-->
|
||||
<!-- <nacos.server>192.168.0.14:8848</nacos.server>-->
|
||||
<!-- <name.space>gz_attendance_test</name.space>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
|
||||
<!-- <profile>-->
|
||||
<!-- <id>dev</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <profiles.active>gz_attendance_dev</profiles.active>-->
|
||||
<!-- <nacos.server>192.168.0.14:8848</nacos.server>-->
|
||||
<!-- <name.space>gz_attendance_dev</name.space>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
|
||||
<!-- <profile>-->
|
||||
<!-- <id>gz_att_zys</id>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>gz_att_prod</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <profiles.active>gz_attendance_zys</profiles.active>-->
|
||||
<!-- <nacos.server>192.168.1.6:4412</nacos.server>-->
|
||||
<!-- <name.space>gz_attendance_zys</name.space>-->
|
||||
<!-- <username>nacos</username>-->
|
||||
<!-- <password>nacos</password>-->
|
||||
<!-- <profiles.active>gz_att_prod</profiles.active>-->
|
||||
<!-- <nacos.server>10.1.0.142:8848</nacos.server>-->
|
||||
<!-- <name.space>gz_att_prod</name.space>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
|
||||
</profiles>
|
||||
<!-- </profiles>-->
|
||||
|
||||
<modules>
|
||||
<module>bonus-common</module>
|
||||
|
|
|
|||
Loading…
Reference in New Issue