Alex_TD

springboot application.properties(数据库jdbc mybatis redis )
server.port=9090

spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/myapp?useSSL=true&useUnicode=true&serverTimezone=UTC&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=root

spring.security.user.name=admin
spring.security.user.password=admin

mybatis.mapperLocations=classpath:mapper/*.xml
mybatis.configrationLocations=classpath:mybatis-config.xml

spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.timeout=10s
spring.redis.lettuce.pool.min-idle=0
spring.redis.lettuce.pool.max-idle=8
spring.redis.lettuce.pool.max-active=8
spring.redis.lettuce.pool.max-wait=-1m

 

posted on 2021-05-10 19:06  Alex_TD  阅读(93)  评论(0编辑  收藏  举报