miaosha/target/classes/application.properties

66 lines
2.4 KiB
Properties
Raw Normal View History

2018-09-14 12:34:02 +08:00
#thymeleaf
2018-09-15 21:46:13 +08:00
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
2018-09-14 12:34:02 +08:00
spring.thymeleaf.cache=false
spring.thymeleaf.content-type=text/html
spring.thymeleaf.enabled=true
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.mode=HTML5
2018-09-15 21:46:13 +08:00
2018-09-14 12:34:02 +08:00
#mybatis
mybatis.type-aliases-package=com.imooc.miaosha.domain
2018-09-15 21:46:13 +08:00
#开启驼峰转换
2018-09-14 12:34:02 +08:00
mybatis.configuration.map-underscore-to-camel-case=true
mybatis.mapperLocations = classpath:com/imooc/miaosha/dao/*.xml
#datasource
2018-09-15 21:46:13 +08:00
spring.datasource.url=jdbc:mysql://localhost:3306/miaosha?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
2018-09-14 12:34:02 +08:00
spring.datasource.username=root
2018-09-15 21:46:13 +08:00
spring.datasource.password=aixiyue11
2018-09-14 12:34:02 +08:00
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#druid
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.filters=stat
2018-09-15 21:46:13 +08:00
spring.datasource.maxActive=1000
spring.datasource.initialSize=100
2018-09-14 12:34:02 +08:00
spring.datasource.maxWait=60000
2018-09-15 21:46:13 +08:00
spring.datasource.minIdle=500
2018-09-14 12:34:02 +08:00
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
2018-09-15 21:46:13 +08:00
#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/
2018-09-14 12:34:02 +08:00
#redis
2018-09-15 21:46:13 +08:00
redis.host=192.168.1.116
2018-09-14 12:34:02 +08:00
redis.port=6379
2018-09-15 21:46:13 +08:00
redis.timeout=100
2018-09-14 12:34:02 +08:00
redis.password=123456
2018-09-15 21:46:13 +08:00
redis.poolMaxTotal=1000
redis.poolMaxIdle=500
redis.poolMaxWait=500
#rabbitmq
2018-09-16 15:22:24 +08:00
spring.rabbitmq.host=localhost
2018-09-15 21:46:13 +08:00
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