如下图的错误
解决步骤:
1.选中启动失败的项目,右键,打开terminal。如下图:
2.输入命令:
mvn clean package
3.等待清除成功,重新打包install,重启项目即可
4.如果打包install失败,有可能是maven插件版本的问题,去pom.xml里将<build></build>
改为下面这样:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--<configuration>-->
<!--<mainClass>com.furenqiang.system.SystemApplication</mainClass>-->
<!--<executable>true</executable>-->
<!--<includeSystemScope>true</includeSystemScope>-->
<!--</configuration>-->
</plugin>
<!--在这里修改版本-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<!---->
</plugins>
</build>