一、用MVN 編譯 spring-boot
java application.yml 加載 不了配置文件 ,以下幾個方法都 可以適下
mv clean install
mvn clean compile
mvn install
mvn spring-boot:run
二、ieda 編譯spring-boot
錯誤一:
Warning:(20, 1) java: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
Error:(14, 48) java: 程序包com.sun.org.apache.bcel.internal.generic不存在
解決方法:
fiel -> Project Structure 進行設置jdk, 看否jdk 版本一致