11-2查询demo时,出现错误,怎么解决?

来源:11-2 使用mybatis+SpringBoot完成第一个查询demo

qq_慕丝056795

2018-11-20

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2018-11-20 17:42:47.619 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -


APPLICATION FAILED TO START


Description:

Field template in com.course.controller.Demo required a bean of type ‘org.mybatis.spring.SqlSessionTemplate’ that could not be found.
- Bean method ‘sqlSessionTemplate’ not loaded because @ConditionalOnBean (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans of type javax.sql.DataSource

Action:

Consider revisiting the conditions above or defining a bean of type ‘org.mybatis.spring.SqlSessionTemplate’ in your configuration.
查询demo时,出现错误,怎么解决?

写回答

2回答

qq_慕丝056795

提问者

2018-11-21

//img.mukewang.com/szimg/5bf52b0900017eb207750376.jpg访问出错,路径是正确的

0
1
dong辉
你好,你问题解决了吗?
2019-12-14
共1条回复

大周

2018-11-20

感觉是引包出现了问题。再按照课程里的核对一下,然后重新下载一下

0
1
qq_慕丝056795
通过也没访问的时候404,路径是正确的
2018-11-21
共1条回复

Java接口自动化测试实战,搞定理论基础+典型应用场景

打破传统测试用例设计方法,搞懂基于TestNG的接口自动化测试技术

2086 学习 · 920 问题

查看课程