例如在idea中 maven jetty插件启动时不能修改静态文件,常见问题比如有 修改就生成.old.json文件等错误 并不能实时编译相应, 如下是解决方法 举例jetty pom的配置方法 webdefault.xml文件地址http://download.csdn.net/download/gjx112266/10197862
<plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.6.v20170531</version> <configuration> <!-- 解决 jetty运行时 无法保存css、js等文件--> <webAppConfig> <defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor> </webAppConfig> </configuration> </plugin> <plugin>