一些包自动爆红如何去除
看这个网址:
https://blog.csdn.net/weixin_30437481/article/details/95063905?utm_source=app&app_version=4.5.2
但是右建项目中maven中的update Project后
在settings.xml中找到 <profiles> </profiles>
将下面代码粘贴进这个标签里面,我这里是jdk1.8的
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>