在pom.xml文件中“spring-boot-maven-plugin” 報紅了,顯示not found 找不到。
在maven目錄(\org\springframework\boot\spring-boot-maven-plugin\2.4.1)中,發現spring-boot-maven-plugin已經下載:
網上搜索其他人的解決方案是加上版本號:
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.2.6.RELEASE</version> //加上這句話 </plugin>
對應2.4.1版本添加版本號語句:
<version>2.4.1</version>