Home > Back-end >  SSM Service layer into an error for help
SSM Service layer into an error for help

Time:09-20

SSM service injection reported No matching bean of type [cn. Zhuxin. SSM) mapper) ItemsMapperCustom] found for the dependency: expected at further 1 bean which test several times didn't find the problem hope great god help check

This is the project directory

Dao configuration

WEB configuration

Service

The controller

Error message

Seek a great god advice thank you very much

CodePudding user response:



service

CodePudding user response:

ItemsMapperCustom annotations?

CodePudding user response:

refer to the second floor abcdefghiijklmnopqrs response:
ItemsMapperCustom annotations?


ItemsMapperCustom this use dynamic proxy is only one interface mapper will add @ Controller on the interface?

CodePudding user response:

reference qq_36214717 reply: 3/f
Quote: refer to the second floor abcdefghiijklmnopqrs response:

ItemsMapperCustom annotations?


ItemsMapperCustom this use dynamic proxy is only one interface mapper will add @ Controller on the interface?
no, sqlMapConfig. XML how to write? For springmvc. XML is line 15 JDBC. Properties

CodePudding user response:

In the web. In the XML configuration org. Springframework. Web context. ContextLoaderListener,,,,
 

Org. Springframework. Web. Context. ContextLoaderListener



ContextConfigLocation
The classpath: spring/applicationContext - *. Xml

CodePudding user response:

reference 5 floor pany1209 reply:
on the web. In the XML configuration org. Springframework. The web context. ContextLoaderListener,,,,
 

Org. Springframework. Web. Context. ContextLoaderListener



ContextConfigLocation
The classpath: spring/applicationContext - *. Xml



What do you mean?

CodePudding user response:

Fifth floor said you less a configuration,

CodePudding user response:


Did you make this change a try, don't know if this is wrong, the other

CodePudding user response:

Is less in the spring configuration file for this & lt; Context: component - scan base - package="" & gt; , scanning using annotations package

CodePudding user response:

Your applicationContext - dao. XML, the first line
  • Related