spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/imooc-video-dev
username: root
password: 123456
redis:
database: 1
host: 127.0.0.1
port: 6379
jedis:
pool:
max-active: 1000
max-wait: -1
max-idle: 10
min-idle: 2
timeout: 5000
servlet:
multipart:
max-file-size: 100MB
max-request-size: 1000MB
mybatis:
type-aliases-package: com.nly.pojo
mapper-locations: classpath:mapper/*.xml
mapper:
mappers: com.nly.utils.MyMapper
not-empty: false
identity: MYSQL
pagehelper:
helper-dialect: mysql
support-methods-arguments: true
server:
port: 8082
logging:
level:
com.nly.mapper: trace
没有配置连接池相关信息。
会是连接池导致的问题吗?但是数据库成功的保存数据了。