修訂 | 348 (tree) |
---|---|
時間 | 2018-07-21 18:10:29 |
作者 | chomakichi |
(empty log message)
@@ -2,8 +2,8 @@ | ||
2 | 2 | <faceted-project> |
3 | 3 | <runtime name="App Engine Standard Runtime"/> |
4 | 4 | <fixed facet="wst.jsdt.web"/> |
5 | + <installed facet="wst.jsdt.web" version="1.0"/> | |
5 | 6 | <installed facet="java" version="1.8"/> |
6 | - <installed facet="jst.web" version="3.1"/> | |
7 | 7 | <installed facet="com.google.cloud.tools.eclipse.appengine.facets.standard" version="JRE8"/> |
8 | - <installed facet="wst.jsdt.web" version="1.0"/> | |
8 | + <installed facet="jst.web" version="2.5"/> | |
9 | 9 | </faceted-project> |
@@ -2,11 +2,19 @@ | ||
2 | 2 | |
3 | 3 | import org.springframework.boot.SpringApplication; |
4 | 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
5 | +import org.springframework.boot.builder.SpringApplicationBuilder; | |
6 | +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | |
5 | 7 | |
6 | 8 | @SpringBootApplication |
7 | -public class Application { | |
9 | +public class Application extends SpringBootServletInitializer { | |
8 | 10 | |
9 | 11 | public static void main(String[] args) { |
10 | 12 | SpringApplication.run(Application.class, args); |
11 | 13 | } |
14 | + | |
15 | + @Override | |
16 | + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { | |
17 | + return builder.sources(Application.class); | |
18 | + } | |
19 | + | |
12 | 20 | } |
@@ -1,3 +1 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<web-app id="WebApp_ID" version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> | |
3 | -</web-app> | |
\ No newline at end of file | ||
1 | +<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"/> |