diff options
author | Vitaly Takmazov | 2018-03-28 11:27:29 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-28 12:10:11 +0300 |
commit | 94f85e2ec113efee03def8ae9539cdaee21cccf9 (patch) | |
tree | 6946277aef3931e4c5aebd060ff2b5264c8599e3 /juick-www/src/main/java/com/juick/Application.java | |
parent | acd6d0180c67a62079652bd879a3e7c661fc2c90 (diff) |
drop sphinx search and use datasource autoconfiguration
Diffstat (limited to 'juick-www/src/main/java/com/juick/Application.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/Application.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/Application.java b/juick-www/src/main/java/com/juick/Application.java new file mode 100644 index 00000000..f8e5d333 --- /dev/null +++ b/juick-www/src/main/java/com/juick/Application.java @@ -0,0 +1,22 @@ +package com.juick; + +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; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +@SpringBootApplication +@EnableTransactionManagement +public class Application extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + setRegisterErrorPageFilter(false); + return builder.sources(Application.class); + } + + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} |