Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LeiYangGH opened this issue Nov 3, 2021 · 0 comments
Open

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

LeiYangGH opened this issue Nov 3, 2021 · 0 comments

Comments

@LeiYangGH
Copy link

在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访问的,都是连接被拒绝。
请举例说明这两个配置的作用?谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant