org.apache.jasper.JasperException: An exception occurred processing JSP page
<jsp:forward page="/pages/main.jsp"></jsp:forward>
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.io.IOException: No visible WebSecurityExpressionHandler instance could be found in the application context. There must be at least one in order to support expressions in JSP 'authorize' tags.
在SpringSecurity配置页面,为了不使用SPEL表达式,把JTEL表达式也给禁用了
<security:http auto-config="true" use-expressions="false">
为了使JSP页面不出错,在配置文件中配置一个
<bean id="webexpressionHandler" class="org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler" />