30 lines
725 B
YAML
30 lines
725 B
YAML
|
|
spring:
|
||
|
|
datasource:
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
url: jdbc:mysql://localhost:3306/chat?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||
|
|
username: root
|
||
|
|
password: password
|
||
|
|
|
||
|
|
# JPA configuration (optional, if you need JPA alongside MyBatis-Flex)
|
||
|
|
jpa:
|
||
|
|
show-sql: true
|
||
|
|
hibernate:
|
||
|
|
ddl-auto: update
|
||
|
|
|
||
|
|
# MyBatis-Flex configuration
|
||
|
|
mybatis-flex:
|
||
|
|
# Enable SQL logging
|
||
|
|
configuration:
|
||
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
|
# Mapper XML location (optional)
|
||
|
|
mapper-locations: classpath*:mapper/*.xml
|
||
|
|
|
||
|
|
# Server configuration
|
||
|
|
server:
|
||
|
|
port: 8080
|
||
|
|
|
||
|
|
# Logging configuration
|
||
|
|
logging:
|
||
|
|
level:
|
||
|
|
com.yundage.chat: debug
|
||
|
|
com.mybatisflex: debug
|