移除细节配置
This commit is contained in:
parent
96dc653146
commit
517c3919c2
@ -1,34 +1,13 @@
|
||||
spring:
|
||||
autoconfigure:
|
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||
datasource:
|
||||
url: jdbc:postgresql://192.168.109.102:5432/das
|
||||
# url: jdbc:p6spy:mysql://81.69.43.78:3306/cloud-demo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
|
||||
username: das
|
||||
password: qwaszx12
|
||||
driver-class-name: org.postgresql.Driver
|
||||
#使用Druid
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
||||
# # redis相关配置
|
||||
data:
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
database: 0
|
||||
port: 6379
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数,负值表示没有限制
|
||||
max-active: 100
|
||||
# 连接池最大阻塞等待时间 -1 表示没有限制
|
||||
max-wait: -1ms
|
||||
# 连接池中最大空闲连接
|
||||
max-idle: 10
|
||||
# 连接池中最小空闲连接
|
||||
min-idle: 5
|
||||
# 连接超时时间(毫秒)
|
||||
timeout: 5000
|
||||
# 指定客户端
|
||||
client-type: lettuce
|
||||
|
||||
aesKey: b6967ee87b86d85a
|
||||
|
@ -1,33 +1,13 @@
|
||||
spring:
|
||||
autoconfigure:
|
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||
datasource:
|
||||
url: jdbc:postgresql://192.168.109.102:5432/das
|
||||
# url: jdbc:p6spy:mysql://81.69.43.78:3306/cloud-demo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
|
||||
username: das
|
||||
password: qwaszx12
|
||||
driver-class-name: org.postgresql.Driver
|
||||
#使用Druid
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
||||
# # redis相关配置
|
||||
data:
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
database: 0
|
||||
port: 6379
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数,负值表示没有限制
|
||||
max-active: 100
|
||||
# 连接池最大阻塞等待时间 -1 表示没有限制
|
||||
max-wait: -1ms
|
||||
# 连接池中最大空闲连接
|
||||
max-idle: 10
|
||||
# 连接池中最小空闲连接
|
||||
min-idle: 5
|
||||
# 连接超时时间(毫秒)
|
||||
timeout: 5000
|
||||
# 指定客户端
|
||||
client-type: lettuce
|
||||
|
||||
|
@ -38,27 +38,6 @@ spring:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
# 指定默认包含的熟悉,NON_NULL表示只序列化非空属性
|
||||
default-property-inclusion: non_null
|
||||
|
||||
# Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
|
||||
# 因为Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
# 相当于 @DateTimeFormat
|
||||
format:
|
||||
date: yyyy-MM-dd
|
||||
date-time: yyyy-MM-dd HH:mm:ss
|
||||
# 允许mvc抛出404异常
|
||||
throw-exception-if-no-handler-found: true
|
||||
# 关闭spring自带的映射,会导致swagger也不能访问,需指定swagger的静态资源处理
|
||||
web:
|
||||
resources:
|
||||
add-mappings: false
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n.messages
|
||||
encoding: UTF-8
|
||||
# 配置文件上传大小限制
|
||||
servlet:
|
||||
multipart:
|
||||
@ -100,3 +79,4 @@ captcha:
|
||||
verify-type: calculate
|
||||
expire: 120
|
||||
|
||||
aesKey: b6967ee87b86d85a
|
Loading…
Reference in New Issue
Block a user