File tree Expand file tree Collapse file tree
src/main/java/com/dkaedv/glghproxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <properties >
2121 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2222 <java .version>1.7</java .version>
23+ <tomcat .version>7.0.64</tomcat .version>
2324 </properties >
2425
2526 <dependencies >
2627 <dependency >
2728 <groupId >org.springframework.boot</groupId >
2829 <artifactId >spring-boot-starter-web</artifactId >
2930 </dependency >
31+ <dependency >
32+ <groupId >org.springframework.boot</groupId >
33+ <artifactId >spring-boot-starter-tomcat</artifactId >
34+ <scope >provided</scope >
35+ </dependency >
3036 <dependency >
3137 <groupId >org.gitlab</groupId >
3238 <artifactId >java-gitlab-api</artifactId >
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5+ import org .springframework .boot .builder .SpringApplicationBuilder ;
6+ import org .springframework .boot .context .web .SpringBootServletInitializer ;
57import org .springframework .context .annotation .Bean ;
68import org .springframework .http .converter .json .Jackson2ObjectMapperBuilder ;
79
810import com .fasterxml .jackson .databind .PropertyNamingStrategy ;
911
1012@ SpringBootApplication
11- public class Application {
13+ public class Application extends SpringBootServletInitializer {
1214
1315 public static void main (String [] args ) {
1416 SpringApplication .run (Application .class , args );
1517 }
1618
19+ @ Override
20+ protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
21+ return application .sources (Application .class );
22+ }
23+
1724 @ Bean
1825 public Jackson2ObjectMapperBuilder jacksonBuilder () {
1926 Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder ();
You can’t perform that action at this time.
0 commit comments