diff options
author | Vitaly Takmazov | 2018-09-27 23:14:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-27 23:14:55 +0300 |
commit | 017977b497abf5faf54f2c4be2b582133679a8aa (patch) | |
tree | 97827778c02332ae2f2323777858b0d070bd095d /juick-server/src/main/java/com/juick/ApiServer.java | |
parent | a4318f24d446fea480c0a869c86d3a666511ae2f (diff) |
code cleanup
Diffstat (limited to 'juick-server/src/main/java/com/juick/ApiServer.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/ApiServer.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/juick-server/src/main/java/com/juick/ApiServer.java b/juick-server/src/main/java/com/juick/ApiServer.java index cdd8bb20..fb2d9701 100644 --- a/juick-server/src/main/java/com/juick/ApiServer.java +++ b/juick-server/src/main/java/com/juick/ApiServer.java @@ -4,21 +4,12 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration; -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @EnableAutoConfiguration(exclude = { MailSenderAutoConfiguration.class }) @ComponentScan(basePackages = {"com.juick.server", "com.juick.service"}) -public class ApiServer extends SpringBootServletInitializer { - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { - setRegisterErrorPageFilter(false); - return builder.sources(ApiServer.class); - } - +public class ApiServer { public static void main(String[] args) { SpringApplication.run(ApiServer.class, args); } |