2010-08-02 70 views
20

我得到以下错误...的WebSphere:不支持的配置属性:使用弹簧

Unsupported configuration attributes: [permitAll] 

当添加....

<sec:intercept-url pattern="/nonsecure/**" access="permitAll" /> 

我在WebSphere [permitAll]与Spring 2.5 。

任何人都可以帮忙吗?

杰夫·波特

+0

看到这个答案 - http://stackoverflow.com/questions/3394657/spring-security-how-to-exclude-certain-resources/3394803#3394803 – Qrilka 2010-11-13 09:48:53

回答

56

你必须使用表达式标签添加到您的HTTP配置在例如安全XML :

<http auto-config="true" use-expressions="true"> 
... 
... 
</http> 
+5

这是真正的答案! – 2013-11-10 07:43:37

+1

顺便说一下,如果您使用Java配置,则此配置默认完成 – 2015-04-10 20:40:27

+0

也不要使用'auto-config':'遗留属性会自动注册登录表单, BASIC身份验证以及注销URL和注销服务。如果未指定 ,则默认为“false”。我们建议您避免使用 这个,而是明确配置您需要的服务。 'from https://docs.spring.io/autorepo/schema/spring-security/3.2.0.RC2/security/spring-security-3.2.xsd – 2018-02-01 15:33:35