You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
|
2 months ago
|
spring:
|
||
|
|
datasource:
|
||
|
|
# userlogin数据库
|
||
|
|
primary:
|
||
|
|
jdbc-url: jdbc:mysql://1.95.162.61:3306/userlogin?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true
|
||
|
|
username: root
|
||
|
|
password: schl@2025
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
hikari:
|
||
|
|
max-lifetime: 1200000
|
||
|
|
idle-timeout: 600000
|
||
|
|
minimum-idle: 5
|
||
|
|
maximum-pool-size: 20
|
||
|
|
# wechat_app数据库
|
||
|
|
wechat:
|
||
|
|
jdbc-url: jdbc:mysql://1.95.162.61:3306/wechat_app?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true
|
||
|
|
username: root
|
||
|
|
password: schl@2025
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
hikari:
|
||
|
|
max-lifetime: 1200000
|
||
|
|
idle-timeout: 600000
|
||
|
|
minimum-idle: 5
|
||
|
|
maximum-pool-size: 20
|
||
|
|
|
||
|
|
server:
|
||
|
|
port: 8083
|
||
|
|
servlet:
|
||
|
|
context-path: /KH
|
||
|
|
# 在Tomcat中部署时,端口由Tomcat配置决定,这里不需要指定
|
||
|
|
# address属性在Tomcat部署中不生效,由容器控制
|
||
|
|
|
||
|
|
mybatis:
|
||
|
|
type-aliases-package: com.example.web.entity
|
||
|
|
mapper-locations: classpath:mapper/*.xml
|
||
|
|
configuration:
|
||
|
|
# 确保这些配置存在
|
||
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
|
call-setters-on-nulls: true
|
||
|
|
jdbc-type-for-null: null
|
||
|
|
|
||
|
|
logging:
|
||
|
|
level:
|
||
|
|
com.example.web.mapper: DEBUG
|
||
|
|
com.example.web.config: DEBUG
|
||
|
|
com.example.web.aspect: DEBUG
|
||
|
|
|
||
|
|
|