2026/3/29 11:11:39
网站建设
项目流程
做任务悬赏网站,域名服务器上存放着internet主机的,小程序商城系统,怎样在网上卖东西步骤记一次SpringBoot升级2.x以后遇到的一个小坑#xff1a;
以前采用1.x的时候#xff0c;在服务发现中心点击单个服务#xff0c;可以查看当前服务的详细信息#xff0c;配置文件只需要简单的配置#xff0c;
#xff1a;
父级#xff1a;
parentgroupIdo…记一次SpringBoot升级2.x以后遇到的一个小坑以前采用1.x的时候在服务发现中心点击单个服务可以查看当前服务的详细信息配置文件只需要简单的配置父级 parent groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-parent/artifactId version2.1.2.RELEASE/version /parent 子级 dependency groupIdorg.springframework.boot/groupId artifactIdspring-boot-starter-web/artifactId /dependency dependency groupIdorg.springframework.cloud/groupId artifactIdspring-cloud-starter-netflix-eureka-client/artifactId /dependency这样就可以在服务发现中心看到具体该服务的详细信息升级2.x以后需要再加一个服务依赖和更改一个服务配置pom.xml中增加dependency groupIdde.codecentric/groupId artifactIdspring-boot-admin-starter-client/artifactId version2.1.4/version /dependencyyml文件中增加management: endpoints: web: exposure: include: * endpoint: health: show-details: ALWAYS这样就可以显示该服务的详细信息了