########## 环境 ########## spring.profiles.active=dev evn=${profile.env} ########## 单数据源 ########## #spring.datasource.url=jdbc:mysql://localhost:3306/zheng #spring.datasource.username=root #spring.datasource.password=123456 #spring.datasource.driver-class-name=com.mysql.jdbc.Driver ########## 多数据源 ########## spring.datasource.primary.url=jdbc:mysql://localhost:3306/zheng spring.datasource.primary.username=root spring.datasource.primary.password=123456 spring.datasource.primary.driver-class-name=com.mysql.jdbc.Driver spring.datasource.secondary.url=jdbc:mysql://localhost:3306/zheng spring.datasource.secondary.username=root spring.datasource.secondary.password=123456 spring.datasource.secondary.driver-class-name=com.mysql.jdbc.Driver ########## jpa ########## spring.jpa.properties.hibernate.hbm2ddl.auto=update ########## 日志 ########## logging.file=springboot.log ########## REDIS (RedisProperties) ########## # Redis数据库索引(默认为0) spring.redis.database=0 # Redis服务器地址 spring.redis.host=redis-11291.c8.us-east-1-4.ec2.cloud.redislabs.com # Redis服务器连接端口 spring.redis.port=11291 # Redis服务器连接密码(默认为空) spring.redis.password=123456 # 连接池最大连接数(使用负值表示没有限制) spring.redis.pool.max-active=8 # 连接池最大阻塞等待时间(使用负值表示没有限制) spring.redis.pool.max-wait=-1 # 连接池中的最大空闲连接 spring.redis.pool.max-idle=8 # 连接池中的最小空闲连接 spring.redis.pool.min-idle=0 # 连接超时时间(毫秒) spring.redis.timeout=0