github導入springboot maven項目


1、在GitHub里force喜歡的項目,獲取GitHub項目地址,eclipse---import---project from git---clone uri---next---finish,項目下載完后右鍵項目import---existing maven projects變成maven項目,有的項目parent要configure---convert to maven project;

2、每個子項目要maven clean 和maven install,報jre or jdk錯誤時,要把jre換成jdk,如下圖

報org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorldSpringBoot': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'name' in value "${name}"

錯誤時,解決辦法:parent項目convert to maven project ,然后maven clean 和 maven install。

3、數據庫配置改了后啟動項目

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM