Skip to content

Commit 70e9d2f

Browse files
committed
Add websocket example
1 parent 3061fc7 commit 70e9d2f

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

‎spring-mvc-java/pom.xml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,28 @@
1717
<artifactId>spring-webmvc</artifactId>
1818
<version>${org.springframework.version}</version>
1919
</dependency>
20+
<dependency>
21+
<groupId>org.springframework</groupId>
22+
<artifactId>spring-websocket</artifactId>
23+
<version>${org.springframework.version}</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>org.springframework</groupId>
27+
<artifactId>spring-messaging</artifactId>
28+
<version>${org.springframework.version}</version>
29+
</dependency>
30+
<!-- Jackson -->
31+
<dependency>
32+
<groupId>com.fasterxml.jackson.core</groupId>
33+
<artifactId>jackson-core</artifactId>
34+
<version>2.7.3</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.fasterxml.jackson.core</groupId>
38+
<artifactId>jackson-databind</artifactId>
39+
<version>2.7.3</version>
40+
</dependency>
41+
2042
<!-- web -->
2143
<dependency>
2244
<groupId>javax.servlet</groupId>

‎spring-mvc-java/src/main/java/org/baeldung/spring/web/config/MainWebAppInitializer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class MainWebAppInitializer implements WebApplicationInitializer {
1616

17-
private static final String TMP_FOLDER = "C:/Users/ivan/Desktop/tmp";
17+
private static final String TMP_FOLDER = "/tmp";
1818
private static final int MAX_UPLOAD_SIZE = 5 * 1024 * 1024; // 5 MB
1919

2020
/**

0 commit comments

Comments
 (0)