aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/Application.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-28 11:27:29 +0300
committerGravatar Vitaly Takmazov2018-03-28 12:10:11 +0300
commit94f85e2ec113efee03def8ae9539cdaee21cccf9 (patch)
tree6946277aef3931e4c5aebd060ff2b5264c8599e3 /juick-www/src/main/java/com/juick/Application.java
parentacd6d0180c67a62079652bd879a3e7c661fc2c90 (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.java22
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);
+ }
+}