当前位置:网站首页>The web project accesses static resources inside the reference jar
The web project accesses static resources inside the reference jar
2022-08-10 09:49:00 【Antetokounmpo Blog】
First, the realization principle
In the Servlet3 protocol specification, the resources contained in the JAR file /META-INFO/resources/ can be accessed directly.
Second, examples
As shown in the figure below, it is a new Spring Boot Starter project I created: zimug-minitor-threadpool, which is used to implement a configurable and observable thread pool.Where pool.html is the monitoring page for the running status of the thread pool.Put it in the position shown in the picture below.
Once the location is correct, pack the project.My final packaging result is zimug-minitor-threadpool-1.0.jar.When a Spring Boot project needs to reference this jar package, it can be imported directly through maven coordinates.Access the service's /pool.html to obtain the thread pool configuration information and runtime status information of the current SpringBoot service.
In this way, it is feasible to access the static resources in the jar package.Welcome to pay attention to my announcement number: Antetokounmpo, reply 003 and present the PDF version of the column "The Way of Docker Cultivation" where this article is located, and more than 30 high-quality docker articles.Antetokounmpo blog: zimug.com
边栏推荐
猜你喜欢
随机推荐
Flink部署 完整使用 (第三章)
ELK框架搭建[通俗易懂]
「数据架构」:主数据管理(MDM)对我的行业有什么帮助?
关于编程本质那些事
LCD DRM component 框架分析
单例模式基类
[Data Architecture] Distributed Data Grid as a Solution for Centralized Data Monolith
2022年固定资产管理系统的概况
Lasso regression (Stata)
How to understand the difference between BIO, NIO, and AIO
如何理解BIO、NIO、AIO的区别
「业务架构」TAGAF建模:业务服务/信息图
[Metaverse Omi Says] Listen to how Rabbit Fan Rabbit creates a new era of trendy play from virtual to reality
「微服务架构」编曲与编舞——让系统协同工作的不同模式
《广州市公路工程安全生产监督管理办法》印发,从六大方面进行修订
win下的开发环境变量记录
90.(cesium之家)cesium高度监听事件
关于判断单峰数组的几种方法
DeepFake换脸诈骗怎么破?让他侧个身
04 【计算属性 侦听器】









