2016-09-06 31 views
0

Tomcatを起動してアプリケーションにアクセスできないと、このエラーが発生します。 私はspring-Core-4.1.9_RELEASEとSpring Security-Core-4.0.3.RELEASEを使用しています。コンテキストを初期化できません

ERROR [localhost-startStop-1] [] [] [org.springframework.web.context.ContextLoader] - <Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The use of "filters='none'" is no longer supported. Please define a separate <http> element for the pattern you want to exclude and use the attribute "security='none'". 
+0

ない 'spring'専門家は...しかし、あなたの設定ファイルに「'ありフィルタリングされていない場合、フィルタはサポートされなくなりました.... – Plirkee

答えて

0

この機能は推奨されていません。 3.0より新しいバージョンのSpringでは、起動時に実行時例外が発生します。あなたのケースでは

<http pattern="/nonsecure/**" security="none"/> 

を、これは動作するはずです:代わりに、このために行く

てみ

<intercept-url pattern="/login.jsp*" security="none" /> 
<intercept-url pattern="/framework/**" security="none"" /> 
<intercept-url pattern="/changePassword.htm" security="none" /> 
+0

jaind12

+0

httpタグでそれを作る方法 – jaind12

+1

それぞれの 'intercept-url'要素で' security = "none" 'の' filters = "none" 'を変更してください。 – jlumietu

関連する問題