About Springmvc class not found [no qualifying bean of type [...] is defined] Issue

Source: Internet
Author: User

First of all, don't panic, this problem must be a certain configuration note is not written on:

Just a few places:

1. Whether the control layer adds @controller or whether the class that requires Pring management is added @component

Whether the 2.DAO layer adds @repository

If the 3.Service layer is added @service indeterminate case can @service ("Beanname") whether to refer to the DAO layer is not added @resource (I like to use @Resource annotation on the field, and this annotation belongs to the Java EE, The coupling with spring is reduced. The most important of these is that the code looks more elegant. )

4. Is whether the controller layer refers to @autowired

However, the fourth error message is not described in this heading, but is checked to see if the reference is also forgotten.

About Springmvc class not found [no qualifying bean of type [...] is defined] Issue

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.