# usercenter-service 服务配置文件 server.port = 8811 # 开启调试信息 eureka.instance.preferIpAddress = true endpoints.sensitive = true endpoints.info.enabled = true endpoints.restart.enabled = false endpoints.shutdown.enabled = false endpoints.health.enabled = true endpoints.flyway.enabled = false endpoints.logfile.enabled = true #log级别 logging.level.root = INFO logging.level.cn.efunbox.afw.web.mvc.interceptor.AbstractRequestBodyInterceptor = DEBUG logging.level.cn.efunbox.api.impl = DEBUG #此配置建议只试用开发和测试环境 #心跳间隔时间,默认是30秒 eureka.instance.leaseRenewalIntervalInSeconds = 30 #最后一次心跳时间后leaseExpirationDurationInSeconds秒就认为是下线了,默认是90秒 eureka.instance.leaseExpirationDurationInSeconds = 90 ## eureka客户端配置 # 是否启用 eureka eureka.client.enabled = true # eureka 地址 eureka.client.serviceUrl.defaultZone = http://127.0.0.1:8821/eureka/ # 当前服务 是否注册到eureka # eureka.client.register-with-eureka = true #是否eureka服务器获取注册信息 # eureka.client.fetch-registry: false ## redis 配置 #spring.redis.host=192.168.1.86 #spring.redis.port=6379 #spring.redis.password=otttest spring.redis.host=192.168.1.151 spring.redis.port=6379 spring.redis.password= spring.redis.timeout=3000 spring.redis.pool.max-idle=8 spring.redis.pool.min-idle=0 spring.redis.pool.max-active=8 spring.redis.pool.max-wait=-1 spring.redis.key.prefix=service.schedule ## 数据源配置 # 默认数据源 afw.datasource.default = master # 激活数据源列表 起名规则slave_1... afw.datasource.active = master,slave # 主数据源 afw.datasource.master.url = jdbc:mysql://localhost:3306/yifang_schedule?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true afw.datasource.master.username = root afw.datasource.master.password = 123456 afw.datasource.master.initial_size = 10 afw.datasource.master.min_idle = 10 afw.datasource.master.max_active = 100 afw.datasource.master.test_while_idle = true afw.datasource.master.max_wait = 60000 afw.datasource.master.test_on_borrow=true afw.datasource.master.validation_query=SELECT 1; # 从数据源 afw.datasource.slave.url = jdbc:mysql://localhost:3306/yifang_schedule?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true afw.datasource.slave.username = root afw.datasource.slave.password = 123456 afw.datasource.slave.initial_size = 10 afw.datasource.slave.min_idle = 10 afw.datasource.slave.max_active = 100 afw.datasource.slave.test_while_idle = true afw.datasource.slave.max_wait = 60000 afw.datasource.slave.test_on_borrow=true afw.datasource.slave.validation_query=SELECT 1; # 打印sql spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.format_sql=true