新版SpringBoot已不再需要@EnableDiscoveryClient,只需要在pom文件中加入服务发现实现类的maven坐标即可。
可通过配置spring.cloud.discovery.enabled=false 来禁用服务自动发现