Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Created October 10, 2019 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylertreat/fecbc0627cd23d2c23dc151ac2eb6f30 to your computer and use it in GitHub Desktop.
Save tylertreat/fecbc0627cd23d2c23dc151ac2eb6f30 to your computer and use it in GitHub Desktop.
App Engine Spring servlet config
<?xml version="1.0" encoding="utf-8"?>
<web-app version="3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<servlet-name>appengine-spring-boot</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.realkinetic.gaeplayground.GaePlaygroundApplication</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Let Spring MVC handle every URL -->
<servlet-mapping>
<servlet-name>appengine-spring-boot</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment