2019-05-14

Enable Spring Security Web Expression(JSTL)



Reference URL:

  1. https://stackoverflow.com/questions/11594104/spring-security-no-visible-websecurityexpressionhandler-instance-could-be-foun
  2. 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