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、數據庫配置改了后啟動項目