maven问题1:[WARNING] 'build.plugin

2020-07-15  本文已影响0人  mutang

转载:https://blog.csdn.net/huwei0518/article/details/45054803

配置maven compiler的时候加上对应的Servlet版本号即可解决。

    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <!-- 与Servlet版本对应 -->
    <span style="color:#FF0000;"><version>3.1</version></span>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <encoding>UTF-8</encoding>
    </configuration>
</plugin>
上一篇 下一篇

猜你喜欢

热点阅读