Reference URL:
- https://stackoverflow.com/questions/11594104/spring-security-no-visible-websecurityexpressionhandler-instance-could-be-foun
- https://www.codesd.com/item/no-webapplicationcontext-found-no-contextloaderlistener.html
Added bean configuration below into applicationContext.xml to enable Spring EL
<bean id="webexpressionHandler" class="org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler" />
To have this applicationContext.xml to be pickup, make sure listener has been added into /WEB-INF/web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
No comments:
Post a Comment