错误:Parameter 0 of method sqlSessionFactory in MyBatisConfig required a bean of type ‘javax.sql.DataS
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相关推荐
- springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could
springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...
- Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration 异常解决
Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration required a bean of type 'xxx. ...
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration req
项目场景: 整合springboot项目并对springboot项目进行版本升级 问题描述: 错误信息: Description:Parameter 0 of method linkDiscovere ...
- Parameter 0 of method redisTemplate in org
服务提供方在使用这个redis的时候,因为引入错误的依赖,所以导致出现下面的报错.以及消费方也报了一堆错误 Error starting ApplicationContext. To display ...
- 关于Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require
错误 Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require ...
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration
今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错: Error starting ApplicationContext. To displa ...
- 解决: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 ...
- 解决: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 ...
- 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 ...
最新文章
- 学好python薪水有多少笔画_Python学到什么程度可以面试工作?
- 计算机应用技术自考知识点,自考计算机应用技术知识点:微处理器结构
- 品茗论道说广播(Broadcast内部机制讲解)
- mysql5.5集群数据同步_[转]配置mysql5.5主从复制数据库集群
- ASP.NET MVC 1.0 Result 几何?
- spark中dataframe解析_Spark-SQL
- java初始化配置_java – 初始化没有XML配置的数据库,但使用@Configuration
- 密码协议(一)协议概述
- TCP/IP网络编程-前三章学习笔记
- 【RPA】PDF生成器FPDF(Python篇)
- AdapterView详解
- 计算机漏洞安全相关的概念POC | EXP | VUL | CVE | 0DAY
- 杂文 | 金沙江创投朱啸虎谈微信小程序
- 洛谷 P1378 油滴扩展
- 数据安全之MySQL数据加解密的实现方案
- 出现 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation 问题
- Windows操作系统文件夹
- 入手评测 神舟战神Z8值得买吗
- Linux打开最大文件数限制
- STL——stack