忧郁的双鱼座程序猿
2018-12-13 06:10SpringBoot 整合Mybatis 的时候报错
APPLICATION FAILED TO START
Description:
Parameter 0 of method sqlSessionFactoryBean in com.anole.db.config.MybatisConfigurer required a bean of type 'javax.sql.DataSource' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'dataSource' in 'JndiDataSourceAutoConfiguration' not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
- Bean method 'dataSource' in 'XADataSourceAutoConfiguration' not loaded because @ConditionalOnClass did not find required class 'javax.transaction.TransactionManager'
Action:
Consider revisiting the entries above or defining a bean of type 'javax.sql.DataSource' in your configuration.
Process finished with exit code 1
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- Spring boot+mybatis项目新增删除查询都没有问题,但是更新时没有错误数据库里面的数据为什么没有修改?
- spring
- mysql
- intellij-idea
- 3个回答
- Spring Boot 整合mybatis-plus注入失败
- spring
- java
- intellij-idea
- 2个回答
- SpringBoot +MybatisPlus +activiti整合版本冲突,有没有整合没冲突的组合,求推荐!
- java
- intellij-idea
- jar
- 2个回答
- spring boot加mybatis编程式事务在线程中回滚事务时,每隔一段时间就会提交事务
- spring
- java
- java-ee
- 1个回答
- springboot项目集成通用Mapper接口报错
- java
- 5个回答