【发布时间】:2018-03-15 19:56:06
【问题描述】:
我的应用程序使用弹簧安全性。我知道您可以使用 antMatchers 来允许对映射到您的应用程序的某些 URI 的请求。但我也需要允许从外部 api 向我的应用程序中的 URI 发出的请求,并且只针对该 api。我需要这样的东西:
@Override
protected void configure(WebSecurity web) throws Exception
{
web.ignoring()
.antMatchers("http://externalTestApi.com");
}
有人知道这是否可能吗?我没有在这方面找到任何东西。
【问题讨论】:
标签: java spring spring-mvc spring-boot spring-security