**
# Springing into Action: Evolving Interactions with Thymeleaf, RabbitMQ, and WebSockets in Spring Boot
In this repository, I delved into the realm of application interaction and the crucial need for efficient means of communication. I introduced view technologies, such as Thymeleaf, and the engines that process them, illustrating how Spring Boot utilizes them to create and deliver functionality to the end user's browser. I also explored Spring Boot's handling of static content, including standard HTML and JavaScript, which can be delivered directly without processing by template engines.
For my first project iteration, I showcased a Thymeleaf-driven application that retrieved and displayed aircraft positions in a pull-based model.
Subsequently, I harnessed the power of messaging platforms with Spring Boot, leveraging Spring Cloud Stream and RabbitMQ. I refactored the PlaneFinder application to push real-time aircraft positions to the Aircraft Positions app, making the backend functionality event-driven. Although the front end still required manual or hard-coded refreshes to update user-visible results.
In the final part, I implemented WebSocket connections and handler code within the backend and frontend components of the Aircraft Positions application. This setup allowed the Spring+Java backend app to push live aircraft position updates received via RabbitMQ without requiring user or browser-initiated requests. This highlighted the bidirectional nature of WebSockets, their lack of required request-response patterns, and their low communication overhead.
**
没有合适的资源?快使用搜索试试~ 我知道了~
为Spring mvc、Thymelaaf模板引擎、H2数据库、Lombok和消息传递
共19个文件
java:8个
html:3个
properties:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 191 浏览量
2023-11-02
10:32:01
上传
评论
收藏 74KB ZIP 举报
温馨提示
为Spring mvc、Thymelaaf模板引擎、H2数据库、Lombok和消息传递的深度探索打造Spring Boot应用程序.zip
资源推荐
资源详情
资源评论
收起资源包目录
为Spring mvc、Thymelaaf模板引擎、H2数据库、Lombok和消息传递的深度探索打造Spring Boot应用程序.zip (19个子文件)
spring-mvc-practices-main
mvnw.cmd 7KB
pom.xml 4KB
src
test
java
com
khaledsaleh
aircraftpositions
AircraftPositionsApplicationTests.java 236B
main
resources
application.properties 247B
templates
positions.html 2KB
static
index.html 388B
wspositions.html 1KB
java
com
khaledsaleh
aircraftpositions
WebSocketHandler.java 2KB
AircraftRepository.java 183B
PositionController.java 649B
WebSocketConfig.java 686B
AircraftPositionsApplication.java 348B
PositionRetriever.java 1KB
Aircraft.java 1KB
.mvn
wrapper
maven-wrapper.properties 233B
maven-wrapper.jar 61KB
mvnw 11KB
.gitignore 395B
README.md 2KB
1
共 19 条
- 1
资源评论
处处清欢
- 粉丝: 149
- 资源: 2471
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功