Files
alex-api/target/classes/application.yml
2025-07-17 10:56:03 +08:00

42 lines
1.2 KiB
YAML

server:
address: 0.0.0.0
port: 8888
spring:
profiles:
active: test
#配置mybatis
mybatis:
configuration:
auto-mapping-behavior: full
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
type-aliases-package: com.anytrek.entity # 配置别名路径
mapper-locations: classpath:mapper/*.xml # 配置 XML 文件位置
#配置mybatis-plus
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
global-config:
db-config:
table-prefix: t_
id-type: auto
#配置分页插件
pagehelper:
helperDialect: mysql
params: count=countSql
reasonable: true
supportMethodsArguments: true
#配置日志
logging:
level:
root: INFO #根日志配置,整个应用程序的默认日志级别为 INFO
com.anytrek: DEBUG #com.anytrek 包下的类的日志级别设置为 DEBUG
org.apache.ibatis: INFO #MyBatis 日志级别设置为 INFO
com.zaxxer.hikari: INFO #HikariCP 的日志级别设置为 INFO
org.springframework.web.socket: DEBUG
org.springframework.web.socket.server.support: DEBUG
org:
springframework:
integration: DEBUG
messaging: DEBUG