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] spring boot security Start Error: ‘login.html?error‘ is not a valid redirect URL
- Can’t read property ‘push’ of undefined [How to Solve]
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- Mybatis-plus calls its own method error: Invalid bound statement
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- [Solved] Swagger Error: Whitelabel Error Page status=405
- How to Solve Error: failed to load response
- Nginx: How to Use Error_Page
- Axios request failed, get the status code and error information, how to encapsulate the function dealing with the public error code
- [Solved] STM32F4 MDK5 Software Simulate Error: error 65: no ‘read‘ permission
- Swagger-ui.html Open Error: There was an unexpected error (type=Not Found, status=404)
- How to Fix Failed to load resource: the server responded with a status of 404()
- [Solved] Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource
- Android Error: META-INF/DEPENDENCIES [How to Solve]
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- [vite] http proxy error: Error: self signed certificate in certificate chain vite
- [Solved] thymeleaf.TemplateEngineException processing template “main“: An error happened during template pars
- Ajax prevents page requests from reporting errors
- [Solved] IEEE contribute error: Page n has margin implications
- Notes on atom editor_ (11) Editor previews HTML page in real time (add in: atom HTML preview)