From 9f1ced0e55039eecb97932871011d9a97cd97f30 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 16 Mar 2018 13:04:11 +0300 Subject: boot: add servlet initializers --- juick-www/src/main/java/com/juick/www/Application.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main/java/com/juick/www') diff --git a/juick-www/src/main/java/com/juick/www/Application.java b/juick-www/src/main/java/com/juick/www/Application.java index 0e60e1d8..ef41199a 100644 --- a/juick-www/src/main/java/com/juick/www/Application.java +++ b/juick-www/src/main/java/com/juick/www/Application.java @@ -2,9 +2,16 @@ package com.juick.www; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; @SpringBootApplication -public class Application { +public class Application extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + return builder.sources(Application.class); + } public static void main(String[] args) { SpringApplication.run(Application.class, args); -- cgit v1.2.3