想要在spring boot 项目中,使用spring-boot-starter-actuator监控插件,对各种参数进行监控时,发现除了/health和/info 端口之外,其他的端口访问都为404 。
1.项目中使用的maven插件对依赖包进行管理,在pom文件中需要添加配置,用来加载配置
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator