Server of groupchat system. Among them, netty mainly forwards broadcast messages, and springboot server stores the messages sent from the web.
bilibili:https://www.bilibili.com/video/BV1Ap4y1D7iQ?spm_id_from=333.999.0.0
springboot & netty
- Import the database into groupchat.sql in the root path (build database and table)
- Import idea and start the project
- Modify the configuration in application.yml according to personal circumstances: port and path:
server:
port: 7084 #springboot port
servlet:
context-path: /groupchat #project request path
netty:
port: 7000 #netty port
context-path: /groupchat #netty request path(Be consistent with the web)
database:
# datasource configure
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3306/groupchat?characterEncoding=UTF-8&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
- jiefei30