Question:
In the SSM project, the implementation of non login interception has been endless loop and does not jump to the page
Solution:
Page not intercepted is not configured in the configuration file, resulting in an infinite loop
<!-- Configure interceptors -->
<mvc:interceptors>
<mvc:interceptor>
<! -- Intercept all pages under the directory -->
<mvc:mapping path="/**"/>
<! -- mvc:exclude-mapping is another kind of interception that allows you to unintercept a page in your later tests, so that you don't have to use it in the
LoginInterceptor's preHandler method inside to get the unintercepted request uri address (preferred)-->
<mvc:exclude-mapping path="/login.html" />
<bean class="org.westos.interceptor.LoginInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
Because a page may consist of multiple pages and JS, it must be intercepted correctly
Read More:
- [Solved] SSM Project Error: Error during artifact deployment. See server log for details.
- [Solved] Shell loop execute error: syntax error: bad for loop variable
- [Solved] springmvc:Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor
- SSM custom 404 and 500 error reporting interface
- When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file
- How to Solve forEach cannot exit the loop Issue
- Zookper Error: [org.apache.zookeeper. ClientCnxn]-[WARN] Session 0x0 for server 192.168.25.132/192.168.25.132:2181, unexpected error…(SSM integration)
- The loop of life and death occurs when the El table component of element UI is bidirectional bound
- Solve Maven project running error Failed to clean project: Failed to delete
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- IDEA: How to Solve Springboot Project install Error
- [Solved] Springboot Project Startup Error: Error starting ApplicationContext
- [Solved] flutter Project Error: ScrollController attached to multiple scroll views, Failed assertion: line 109 pos 12
- NPM start project error: cannot find module ‘webpack’ problem solution
- Mybatis error under Springboot project: Invalid bound statement (not found)
- How to Fix the common Warning Errors after Vue Project Startup
- [Solved] JSP Project request.getParameter Error
- The @RestControllerAdvice annotation does not take effect in the Springboot project
- Android Studio: Gradle project sync failed [How to Solve]
- [Solved] Failed to apply plugin appears when Android studio imports a project