config.application-dev.properties Maven / Gradle / Ivy
#-------------\u7cfb\u7edf\u914d\u7f6e---------------------------
logging.file=./log/logback.log
logging.level.root=info
logging.register-shutdown-hook=false
logging.config=classpath:config/logback-spring.xml
#server.contextPath=/mqt
#-------------mybatis mysql \u53ca\u8fde\u63a5\u6c60(dbcp2)\u914d\u7f6e--------------------------
mybatis.config-location=classpath:mybatis/mybatis-config.xml
mybatis.mapper-locations=classpath*:ly/im/mapping/**/*.xml
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://192.168.16.115:3306/im_test?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=GMT%2B8
#spring.datasource.url = jdbc:mysql://192.168.16.249:13306/im?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=GMT%2B8
spring.datasource.username = root
spring.datasource.password = root
logging.level.ly.im.dao=debug
spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
spring.datasource.dbcp2.cache-state=true
spring.datasource.dbcp2.initial-size=10
spring.datasource.dbcp2.max-total=1000
spring.datasource.dbcp2.max-wait-millis=500
spring.datasource.dbcp2.min-idle=20
spring.datasource.dbcp2.validationQuery=SELECT 1
spring.datasource.dbcp2.pool-prepared-statements=true
spring.datasource.name="mybatis1"