日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

解决IDEA启动报错---找不到配置项

發布時間:2023/12/20 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 解决IDEA启动报错---找不到配置项 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?報錯信息:

*************************** APPLICATION FAILED TO START ***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction: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).

發現問題:

啟動項目-->Build項目-->報錯無法啟動-->發現問題

1、target下目錄完好

2、在target下無配置文件

解決問題:

針對target下目錄完好情況:

檢查配置文件如application.properties中spring.datasource.url等配置項是否正確配置

在target下無配置文件:

1、更新maven,rebuild項目

2、右鍵resources目錄-->Make Directory as Resources Root,rebuild項目

3、檢查pom.xml中是否有不當配置并修改更新

4、pom.xml的build標簽下添加:

<resources><resource><directory>src/main/java</directory><includes><include>**/*.properties</include><include>**/*.xml</include></includes></resource><resource><directory>src/main/resources</directory><includes><include>**/*.*</include></includes></resource> </resources>

然后更新maven,rebuild項目

5、代碼拷出來重新導入

總結

以上是生活随笔為你收集整理的解决IDEA启动报错---找不到配置项的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。