移除细节配置

This commit is contained in:
谷成伟 2024-06-20 15:25:07 +08:00
parent 96dc653146
commit 517c3919c2
3 changed files with 15 additions and 76 deletions

View File

@ -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

View File

@ -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

View File

@ -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