SpringCloud
0 篇文章
说明:其实 yml 和 properties 文件是一样的原理,主要是说明 application 和 bootstrap 的加载顺序。且一个项目上要么 yml 或者 properties,二选一的存在。Bootstrap.yml(bootstrap.properties)在 application.yml(application.properties)之前加载,就像 application.yml 一样,但是用于应用程序上下
禁用自动注册的俩中方法:_@EnableDiscoveryClient(autoRegister=false)_spring.cloud.service-registry.auto-registration.enabled=false