4
2723 [Thread-1] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
2723 [Thread-1] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
2725 [Thread-1] DEBUG org.springframework.beans.BeanUtils - No property editor [org.springframework.security.web.authentication.logout.LogoutSuccessHandlerEditor] found for type org.springframework.security.web.authentication.logout.LogoutSuccessHandler according to 'Editor' suffix convention
2726 [Thread-1] DEBUG org.springframework.beans.TypeConverterDelegate - **Field [/admin/login] isn't an enum value**
java.lang.NoSuchFieldException: /admin/login
at java.lang.Class.getField(Class.java:1537)
at org.springframework.beans.TypeConverterDelegate.attemptToConvertStringToEnum(TypeConverterDelegate.java:287)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:218)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:92)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
我有/admin/login
作爲一個控制器的映射:這個Spring錯誤是什麼意思?
@RequestMapping(value="/admin/login", method=RequestMethod.GET)
public ModelAndView getLoginPage(@RequestParam(value="failedAttempt", required=false) boolean failedAttempt, ModelMap model) {
其他,這個字符串在spring-security.xml
提及。
當我的服務器啓動時出現此錯誤。我甚至不會去/admin/login
頁面。
我的安全xml。
<security:intercept-url pattern="/admin/login" access="permitAll"/>
<security:intercept-url pattern="/admin/denied" access="permitAll"/>
<security:intercept-url pattern="/admin/logout" access="permitAll"/>
<security:intercept-url pattern="/admin/*" access="hasRole('AUTHOR')"/>
<security:intercept-url pattern="/admin**" access="hasRole('AUTHOR')"/>
<security:form-login
login-page="/admin/login"
login-processing-url="/admin/j_spring_security_check"
authentication-failure-url="/admin/login?failedAttempt=true"
default-target-url="/admin/home"/>
<security:logout
invalidate-session="true"
logout-success-url="/admin/login"
logout-url="/admin/logout"/>
</security:http>
你能說明它是如何在'spring-security.xml'中使用的嗎? –
@MartyPitt鍵xml添加。 – jacekn
我不認爲有錯誤。調試日誌中有一個堆棧跟蹤,但僅此而已。這個應用程序實際上是否存在問題(如果是這樣的話,你將不得不提供更多的細節來看看它是什麼)? –