feat:配置环境切换
This commit is contained in:
parent
95ea36a780
commit
3f0781397c
@ -130,4 +130,43 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>local</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>local</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
<activation>
|
||||||
|
<!-- 默认环境 -->
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>dev</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>test</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>test</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>prod</id>
|
||||||
|
<properties>
|
||||||
|
<profiles.active>prod</profiles.active>
|
||||||
|
<logging.level>warn</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
124
fightwine-admin/src/main/resources/application-dev.yml
Normal file
124
fightwine-admin/src/main/resources/application-dev.yml
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
# 配置端口
|
||||||
|
server:
|
||||||
|
port: 10084
|
||||||
|
servlet:
|
||||||
|
context-path: / # 访问path
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8 # 默认编码格式
|
||||||
|
max-threads: 1000 # 最大线程数量 默认200
|
||||||
|
min-spare-threads: 30 # 初始化启动线程数量
|
||||||
|
|
||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-circular-references: true
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
max-request-size: 50MB #设置单次请求文件的总大小
|
||||||
|
application:
|
||||||
|
name: fightwine-admin #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
# 数据库配置
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
# quartz
|
||||||
|
quartz:
|
||||||
|
properties:
|
||||||
|
org:
|
||||||
|
quartz:
|
||||||
|
scheduler:
|
||||||
|
instanceName: quartzScheduler
|
||||||
|
instanceId: AUTO
|
||||||
|
jobStore:
|
||||||
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||||
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||||
|
tablePrefix: QRTZ_
|
||||||
|
isClustered: false
|
||||||
|
clusterCheckinInterval: 10000
|
||||||
|
useProperties: false
|
||||||
|
threadPool:
|
||||||
|
class: org.quartz.simpl.SimpleThreadPool
|
||||||
|
threadCount: 10
|
||||||
|
threadPriority: 5
|
||||||
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||||
|
#数据库方式
|
||||||
|
job-store-type: JDBC
|
||||||
|
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90 #地址
|
||||||
|
port: 5004 #端口
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000 # 连接超时时间(毫秒)
|
||||||
|
database: 6 #默认数据库
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||||
|
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||||
|
max-idle: 10 # 连接池中的最大空闲连接
|
||||||
|
min-idle: 0 # 连接池中的最小空闲连接
|
||||||
|
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||||
|
second:
|
||||||
|
database: 14 # 微信accessToken存储库
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/admin/
|
||||||
|
|
||||||
|
# mybatis 配置
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
# 配置slq打印日志
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||||
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||||
|
|
||||||
|
|
||||||
|
#swagger 配置
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true #是否开启
|
||||||
|
check: false #是否打开验证
|
||||||
|
username: #访问swagger的账号
|
||||||
|
password: #访问swagger的密码
|
||||||
|
|
||||||
|
# 行为验证码
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default # 验证码类型
|
||||||
|
water-mark: YZT # 水印
|
||||||
|
slip-offset: 15 # 校验滑动拼图允许误差偏移量(默认5像素)
|
||||||
|
aes-status: true # aes加密坐标开启或者禁用(true|false)
|
||||||
|
interference-options: 2 # 滑动干扰项(0/1/2)
|
||||||
|
font-style: 1 # 点选字体样式 默认Font.BOLD
|
||||||
|
font-size: 25 # 点选字体字体大小
|
||||||
|
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
||||||
|
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
|
||||||
|
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
|
||||||
|
req-get-minute-limit: 30 # get接口一分钟内请求数限制
|
||||||
|
req-check-minute-limit: 60 # check接口一分钟内请求数限制
|
||||||
|
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
114
fightwine-admin/src/main/resources/application-local.yml
Normal file
114
fightwine-admin/src/main/resources/application-local.yml
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
server:
|
||||||
|
port: 10084
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8
|
||||||
|
max-threads: 1000
|
||||||
|
min-spare-threads: 30
|
||||||
|
|
||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-circular-references: true
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB
|
||||||
|
max-request-size: 50MB
|
||||||
|
application:
|
||||||
|
name: fightwine-admin
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
quartz:
|
||||||
|
properties:
|
||||||
|
org:
|
||||||
|
quartz:
|
||||||
|
scheduler:
|
||||||
|
instanceName: quartzScheduler
|
||||||
|
instanceId: AUTO
|
||||||
|
jobStore:
|
||||||
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||||
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||||
|
tablePrefix: QRTZ_
|
||||||
|
isClustered: false
|
||||||
|
clusterCheckinInterval: 10000
|
||||||
|
useProperties: false
|
||||||
|
threadPool:
|
||||||
|
class: org.quartz.simpl.SimpleThreadPool
|
||||||
|
threadCount: 10
|
||||||
|
threadPriority: 5
|
||||||
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||||
|
job-store-type: JDBC
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90
|
||||||
|
port: 5004
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000
|
||||||
|
database: 6
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200
|
||||||
|
max-wait: -1
|
||||||
|
max-idle: 10
|
||||||
|
min-idle: 0
|
||||||
|
time-between-eviction-runs: -1
|
||||||
|
second:
|
||||||
|
database: 14
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/admin/
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true
|
||||||
|
check: false
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default
|
||||||
|
water-mark: YZT
|
||||||
|
slip-offset: 15
|
||||||
|
aes-status: true
|
||||||
|
interference-options: 2
|
||||||
|
font-style: 1
|
||||||
|
font-size: 25
|
||||||
|
req-frequency-limit-enable: false
|
||||||
|
req-get-lock-limit: 5
|
||||||
|
req-get-lock-seconds: 360
|
||||||
|
req-get-minute-limit: 30
|
||||||
|
req-check-minute-limit: 60
|
||||||
|
req-verify-minute-limit: 60
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
124
fightwine-admin/src/main/resources/application-prod.yml
Normal file
124
fightwine-admin/src/main/resources/application-prod.yml
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
# 配置端口
|
||||||
|
server:
|
||||||
|
port: 10084
|
||||||
|
servlet:
|
||||||
|
context-path: / # 访问path
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8 # 默认编码格式
|
||||||
|
max-threads: 1000 # 最大线程数量 默认200
|
||||||
|
min-spare-threads: 30 # 初始化启动线程数量
|
||||||
|
|
||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-circular-references: true
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
max-request-size: 50MB #设置单次请求文件的总大小
|
||||||
|
application:
|
||||||
|
name: fightwine-admin #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
# 数据库配置
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
# quartz
|
||||||
|
quartz:
|
||||||
|
properties:
|
||||||
|
org:
|
||||||
|
quartz:
|
||||||
|
scheduler:
|
||||||
|
instanceName: quartzScheduler
|
||||||
|
instanceId: AUTO
|
||||||
|
jobStore:
|
||||||
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||||
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||||
|
tablePrefix: QRTZ_
|
||||||
|
isClustered: false
|
||||||
|
clusterCheckinInterval: 10000
|
||||||
|
useProperties: false
|
||||||
|
threadPool:
|
||||||
|
class: org.quartz.simpl.SimpleThreadPool
|
||||||
|
threadCount: 10
|
||||||
|
threadPriority: 5
|
||||||
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||||
|
#数据库方式
|
||||||
|
job-store-type: JDBC
|
||||||
|
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90 #地址
|
||||||
|
port: 5004 #端口
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000 # 连接超时时间(毫秒)
|
||||||
|
database: 6 #默认数据库
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||||
|
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||||
|
max-idle: 10 # 连接池中的最大空闲连接
|
||||||
|
min-idle: 0 # 连接池中的最小空闲连接
|
||||||
|
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||||
|
second:
|
||||||
|
database: 14 # 微信accessToken存储库
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/admin/
|
||||||
|
|
||||||
|
# mybatis 配置
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
# 配置slq打印日志
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||||
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||||
|
|
||||||
|
|
||||||
|
#swagger 配置
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true #是否开启
|
||||||
|
check: false #是否打开验证
|
||||||
|
username: #访问swagger的账号
|
||||||
|
password: #访问swagger的密码
|
||||||
|
|
||||||
|
# 行为验证码
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default # 验证码类型
|
||||||
|
water-mark: YZT # 水印
|
||||||
|
slip-offset: 15 # 校验滑动拼图允许误差偏移量(默认5像素)
|
||||||
|
aes-status: true # aes加密坐标开启或者禁用(true|false)
|
||||||
|
interference-options: 2 # 滑动干扰项(0/1/2)
|
||||||
|
font-style: 1 # 点选字体样式 默认Font.BOLD
|
||||||
|
font-size: 25 # 点选字体字体大小
|
||||||
|
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
||||||
|
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
|
||||||
|
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
|
||||||
|
req-get-minute-limit: 30 # get接口一分钟内请求数限制
|
||||||
|
req-check-minute-limit: 60 # check接口一分钟内请求数限制
|
||||||
|
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
114
fightwine-admin/src/main/resources/application-test.yml
Normal file
114
fightwine-admin/src/main/resources/application-test.yml
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
server:
|
||||||
|
port: 10084
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8
|
||||||
|
max-threads: 1000
|
||||||
|
min-spare-threads: 30
|
||||||
|
|
||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-circular-references: true
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB
|
||||||
|
max-request-size: 50MB
|
||||||
|
application:
|
||||||
|
name: fightwine-admin
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
quartz:
|
||||||
|
properties:
|
||||||
|
org:
|
||||||
|
quartz:
|
||||||
|
scheduler:
|
||||||
|
instanceName: quartzScheduler
|
||||||
|
instanceId: AUTO
|
||||||
|
jobStore:
|
||||||
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||||
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||||
|
tablePrefix: QRTZ_
|
||||||
|
isClustered: false
|
||||||
|
clusterCheckinInterval: 10000
|
||||||
|
useProperties: false
|
||||||
|
threadPool:
|
||||||
|
class: org.quartz.simpl.SimpleThreadPool
|
||||||
|
threadCount: 10
|
||||||
|
threadPriority: 5
|
||||||
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||||
|
job-store-type: JDBC
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90
|
||||||
|
port: 5004
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000
|
||||||
|
database: 6
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200
|
||||||
|
max-wait: -1
|
||||||
|
max-idle: 10
|
||||||
|
min-idle: 0
|
||||||
|
time-between-eviction-runs: -1
|
||||||
|
second:
|
||||||
|
database: 14
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/admin/
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true
|
||||||
|
check: false
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default
|
||||||
|
water-mark: YZT
|
||||||
|
slip-offset: 15
|
||||||
|
aes-status: true
|
||||||
|
interference-options: 2
|
||||||
|
font-style: 1
|
||||||
|
font-size: 25
|
||||||
|
req-frequency-limit-enable: false
|
||||||
|
req-get-lock-limit: 5
|
||||||
|
req-get-lock-seconds: 360
|
||||||
|
req-get-minute-limit: 30
|
||||||
|
req-check-minute-limit: 60
|
||||||
|
req-verify-minute-limit: 60
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
@ -42,9 +42,7 @@ spring:
|
|||||||
path match:
|
path match:
|
||||||
matching-strategy: ant_path_matcher
|
matching-strategy: ant_path_matcher
|
||||||
profiles:
|
profiles:
|
||||||
# 配置的环境
|
active: @profiles.active@
|
||||||
# active: #spring.profiles.active#
|
|
||||||
active:
|
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 50MB #设置单个文件大小
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
|||||||
@ -91,4 +91,43 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>local</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>local</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
<activation>
|
||||||
|
<!-- 默认环境 -->
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>dev</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>test</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>test</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>prod</id>
|
||||||
|
<properties>
|
||||||
|
<profiles.active>prod</profiles.active>
|
||||||
|
<logging.level>warn</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
101
fightwine-front/src/main/resources/application-dev.yml
Normal file
101
fightwine-front/src/main/resources/application-dev.yml
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
# 配置端口
|
||||||
|
server:
|
||||||
|
port: 10085
|
||||||
|
servlet:
|
||||||
|
context-path: / # 访问path
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8 # 默认编码格式
|
||||||
|
max-threads: 1000 # 最大线程数量 默认200
|
||||||
|
min-spare-threads: 30 # 初始化启动线程数量
|
||||||
|
|
||||||
|
spring:
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
max-request-size: 50MB #设置单次请求文件的总大小
|
||||||
|
application:
|
||||||
|
name: fightwine-front #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
# 数据库配置
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
# quartz
|
||||||
|
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90 #地址
|
||||||
|
port: 5004 #端口
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000 # 连接超时时间(毫秒)
|
||||||
|
database: 6 #默认数据库
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||||
|
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||||
|
max-idle: 10 # 连接池中的最大空闲连接
|
||||||
|
min-idle: 0 # 连接池中的最小空闲连接
|
||||||
|
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||||
|
second:
|
||||||
|
database: 14 # 微信accessToken存储库
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/front/
|
||||||
|
|
||||||
|
# mybatis 配置
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
# 配置slq打印日志
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||||
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||||
|
|
||||||
|
|
||||||
|
#swagger 配置
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true #是否开启
|
||||||
|
check: false #是否打开验证
|
||||||
|
username: #访问swagger的账号
|
||||||
|
password: #访问swagger的密码
|
||||||
|
|
||||||
|
# 行为验证码
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default # 验证码类型
|
||||||
|
water-mark: YZT # 水印
|
||||||
|
slip-offset: 15 # 校验滑动拼图允许误差偏移量(默认5像素)
|
||||||
|
aes-status: true # aes加密坐标开启或者禁用(true|false)
|
||||||
|
interference-options: 2 # 滑动干扰项(0/1/2)
|
||||||
|
font-style: 1 # 点选字体样式 默认Font.BOLD
|
||||||
|
font-size: 25 # 点选字体字体大小
|
||||||
|
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
||||||
|
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
|
||||||
|
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
|
||||||
|
req-get-minute-limit: 30 # get接口一分钟内请求数限制
|
||||||
|
req-check-minute-limit: 60 # check接口一分钟内请求数限制
|
||||||
|
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
92
fightwine-front/src/main/resources/application-local.yml
Normal file
92
fightwine-front/src/main/resources/application-local.yml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
server:
|
||||||
|
port: 10085
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8
|
||||||
|
max-threads: 1000
|
||||||
|
min-spare-threads: 30
|
||||||
|
|
||||||
|
spring:
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB
|
||||||
|
max-request-size: 50MB
|
||||||
|
application:
|
||||||
|
name: fightwine-front
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90
|
||||||
|
port: 5004
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000
|
||||||
|
database: 6
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200
|
||||||
|
max-wait: -1
|
||||||
|
max-idle: 10
|
||||||
|
min-idle: 0
|
||||||
|
time-between-eviction-runs: -1
|
||||||
|
second:
|
||||||
|
database: 14
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/front/
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true
|
||||||
|
check: false
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default
|
||||||
|
water-mark: YZT
|
||||||
|
slip-offset: 15
|
||||||
|
aes-status: true
|
||||||
|
interference-options: 2
|
||||||
|
font-style: 1
|
||||||
|
font-size: 25
|
||||||
|
req-frequency-limit-enable: false
|
||||||
|
req-get-lock-limit: 5
|
||||||
|
req-get-lock-seconds: 360
|
||||||
|
req-get-minute-limit: 30
|
||||||
|
req-check-minute-limit: 60
|
||||||
|
req-verify-minute-limit: 60
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
101
fightwine-front/src/main/resources/application-prod.yml
Normal file
101
fightwine-front/src/main/resources/application-prod.yml
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
# 配置端口
|
||||||
|
server:
|
||||||
|
port: 10085
|
||||||
|
servlet:
|
||||||
|
context-path: / # 访问path
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8 # 默认编码格式
|
||||||
|
max-threads: 1000 # 最大线程数量 默认200
|
||||||
|
min-spare-threads: 30 # 初始化启动线程数量
|
||||||
|
|
||||||
|
spring:
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
max-request-size: 50MB #设置单次请求文件的总大小
|
||||||
|
application:
|
||||||
|
name: fightwine-front #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
# 数据库配置
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
# quartz
|
||||||
|
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90 #地址
|
||||||
|
port: 5004 #端口
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000 # 连接超时时间(毫秒)
|
||||||
|
database: 6 #默认数据库
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||||
|
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||||
|
max-idle: 10 # 连接池中的最大空闲连接
|
||||||
|
min-idle: 0 # 连接池中的最小空闲连接
|
||||||
|
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||||
|
second:
|
||||||
|
database: 14 # 微信accessToken存储库
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/front/
|
||||||
|
|
||||||
|
# mybatis 配置
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
# 配置slq打印日志
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||||
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||||
|
|
||||||
|
|
||||||
|
#swagger 配置
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true #是否开启
|
||||||
|
check: false #是否打开验证
|
||||||
|
username: #访问swagger的账号
|
||||||
|
password: #访问swagger的密码
|
||||||
|
|
||||||
|
# 行为验证码
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default # 验证码类型
|
||||||
|
water-mark: YZT # 水印
|
||||||
|
slip-offset: 15 # 校验滑动拼图允许误差偏移量(默认5像素)
|
||||||
|
aes-status: true # aes加密坐标开启或者禁用(true|false)
|
||||||
|
interference-options: 2 # 滑动干扰项(0/1/2)
|
||||||
|
font-style: 1 # 点选字体样式 默认Font.BOLD
|
||||||
|
font-size: 25 # 点选字体字体大小
|
||||||
|
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
||||||
|
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
|
||||||
|
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
|
||||||
|
req-get-minute-limit: 30 # get接口一分钟内请求数限制
|
||||||
|
req-check-minute-limit: 60 # check接口一分钟内请求数限制
|
||||||
|
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
92
fightwine-front/src/main/resources/application-test.yml
Normal file
92
fightwine-front/src/main/resources/application-test.yml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
server:
|
||||||
|
port: 10085
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8
|
||||||
|
max-threads: 1000
|
||||||
|
min-spare-threads: 30
|
||||||
|
|
||||||
|
spring:
|
||||||
|
mvc:
|
||||||
|
path match:
|
||||||
|
matching-strategy: ant_path_matcher
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 50MB
|
||||||
|
max-request-size: 50MB
|
||||||
|
application:
|
||||||
|
name: fightwine-front
|
||||||
|
jackson:
|
||||||
|
locale: zh_CN
|
||||||
|
time-zone: GMT+8
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
datasource:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://183.6.65.90:5001/zp_fight_wine?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
|
username: root
|
||||||
|
password: Yizhitong@2024
|
||||||
|
redis:
|
||||||
|
host: 183.6.65.90
|
||||||
|
port: 5004
|
||||||
|
password: Cbms@dev
|
||||||
|
timeout: 30000
|
||||||
|
database: 6
|
||||||
|
jedis:
|
||||||
|
pool:
|
||||||
|
max-active: 200
|
||||||
|
max-wait: -1
|
||||||
|
max-idle: 10
|
||||||
|
min-idle: 0
|
||||||
|
time-between-eviction-runs: -1
|
||||||
|
second:
|
||||||
|
database: 14
|
||||||
|
|
||||||
|
debug: true
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
io.swagger.*: error
|
||||||
|
org.springframework.boot.autoconfigure: debug
|
||||||
|
config: classpath:logback-spring.xml
|
||||||
|
file:
|
||||||
|
path: ./yzt_log/front/
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath*:mapper/*/*Mapper.xml
|
||||||
|
typeAliasesPackage: com.yzt.**.model
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
basic:
|
||||||
|
enable: true
|
||||||
|
check: false
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
|
||||||
|
aj:
|
||||||
|
captcha:
|
||||||
|
type: default
|
||||||
|
water-mark: YZT
|
||||||
|
slip-offset: 15
|
||||||
|
aes-status: true
|
||||||
|
interference-options: 2
|
||||||
|
font-style: 1
|
||||||
|
font-size: 25
|
||||||
|
req-frequency-limit-enable: false
|
||||||
|
req-get-lock-limit: 5
|
||||||
|
req-get-lock-seconds: 360
|
||||||
|
req-get-minute-limit: 30
|
||||||
|
req-check-minute-limit: 60
|
||||||
|
req-verify-minute-limit: 60
|
||||||
|
jigsaw: classpath:images/jigsaw
|
||||||
|
pic-click: classpath:images/pic-click
|
||||||
|
cache-type: redis
|
||||||
|
cache-number: 1000
|
||||||
|
timing-clear: 3600
|
||||||
|
history-data-clear-enable: false
|
||||||
@ -40,9 +40,7 @@ spring:
|
|||||||
path match:
|
path match:
|
||||||
matching-strategy: ant_path_matcher
|
matching-strategy: ant_path_matcher
|
||||||
profiles:
|
profiles:
|
||||||
# 配置的环境
|
active: @profiles.active@
|
||||||
# active: #spring.profiles.active#
|
|
||||||
active:
|
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 50MB #设置单个文件大小
|
max-file-size: 50MB #设置单个文件大小
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user