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
- 如何將InputStream轉換為DataSource
- GridView和DataSource的聯合使用View
- 有人熟悉jboss的datasource設定嗎?
- CMP DataSource問題,尋求解決方案
- spring datasource 配置及事務管理Spring
- Spring DataSource>DBCP & C3P0Spring
- 標準LO Datasource增強知識點
- 在jboss中如何取得sqlserver的datasource.??SQLServer
- Grafana的Datasource外掛開發實踐二Grafana
- Grafana的Datasource外掛開發實踐一Grafana
- 寫一個Spark DataSource的隨手筆記Spark筆記
- 請教高手 關於STRUTS DATASOURCE的問題
- Tomcat配置DataSource,連線池資料來源Tomcat
- JNDI學習(一) Tomcat7 配置JNDI (JDBC datasource)TomcatJDBC
- 打造輕量級 ViewController 之抽離 DataSource/DelegateViewController
- 求助:如果透過weblogic的datasource獲取連線!!!Web
- springBoot初學出現問題 {dataSource-1} initedSpring Boot
- Idea啟動專案報{dataSource-1} closed錯誤Idea
- No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1BeanJavaSQLAIAST
- Spring Boot + Mybatis + Spring MVC環境配置(三):DataSource配置Spring BootMyBatisMVC
- Flink的DataSource三部曲之三:自定義
- Flink的DataSource三部曲之一:直接APIAPI
- struts string和hibernate 如何配置dataSource為連線池
- 請教。在ejb中用DataSource連線資料庫,報錯!資料庫
- [Nagios] Error: Template timman specified in contact definition could not beiOSError
- 【DataGuard】 TNS:could not resolve the connect identifier specifiedIDE
- com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} initedUI
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- SpringBoot系列之資料庫初始化-datasource配置方式Spring Boot資料庫
- ORA-29786: SIHA attribute GET failedAI
- Spring的DataSource配置、將Hibernate配置全部寫到Spring配置Spring
- 我寫了一個從DATASOURCE取得CONNECTION的工具類,大家看看
- 使用url()後出現No input file specified.
- Hibernate批處理如何透過“datasource-proxy”檢視詳細資訊?
- INFO DruidDataSource-{dataSource-1} inited 載入緩慢或者卡住不動UI