mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
66 lines
2.4 KiB
Properties
66 lines
2.4 KiB
Properties
#thymeleaf
|
|
spring.thymeleaf.prefix=classpath:/templates/
|
|
spring.thymeleaf.suffix=.html
|
|
spring.thymeleaf.cache=false
|
|
spring.thymeleaf.content-type=text/html
|
|
spring.thymeleaf.enabled=true
|
|
spring.thymeleaf.encoding=UTF-8
|
|
spring.thymeleaf.mode=HTML5
|
|
|
|
#mybatis
|
|
mybatis.type-aliases-package=com.imooc.miaosha.domain
|
|
#开启驼峰转换
|
|
mybatis.configuration.map-underscore-to-camel-case=true
|
|
mybatis.mapperLocations = classpath:com/imooc/miaosha/dao/*.xml
|
|
#datasource
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/miaosha?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
|
spring.datasource.username=root
|
|
spring.datasource.password=aixiyue11
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
#druid
|
|
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
spring.datasource.filters=stat
|
|
spring.datasource.maxActive=1000
|
|
spring.datasource.initialSize=100
|
|
spring.datasource.maxWait=60000
|
|
spring.datasource.minIdle=500
|
|
spring.datasource.timeBetweenEvictionRunsMillis=60000
|
|
spring.datasource.minEvictableIdleTimeMillis=300000
|
|
spring.datasource.validationQuery=select 'x'
|
|
spring.datasource.testWhileIdle=true
|
|
spring.datasource.testOnBorrow=false
|
|
spring.datasource.testOnReturn=false
|
|
spring.datasource.poolPreparedStatements=true
|
|
spring.datasource.maxOpenPreparedStatements=20
|
|
#static
|
|
spring.resources.add-mappings=true
|
|
spring.resources.cache-period= 3600
|
|
spring.resources.chain.cache=true
|
|
spring.resources.chain.enabled=true
|
|
spring.resources.chain.gzipped=true
|
|
spring.resources.chain.html-application-cache=true
|
|
spring.resources.static-locations=classpath:/static/
|
|
#redis
|
|
redis.host=192.168.1.116
|
|
redis.port=6379
|
|
redis.timeout=100
|
|
redis.password=123456
|
|
redis.poolMaxTotal=1000
|
|
redis.poolMaxIdle=500
|
|
redis.poolMaxWait=500
|
|
#rabbitmq
|
|
spring.rabbitmq.host=localhost
|
|
spring.rabbitmq.port=5672
|
|
spring.rabbitmq.username=guest
|
|
spring.rabbitmq.password=guest
|
|
spring.rabbitmq.virtual-host=/
|
|
spring.rabbitmq.listener.simple.concurrency= 10
|
|
spring.rabbitmq.listener.simple.max-concurrency= 10
|
|
spring.rabbitmq.listener.simple.prefetch= 1
|
|
spring.rabbitmq.listener.simple.auto-startup=true
|
|
spring.rabbitmq.listener.simple.default-requeue-rejected= true
|
|
spring.rabbitmq.template.retry.enabled=true
|
|
spring.rabbitmq.template.retry.initial-interval=1000
|
|
spring.rabbitmq.template.retry.max-attempts=3
|
|
spring.rabbitmq.template.retry.max-interval=10000
|
|
spring.rabbitmq.template.retry.multiplier=1.0 |