Building a chat application with Spring Boot and Web Socket
The following items should be installed in your system:
- Tool - Spring Tool Suite
- Download this Project from Git.
git clone https://github.com/Sudarshan-Gowda/Spring-boot-Websocket-chat.git
- To Import the Project Using Eclipse or STS
File -> Import -> Maven -> Existing Maven project -> Spring-boot-Websocket-chat
spring-state-machine | Class or Java property files |
---|---|
Configuration file | WebSocketConfig |
ChatController File | ChatController |
Configuration File | WebSocketEventListener |
step 1
: Download this repository & do maven import.
step 2
: Go to the main class file and run as Java application.
or execute commands mvn spring-boot:run
step 3
: Once the application starts, result will be logged in the console as below.
To see the complete project flow
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
To go through the complete details of the state machine configuration, you can find the reference below
https://www.callicoder.com/spring-boot-websocket-chat-example/