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