No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1
No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate.
原因使用了預設的DataSource,但在Application中新增了 (exclude= {DataSourceAutoConfiguration. class }),去掉即可
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10314474/viewspace-2200345/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SpringBoot整合Junit單元測試找不到bean報錯:expected at least 1 bean which qualifies as autowire candidateSpring BootBeanAST
- No bean named ''XXX“ availableBeanAI
- No bean named BookServiceImpl availableBeanAI
- Error-Expected resource of typeError
- Caused by:.NoSuchBeanDefinitionException: No bean named 'userInfoServiceImpl' availableBeanExceptionAI
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- No Bean named 'Xxx' available 異常報錯BeanAI
- SpringBoot 學習之 No bean named ‘xxx’ availableSpring BootBeanAI
- spring中No bean named xxx available錯誤SpringBeanAI
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- xcode6編譯錯誤,提示Expected a typeXCode編譯
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'aaaa' availableSpringFrameworkBeanExceptionAI
- idea maven搭建spring報錯:No bean named 'xxx' availableIdeaMavenSpringBeanAI
- spring-mybatis整合:NoSuchBeanDefinitionException: No bean named 'xxx.class' availableSpringMyBatisBeanExceptionAI
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- Spring中出現:No bean named 'XXX' available問題解決SpringBeanAI
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of typeSpringFrameworkBeanException
- 記一次idea構建springmvc報錯:No bean named 'cacheManager' availableIdeaSpringMVCBeanAI
- springboot註解實現非同步呼叫時no bean of type TaskExecutor and no bean named 'taskExecutor' eitherSpring Boot非同步Bean
- [Vue warn]: Invalid prop: type check failed for prop "unlinkPanels". Expected Boolean, got String with value "true".VueAIBooleanGo
- vue報錯:[Vue warn]: Invalid prop: type check failed for prop "value". Expected Number, got String....VueAIGo
- 程式碼改造引發的NoSuchBeanDefinitionException:no bean named 'XXXX' available問題解決方案BeanExceptionAI
- a commponent required a bean of type XXXXXX that could not be found-2022新專案UIBean
- A. Least ProductAST
- Go 執行 程式 test.go:1:1: expected ‘package‘, found ‘EOF‘GoPackage
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- springboot使用jpa啟動報錯consider defining a bean of type '*.*.**Repository' in your configuration....Spring BootIDEBean
- Oracle Least Recently Used ChainsOracleASTAI
- No instances available for XXXAI
- A Tomcat 8.0 installation is expectedTomcat
- E. Expected Power
- Least Cost Bracket Sequence(貪心)ASTRacket
- Java新增構造方法異常異常——Could not autowire. there is more than one bean of '' typeJava構造方法Bean
- Python IndentationError: expected an indented blockPythonErrorBloC
- No Task Available解決方法AI
- cannot convert (type interface {}) to type int: need type assertion
- Vue : Expected the Promise rejection reason to be an ErrorVuePromiseError
- Expected indentation of 14 spaces but found 16