No mapping found for HTTP request with URI [/dzcx_manage/host/tohostmsg.action

Source: Internet
Author: User

Questions :

When the project starts clicking on a page, the console reports no mapping found for HTTP request with URI

[/dzcx_manage/host/tohostmsg.action error. However, there are corresponding Carusercontroller.java files in the project structure, and there are @RequestMapping ("/tohostmsg") defined. and configuring a controller scan in Applicationcontext.xml is also correct.

(1)Carusercontroller.java

(2)Configuring a controller scan in Applicationcontext.xml (all controllers in their own project are under Com.dz.controller)

Workaround :

Later project start view the log output of the console:the @RequestMapping in the Carusercontroller.java file was not scanned, annotated. Then remove the Add project again and the project starts again and everything is fine. (It is unclear what caused the first/host/.) Not scanned in sequence)

:

previously reported no mapping found for HTTP request with URI [/dzcx_manage/host/tohostmsg.action error when the red box in the above image is selected/hos t/... the @RequestMapping of the corresponding controller is not scanned or annotated.

No mapping found for HTTP request with URI [/dzcx_manage/host/tohostmsg.action

Related Article

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.