aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/Application.java
diff options
context:
space:
mode:
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);
+ }
+}