The conflict between the Shiro framework and the SPRINGMVC

Source: Internet
Author: User

When using Shiro and MVC integration, the login verification is Shiro with the Formauthenticationfilter filter, the result configuration Successurl can not be configured as a *.do format, can only be configured as "/" or not set, the default is also "/"。 and in Web. XML, the path to MVC can only be configured as "/". This is the only way to use it properly. This, in turn, can cause MVC to intercept static resources. Although the network said there are many MVC configuration methods to filter static resources, but I do not know for a moment what is the reason, with the <mvc:resource/> method, as long as the addition, the controller load will be invalidated.

For the time being yet to try out what is the reason, think of it as if you can only implement the filter. If a great God has met and has solved this problem, please enlighten me.

The conflict between the Shiro framework and the SPRINGMVC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.