qq_19677511
忧郁的双鱼座程序猿
2018-12-13 06:10

SpringBoot 整合Mybatis 的时候报错

  • mybatis
  • springboot 聊天室
  • class
  • bean
  • 应用

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条回答