How to disable SystemServiceServlet configuration

2020-02-26 10:56发布

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?

2条回答
等我变得足够好
2楼-- · 2020-02-26 11:31

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.

查看更多
beautiful°
3楼-- · 2020-02-26 11:33

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

查看更多
登录 后发表回答