-------------------------------------------------------------------------------
Test set: com.mt.ManageTestApplicationTests
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.558 s <<< FAILURE! - in com.mt.ManageTestApplicationTests
contextLoads Time elapsed: 0.001 s <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.mt.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.mt.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.mt.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
manage_test.zip (33个子文件)
manage_test
HELP.md 1KB
mvnw.cmd 7KB
pom.xml 2KB
src
test
java
com
mt
ManageTestApplicationTests.java 211B
main
resources
templates
mapping
UserMapper.xml 2KB
static
application.yml 420B
java
com
mt
mapper
UserMapper.java 456B
controller
UserController.java 1KB
service
UserService.java 363B
impl
UserServiceImpl.java 1KB
model
User.java 1KB
ManageTestApplication.java 415B
.mvn
wrapper
maven-wrapper.properties 233B
maven-wrapper.jar 61KB
target
classes
mapping
UserMapper.xml 2KB
application.yml 420B
com
mt
mapper
UserMapper.class 553B
controller
UserController.class 2KB
service
UserService.class 335B
impl
UserServiceImpl.class 1KB
model
User.class 2KB
ManageTestApplication.class 812B
test-classes
com
mt
ManageTestApplicationTests.class 529B
maven-status
maven-compiler-plugin
compile
default-compile
createdFiles.lst 204B
inputFiles.lst 468B
testCompile
default-testCompile
createdFiles.lst 40B
inputFiles.lst 84B
surefire-reports
2024-04-30T18-06-34_996.dumpstream 92B
com.mt.ManageTestApplicationTests.txt 2KB
TEST-com.mt.ManageTestApplicationTests.xml 53KB
generated-test-sources
test-annotations
generated-sources
annotations
manage_test.iml 10KB
mvnw 11KB
.gitignore 395B
共 33 条
- 1
资源评论
小蜜蜂vs码农
- 粉丝: 1113
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功