xuwujing / springBoot-study

SpringBoot学习的相关工程并辅以博文讲解。主要包括入门的Hello World、自定义配置的获取、集成mybatis的xml和注解使用、集成jpa的使用、集成druid进行项目的监控、事物实战使用, 项目打包、使用logback日志文件管理、添加过滤器和拦截器、多数据源、Restful风格的服务、集成elasticsearch、redis、netty、集成jsp和thymeleaf、集成storm、kafka等相关技术。
Apache License 2.0
1.61k stars 819 forks source link

springboot-actuator的management.port没起作用? #28

Open LeiYangGH opened 2 years ago

LeiYangGH commented 2 years ago

在springboot-actuator项目的src/main/resources/application.yml里面

server:
  port: 8181 
management:
  security:
    enabled: false #关掉安全认证
  port: 8888 #管理端口
  context-path: /monitor #actuator的访问路径

启动后,访问管理端口只能用诸如http://localhost:8181/actuator 但没看到任何endpoint可以用8888端口或者/monitor访问的,都是连接被拒绝。 请举例说明这两个配置的作用?谢谢。