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
访问出错,路径是正确的
012019-12-14 -
大周
2018-11-20
感觉是引包出现了问题。再按照课程里的核对一下,然后重新下载一下
012018-11-21
相似问题