
springcloud
愿好
科技推动人类物质文明发展,人文推动人类精神文明发展。
展开
-
本节解释为什么配置eureka.instance.prefer-ip-address = true时,注册到Eureka Server上的是IP,以及是什么IP
老套路,定位问题从配置开始。(1) 我们通过eureka.instance.prefer-ip-address 配置项,可以找到源码1org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean.preferIpAddress(2) preferIpAddress被哪里调用,可以找到1org.springframework.cl...转载 2018-07-05 11:44:25 · 43850 阅读 · 5 评论 -
Spring cloud properties与yml配置说明
encrypt说明名称默 认描述encrypt.fail-on-errortrue标记说,如果存在加密或解密错误,进程将失败。encrypt.key 对称密钥。作为一个更强大的替代方案,考虑使用密钥库。encrypt.key-store.alias 商店中的钥匙别名encrypt.key-store.location 密钥存储文件的位置,例如classpath:/keystore.jks。encr...转载 2018-07-05 12:31:13 · 821 阅读 · 0 评论