目录
目的
前后端连接成功,前端从后端获取数据并展示在前端页面。
环境
- 前端:angular
- 后端:java
- 数据库:MySQL
- 消息通信系统:NATS
技术选型
Q:How to use WebSockets with RxJS and Angular?
A:https://blog.angulartraining.com/how-to-use-websockets-with-rxjs-and-angular-b98e7fd8be82
A:https://www.dunebook.com/connecting-angular-4-application-to-java-ee-application/
WebSocket is a web communication protocol that allows two-way communication between a client and a server.
ngx-socket-io - Angular Module for Socket.IO
npm install ngx-socket-io
JAX-RS使用了Java SE5引入的Java注解来简化Web服务的客户端和服务端的开发和部署。