Spring security 如何在Spring Boot中禁用某些API的安全性
我正在用SpringBoot编写一个应用程序。我使用的是Spring引导默认安全机制。但我想禁用某些端点的安全性,如Spring security 如何在Spring Boot中禁用某些API的安全性,spring-security,spring-boot,Spring Security,Spring Boot,我正在用SpringBoot编写一个应用程序。我使用的是Spring引导默认安全机制。但我想禁用某些端点的安全性,如监控,healthcheck等。使用安全性。忽略=要忽略的Url路径应用程序中的属性。属性使用安全性。忽略=要忽略的Url路径应用程序中的属性。属性您可以在Spring Boot application.properties中添加以下配置 security.ignored= # Comma-separated list of paths to exclude from the de
监控
,healthcheck
等。使用安全性。忽略=要忽略的Url路径应用程序中的属性。属性使用安全性。忽略=要忽略的Url路径应用程序中的属性。属性您可以在Spring Boot application.properties中添加以下配置
security.ignored= # Comma-separated list of paths to exclude from the default secured paths
您可以在Spring Boot application.properties中添加以下配置
security.ignored= # Comma-separated list of paths to exclude from the default secured paths
你能更具体地说明你要做什么,什么应用程序吗?我正在使用spring boot应用程序和默认的spring boot安全性。你能更具体地说明你要做什么,什么应用程序吗?我正在使用spring boot应用程序和默认的spring boot安全性。更多的细节可能会有所帮助。你把“安全,忽略”放在哪里?读者可能不像你那样熟悉这项技术……多了解一些细节可能会有所帮助。你把“安全,忽略”放在哪里?读者可能不像你那样熟悉这项技术,@Balachander.raSame给出了相同的答案@Balachander.ra给出了相同的答案