axzo-log-plat/axzo-log-server/src/main/resources/bootstrap.yml
2022-10-08 16:17:58 +08:00

41 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
application:
name: axzo-log-plat
cloud:
nacos:
config:
server-addr: ${NACOS_HOST:dev-nacos.axzo.cn}:${NACOS_PORT:80}
file-extension: yaml
namespace: ${NACOS_NAMESPACE_ID:35eada10-9574-4db8-9fea-bc6a4960b6c7}
prefix: ${spring.application.name}
profiles:
active: ${NACOS_PROFILES_ACTIVE:dev}
main:
allow-bean-definition-overriding: true
datasource:
hikari:
pool-name: xlog_HikariCP
minimum-idle: 2
idle-timeout: 120000
maximum-pool-size: 20
auto-commit: true
max-lifetime: 1200000
connection-timeout: 600000
connection-test-query: SELECT 1
mybatis-plus:
type-aliases-package: cn.axzo.xlog.domain
configuration:
auto-mapping-behavior: full
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #这个配置会将执行的sql打印出来在开发或测试的时候可以用
#配置扫描xml
mapper-locations: classpath*:mapper/**/*.xml
global-config:
db-config:
id-type: auto
logic-delete-value: 1 #逻辑已删除值(默认为 1)
logic-not-delete-value: 0 #逻辑未删除值(默认为 0)
logic-delete-field: is_delete #逻辑删除字段
logging:
level:
root: DEBUG