【发布时间】:2016-08-26 15:13:28
【问题描述】:
我正在使用带有 Jersey 的 Spring Boot (1.3.0)(pom 依赖项:spring-boot-starter-jersey、spring-boot-starter-actuator、spring-boot-starter-web、spring-boot-starter-security)。
我有一个 Jersey 端点(见下文),非常简单:
@Component
@Path("/helloworld")
public class HelloWorldResource {
@GET
public String home() {
return "Hello World !";
}
}
我已通过为 Spring MVC url (server.servlet-path=/system) 设置特定路径来启用 Spring Boot Actuator,如Spring Boot guide 中所述。
感谢spring-boot-starter-security,Actuator 端点通过基本身份验证得到保护。
我的问题是 /helloworld 也是安全的,但我想让它不安全。
我该怎么做?
谢谢!
【问题讨论】:
标签: security spring-boot spring-boot-actuator