diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b5e62bf
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:8-jdk
+ADD target/spring-boot-websocket-0.1.0.jar app.jar
+ENTRYPOINT ["java","-jar","app.jar"]
+EXPOSE 8080
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 3ede17b..ba4b49c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,6 +66,7 @@
org.springframework.boot
spring-boot-maven-plugin
+
diff --git a/src/main/java/com/example/springbootwebsocket/SpringBootWebsocketApplication.java b/src/main/java/com/example/springbootwebsocket/SpringBootWebsocketApplication.java
index 2e59d6c..b9f5ae1 100644
--- a/src/main/java/com/example/springbootwebsocket/SpringBootWebsocketApplication.java
+++ b/src/main/java/com/example/springbootwebsocket/SpringBootWebsocketApplication.java
@@ -2,9 +2,15 @@
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 SpringBootWebsocketApplication {
+public class SpringBootWebsocketApplication extends SpringBootServletInitializer {
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(SpringBootWebsocketApplication.class);
+ }
public static void main(String[] args) {
SpringApplication.run(SpringBootWebsocketApplication.class, args);
diff --git a/src/main/java/com/example/springbootwebsocket/controller/RestController.java b/src/main/java/com/example/springbootwebsocket/controller/RestController.java
new file mode 100644
index 0000000..9258409
--- /dev/null
+++ b/src/main/java/com/example/springbootwebsocket/controller/RestController.java
@@ -0,0 +1,13 @@
+package com.example.springbootwebsocket.controller;
+
+import com.example.springbootwebsocket.model.User;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@org.springframework.web.bind.annotation.RestController
+public class RestController {
+
+ @RequestMapping("/welcome")
+ public String toAdd(User user) {
+ return "welcome";
+ }
+}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 5e3bb81..e69de29 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1 +0,0 @@
-server.port=8084
diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html
index 12745ce..b173a09 100644
--- a/src/main/resources/static/index.html
+++ b/src/main/resources/static/index.html
@@ -106,7 +106,7 @@
Talk With EveryOne
- | Message Log |
+ Message Tab |
diff --git a/src/main/resources/templates/welcome.html b/src/main/resources/templates/welcome.html
new file mode 100644
index 0000000..78e4e74
--- /dev/null
+++ b/src/main/resources/templates/welcome.html
@@ -0,0 +1,10 @@
+
+
+
+
+ Welcome
+
+
+
+
+
\ No newline at end of file