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
- Error-Expected resource of typeError
- No bean named BookServiceImpl availableBeanAI
- No bean named ''XXX“ availableBeanAI
- Caused by:.NoSuchBeanDefinitionException: No bean named 'userInfoServiceImpl' availableBeanExceptionAI
- xcode6編譯錯誤,提示Expected a typeXCode編譯
- Expected mime type application/octet-stream but got text/html.APPGoHTML
- No Bean named 'Xxx' available 異常報錯BeanAI
- Android Studio 打包APK遇到Error: Expected resource of type id [ResourceType]AndroidAPKError
- spring中No bean named xxx available錯誤SpringBeanAI
- 開發:異常收集之 expected single matching bean but found 2Bean
- SpringBoot 學習之 No bean named ‘xxx’ availableSpring BootBeanAI
- Spring Boot學習之No bean named 'entityManagerFactory' available異常Spring BootBeanAI
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'aaaa' availableSpringFrameworkBeanExceptionAI
- Spring中出現:No bean named 'XXX' available問題解決SpringBeanAI
- idea maven搭建spring報錯:No bean named 'xxx' availableIdeaMavenSpringBeanAI
- springboot註解實現非同步呼叫時no bean of type TaskExecutor and no bean named 'taskExecutor' eitherSpring Boot非同步Bean
- A. Least ProductAST
- Go 執行 程式 test.go:1:1: expected ‘package‘, found ‘EOF‘GoPackage
- [java] javax.el.PropertyNotFoundException: Property 'id' not found on type bean.StudentJavaExceptionBean
- [Vue warn]: Invalid prop: type check failed for prop "unlinkPanels". Expected Boolean, got String with value "true".VueAIBooleanGo
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- spring-mybatis整合:NoSuchBeanDefinitionException: No bean named 'xxx.class' availableSpringMyBatisBeanExceptionAI
- 記一次idea構建springmvc報錯:No bean named 'cacheManager' availableIdeaSpringMVCBeanAI
- vue報錯:[Vue warn]: Invalid prop: type check failed for prop "value". Expected Number, got String....VueAIGo
- Used+Available不等於1K-blocksAIBloC
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of typeSpringFrameworkBeanException
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- E. Expected Power
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- Least Cost Bracket Sequence(貪心)ASTRacket
- Oracle Least Recently Used ChainsOracleASTAI
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- switch case 的 expected expressionExpress
- Java新增構造方法異常異常——Could not autowire. there is more than one bean of '' typeJava構造方法Bean
- expected '', but found BlockMappingStart in 'reader', line 13, column 1:nimbus.host:BloCAPP
- Python IndentationError: expected an indented blockPythonErrorBloC
- golang expected declaration, found 'IDENT'GolangIDE