spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/taotao?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC
username: root
password: root
hikari:
connection-timeout: 3000
minimum-idle: 5
maximum-pool-size: 20
auto-commit: true #自动提交
idle-timeout: 60000
pool-name: DateSourceHikariCP
max-lifetime: 1800000 #连接生命时长,超时而且没有被使用则释放 默认30000
connection-init-sql: SELECT 1
mybatis:
type-aliases-package: com.taotao.pojo #所有pojo类所在的包路径
mapper-locations: classpath:mapper/*.xml #mapper所映射的文件
server:
port: 9090
tomcat:
uri-encoding: UTF-8
jetty:
max-http-post-size: 80KB
mapper:
mappers: com.taotao.my.mapper.MyMapper 通用类的包名
not-empty: false #在進行数据库判断判断是否为空时,追加 !=""
identity: MYSQL
logging:
level:
com.taotao.mapper: debug #打印Mybatis的运行语句
Mybatis逆向工程
最新推荐文章于 2024-12-10 09:46:16 发布