43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
spring:
|
|
r2dbc:
|
|
url: r2dbc:postgresql://localhost:55432/manage_system
|
|
username: novalon
|
|
password: novalon123
|
|
pool:
|
|
enabled: true
|
|
initial-size: 2
|
|
max-size: 10
|
|
|
|
flyway:
|
|
enabled: false
|
|
|
|
sql:
|
|
init:
|
|
mode: never
|
|
|
|
security:
|
|
enabled: false
|
|
|
|
# 禁用定时任务,防止测试期间调度干扰
|
|
task:
|
|
scheduling:
|
|
enabled: false
|
|
|
|
# 排除不需要的外部服务自动配置(配合 @MockBean 使用)
|
|
autoconfigure:
|
|
exclude:
|
|
- org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
|
|
- org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration
|
|
- org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration
|
|
- org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration
|
|
- org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
|
|
|
jwt:
|
|
secret: test-secret-key-for-integration-testing
|
|
expiration: 86400000
|
|
|
|
logging:
|
|
level:
|
|
cn.novalon.manage: DEBUG
|
|
org.springframework.r2dbc: DEBUG
|