当前位置:网站首页>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
边栏推荐
- JS高级 之 使用 Iterator - Generator
- 【元宇宙欧米说】看UCOUCO如何将行为艺术融入元宇宙
- 关于编程本质那些事
- shell------ commonly used gadgets, sort, uniq, tr, cut
- 并查集学习
- Defending risks with technology and escorting cloud native | Tongchuang Yongyi X Boyun held a joint product launch conference
- Optimistic and pessimistic locking
- The first offline workshop in 2022!Data application experience day for application developers is coming | TiDB Workshop Day
- UE4 Sequence添加基础动画效果 (05-蓝图触发Sequence)
- 中国驻越南使馆提醒在越北部、中部地区中国公民做好台风“木兰”安全防范
猜你喜欢

Chapter 3 Search and Graph Theory (3)

CAD to WPF: Tips on converting CAD drawing files to WPF vector code files (xaml files)

Nvidia's gaming graphics card revenue plummets / Google data center explosion injures 3 people / iPhone battery percentage returns... More news today is here...

【企业架构】敏捷与企业架构:战略联盟

Flink运行时架构 完整使用 (第四章)

2022 首期线下 Workshop!面向应用开发者们的数据应用体验日来了 | TiDB Workshop Day

Flink快速上手 完整使用 (第二章)

Shell functions and arrays

BUUCTF【pwn】解题记录(4-6页持续更新中)

shell------ commonly used gadgets, sort, uniq, tr, cut
随机推荐
Excel绘制统计图
UE4 Sequence添加基础动画效果 (04-在序列中使用粒子效果)
Development environment variable record under win
04 【计算属性 侦听器】
在兄弟连战狼班参加PHP培训做行业领先人才
多租户技术
LCD DRM驱动框架分析一
重学冒泡排序
【Prometheus】Node Exporter常用查询PromQL 语句大总结
Optimistic and pessimistic locking
"Microservice Architecture" Arrangement and Choreography - Different Models for Making Systems Work Together
BUUCTF【pwn】解题记录(4-6页持续更新中)
The first offline workshop in 2022!Data application experience day for application developers is coming | TiDB Workshop Day
WebView2 通过 PuppeteerSharp 实现爬取 王者 壁纸 (案例版)
Fourier series and Fourier transform
JWT:拥有我,即拥有权力
Flink部署 完整使用 (第三章)
UE4 粒子特效基础学习 (01-将粒子效果挂载到角色身上)
俄罗斯宣布临时禁止进口摩尔多瓦植物产品
数据库中的schema