在pom.xml文件中加入

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>3.2.0</version>
</plugin>

 

更多推荐

idea Cannot access defaults field of Properties的解决方法