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.

32 lines
1015 B

5 months ago
5 months ago
5 months ago
  1. # 配置连接池
  2. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  3. spring.datasource.url=jdbc:mysql://localhost:3306/vote_system?serverTimezone=UTC
  4. spring.datasource.username=root
  5. spring.datasource.password=123456
  6. # mybatis配置
  7. # 打印log信息
  8. mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
  9. # 开启驼峰命名法,自动将数据库的命名方式,映射成Java中的命名方式
  10. mybatis.configuration.map-underscore-to-camel-case: true
  11. #下面这些内容是为了让MyBatis映射
  12. #指定Mybatis的Mapper文件
  13. mybatis.mapper-locations=classpath:mappers/*xml
  14. #指定Mybatis的实体目录
  15. mybatis.type-aliases-package=com.lh.mybatis.entity
  16. # 应用服务 WEB 访问端口
  17. server.port=8091
  18. #Redis 配置
  19. spring.redis.host=localhost
  20. spring.redis.port=6379
  21. spring.redis.password=123456
  22. spring.redis.timeout=2000
  23. spring.redis.jedis.pool.max-active=10
  24. spring.redis.jedis.pool.max-idle=5
  25. spring.redis.jedis.pool.min-idle=1
  26. # 每日最大投票次数
  27. vote.limit.daily=3