How to disable SystemServiceServlet configuration

2020-02-26 11:42发布

问题:

The Google Plugin for Eclipse auto-generates these lines in web.xml no matter what the project properties are set to:

 <servlet>
  <servlet-name>SystemServiceServlet</servlet-name>
  <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
  <init-param>
   <param-name>services</param-name>
   <param-value/>
  </init-param>
 </servlet>
 <servlet-mapping>
  <servlet-name>SystemServiceServlet</servlet-name>
  <url-pattern>/_ah/spi/*</url-pattern>
 </servlet-mapping>

Is there a way to prevent the plugin to do that?

回答1:

In your project Properties, under Builders, if you disable Google App Engine Project Change Notifier, your web.xml won't by modified anymore. However, not been keen enough to the GAE environment, I can't tell which are the side-effects of disabling this builder.



回答2:

Remove the above xml from web.xml and add readonly attribute to web