Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
錯誤提示
Description:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine suitable jdbc url
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Disconnected from the target VM, address: ‘127.0.0.1:60306’, transport: ‘socket’
Process finished with exit code 0
解決辦法
這個情況有兩種一種是你的配置出錯了,比如jdbc ip埠賬號密碼什麼的沒寫
第二種是一定要把spring boot啟動類放在最外側
相關文章
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embeddedAI
- Spring Boot建立DataSource時遇到的錯誤:No supported DataSource type foundSpring Boot
- Error creating bean with name ‘dataSource‘ErrorBean
- Spring DataSource>DBCP & C3P0Spring
- Grafana的Datasource外掛開發實踐二Grafana
- Grafana的Datasource外掛開發實踐一Grafana
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- 寫一個Spark DataSource的隨手筆記Spark筆記
- No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1BeanJavaSQLAIAST
- Spring Boot + Mybatis + Spring MVC環境配置(三):DataSource配置Spring BootMyBatisMVC
- com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} initedUI
- springBoot初學出現問題 {dataSource-1} initedSpring Boot
- Idea啟動專案報{dataSource-1} closed錯誤Idea
- Flink的DataSource三部曲之三:自定義
- Flink的DataSource三部曲之一:直接APIAPI
- SpringBoot系列之資料庫初始化-datasource配置方式Spring Boot資料庫
- Flink的DataSource三部曲之二:內建connector
- SpringBoot druid配置datasource啟動初始化資料庫連線Spring BootUI資料庫
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- 使用url()後出現No input file specified.
- Springboot 啟動時不報錯一直卡住,{dataSource-1} initedSpring Boot
- INFO DruidDataSource-{dataSource-1} inited 載入緩慢或者卡住不動UI
- 使用DataSource-Proxy在Spring Boot中記錄SQL語句 - Vlad MihalceaSpring BootSQL
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- Hibernate批處理如何透過“datasource-proxy”檢視詳細資訊?
- 資料來源(DataSource)是什麼以及SpringBoot中資料來源配置Spring Boot
- 苞米豆的多資料來源 → dynamic-datasource-spring-boot-starter,挺香的!Springboot
- CesiumJS 2022^ 原理[3] 渲染原理之從 Entity 看 DataSource 架構 - 生成 Primitive 的過程JS架構MIT
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- 啟動tomcat時,日誌裡大量輸出建立資料來源dataSource的日誌Tomcat
- Spring Boot 2.5.0 釋出:支援Java16、Gradle 7、Datasource初始化機制調整Spring BootJavaGradle
- pycharm出現Git Pull Failed: Could not read from remote repository.PyCharmGitAIREM
- Springboot啟動一直卡在{dataSource-1} inited 如果你clean也沒有效果請點看Spring Boot
- 關於啟動Tomcat出現[com.alibaba.druid.pool.DruidDataSource:xxx] {dataSource-1} inited卡死的問題TomcatUI
- Embedded devices hackingdev
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- SpringBoot框架:兩個方法同時呼叫時父方法使內部方法的DataSource註解失效的解決辦法Spring Boot框架