SpringBoot启动错误:

***************************
APPLICATION FAILED TO START
***************************Description:Parameter 0 of method sqlSessionFactory in com.yky.ykyAdmin.farmework.config.MyBatisConfig 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

解决:

去除启动类中的

(exclude = DataSourceAutoConfiguration.class)

错误:Parameter 0 of method sqlSessionFactory in MyBatisConfig required a bean of type ‘javax.sql.DataS相关推荐

  1. springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could

    springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...

  2. Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration 异常解决

    Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration required a bean of type 'xxx. ...

  3. Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration req

    项目场景: 整合springboot项目并对springboot项目进行版本升级 问题描述: 错误信息: Description:Parameter 0 of method linkDiscovere ...

  4. Parameter 0 of method redisTemplate in org

    服务提供方在使用这个redis的时候,因为引入错误的依赖,所以导致出现下面的报错.以及消费方也报了一堆错误 Error starting ApplicationContext. To display ...

  5. 关于Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require

    错误 Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require ...

  6. Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration

    今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错: Error starting ApplicationContext. To displa ...

  7. 解决:Parameter 0 of constructor in xxx required a bean of type ‘xxx‘ that could not be found.

    运行报错: Parameter 0 of constructor in com.xxx.Crawler required a bean of type 'java.lang.String' that ...

  8. 解决:Parameter 0 of constructor in XXX required a bean of type ‘XXX‘ that could not be found

    解决:Parameter 0 of constructor in com.mise.smart.entity.HrmNoticeEntity required a bean of type 'java ...

  9. Field jdbcTemplate in ***** required a bean of type '***' that could not be found. - Bean method 'j

    spring boot 启动报错: 2019-08-01 18:46:05.929 INFO 1480 --- [ main] com.boss.fap.FapServiceMain2 : Start ...

最新文章

  1. 学好python薪水有多少笔画_Python学到什么程度可以面试工作?
  2. 计算机应用技术自考知识点,自考计算机应用技术知识点:微处理器结构
  3. 品茗论道说广播(Broadcast内部机制讲解)
  4. mysql5.5集群数据同步_[转]配置mysql5.5主从复制数据库集群
  5. ASP.NET MVC 1.0 Result 几何?
  6. spark中dataframe解析_Spark-SQL
  7. java初始化配置_java – 初始化没有XML配置的数据库,但使用@Configuration
  8. 密码协议(一)协议概述
  9. TCP/IP网络编程-前三章学习笔记
  10. 【RPA】PDF生成器FPDF(Python篇)
  11. AdapterView详解
  12. 计算机漏洞安全相关的概念POC | EXP | VUL | CVE | 0DAY
  13. 杂文 | 金沙江创投朱啸虎谈微信小程序
  14. 洛谷 P1378 油滴扩展
  15. 数据安全之MySQL数据加解密的实现方案
  16. 出现 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation 问题
  17. Windows操作系统文件夹
  18. 入手评测 神舟战神Z8值得买吗
  19. Linux打开最大文件数限制
  20. STL——stack

热门文章

  1. 小程序怎么开通流量主
  2. 【mycat】mycat分库分表
  3. 新建Mavlink消息
  4. 在使用 NModBus 开发Modbus协议数据时对待无符号16整形的问题(UShort转Short)
  5. 九天毕昇深度学习平台常见环境问题及解决
  6. 常用代码编辑工具简单记录
  7. Windows10下Vmware15.5虚拟机安装苹果的10.15.5(19F96)CDR镜像
  8. ArcMap 基于DEM的基础地形分析
  9. 高一凡老师的数据结构
  10. python计时器类