我正在将 Spring Boot ( 1.3.0) 与 Jersey 一起使用(pom 依赖项:spring-boot-starter-jersey、、、、spring-boot-starter-actuator)。spring-boot-starter-webspring-boot-starter-security
我有一个 Jersey 端点(见下文),它非常简单:
@Component
@Path("/helloworld")
public class HelloWorldResource {
@GET
public String home() {
return "Hello World !";
}
}
server.servlet-path=/system我通过为 Spring MVC url ( )设置特定路径来启用 Spring Boot Actuator ,如Spring Boot guide中所述。
多亏了spring-boot-starter-security,Actuator 端点通过基本身份验证得到保护。
我的问题是它/helloworld也是安全的,但我想让它不安全。
我怎样才能做到这一点 ?
谢谢 !