1 Build a micro-chat system
Next, we develop a micro-chat system to realize the instant messaging function of the Haoke rental project.
Technologies used:
Spring WebSocket
Spring-data-MongoDB
1.1 Create project haoke-im
1. Select the project, right-click New–>Module. As shown in the figure:
2. Select the version of Maven and JDK, and click Next. As shown in the figure:
3. Fill in the project name and click Finish. As shown in the figure:
4. Modify the code of pom.xml as follows:
<?xml version="1.0" encoding="UTF-8"