Home > Back-end >  A novice for help: SSM framework, Failed to load ApplicationContext
A novice for help: SSM framework, Failed to load ApplicationContext

Time:10-02

Didn't solve the problem, find a lot of bloggers,
Very strange, did not move the test class, a few days before the test fairly well, today suddenly unable to read the configuration file, nasty,
Labeled as part of the log first:
Java. Lang. An IllegalStateException: Failed to load ApplicationContext

Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'constructionUserController: Injection of resource dependencies failed; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'constructionUserService: Injection of resource dependencies failed; Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. Jason. ConstructionManagement. Dao. IConstructionUserDao] found for the dependency: expected at further 1 bean which qualifies as autowire candidate for this dependency, the dependency annotations: {@ javax.mail. The annotation. The Resource (shareable=true, lookup=, name=, the description=, authenticationType=CONTAINER, type=class. Java lang. Object, mappedName=)}

Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'constructionUserService: Injection of resource dependencies failed; Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. Jason. ConstructionManagement. Dao. IConstructionUserDao] found for the dependency: expected at further 1 bean which qualifies as autowire candidate for this dependency, the dependency annotations: {@ javax.mail. The annotation. The Resource (shareable=true, lookup=, name=, the description=, authenticationType=CONTAINER, type=class. Java lang. Object, mappedName=)}

Under Caused by: org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. Jason. ConstructionManagement. Dao. IConstructionUserDao] found for the dependency: expected at further 1 bean which qualifies as autowire candidate for this dependency, the dependency annotations: {@ javax.mail. The annotation. The Resource (shareable=true, lookup=, name=, the description=, authenticationType=CONTAINER, type=class. Java lang. Object, mappedName=)}



Pom. XML
Xsi: schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" & gt;
4.0.0 & lt;/modelVersion>
Com. Jason
ConstructionManagement
War
0.0.1 - SNAPSHOT
ConstructionManagement
http://maven.apache.org

4.0.2. RELEASE
3.2.8 & lt;/mybatis. Version>
1.7.12 & lt;/slf4j. Version>
1.2.17 & lt;/log4j. Version>



Junit
Junit
4.11 & lt;/version>
Test


Javax
Javaee - api
7.0 & lt;/version>


Org. Springframework
Spring - test
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - core
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - oxm
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - tx
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - jdbc
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - aop
The ${spring. Version} & lt;/version>


Org. Springframework
Spring - context
The ${spring. Version} & lt; nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related