Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我也在我使用 spring 的项目中用 cxf 编写了一个 Web 服务。如果有人想访问我的服务,他/她会收到错误“处理时发生故障”。这是关于春季安全的。我希望我的服务是公开的,每个人都可以访问我如何配置它。
你试过弹簧安全拦截网址吗?配置喜欢如下
<security:http ...... <security:intercept-url pattern="/yourwebservice/**" filters="none" /> </security:http>
使用此配置,Web 服务调用应该绕过 Spring Security。