BraveXaiver
V2EX  ›  Java

为什么 spring 中 management.server.ssl.enabled 的默认值是 true,但一个简单的 spring web 程序, http://localhost:8080/actuator 完全是通的?

  •  
  •   BraveXaiver · Nov 5, 2023 · 2688 views
    This topic created in 963 days ago, the information mentioned may be changed or developed.
    不应该只有 HTTPS 通吗?
    谢谢!
    1 replies    2023-11-06 09:36:55 +08:00
    litchinn
        1
    litchinn  
       Nov 6, 2023   ❤️ 1
    https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.monitoring.management-specific-ssl

    需要配置不同的端口,这个才起作用,同一个端口应该是以 main server 为准
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1518 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:41 · PVG 00:41 · LAX 09:41 · JFK 12:41
    ♥ Do have faith in what you're doing.