当前位置:网站首页>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
边栏推荐
- 关于判断单峰数组的几种方法
- shell------常用小工具,sort,uniq,tr,cut
- CSDN21天学习挑战赛——多态(05)
- 「应用架构」TOGAF建模:企业可管理性图
- 俄罗斯宣布临时禁止进口摩尔多瓦植物产品
- vs2012创建WCF应用程序
- "Microservice Architecture" Arrangement and Choreography - Different Models for Making Systems Work Together
- Controller层代码这么写,简洁又优雅!
- navicat导入SQL文件报:[ERR] 2006 - MySQL server has gone away [ERR] -- MySQL dump 10.13 Distrib 5.7.34
- Chapter 3 Search and Graph Theory (3)
猜你喜欢
傅立叶级数与傅里叶变换
多线程浅谈
英伟达游戏显卡营收暴跌/ 谷歌数据中心爆炸致3人受伤/ iPhone电量百分比回归…今日更多新鲜事在此...
【Enterprise Architecture】Agile and Enterprise Architecture: Strategic Alliance
【STL】位图的介绍使用以及代码的模拟实现
[System Design] S3 Object Storage
【数据架构】分布式数据网格作为集中式数据单体的解决方案
91.(cesium之家)cesium火箭发射模拟
UE4 粒子特效基础学习 (01-将粒子效果挂载到角色身上)
UE4 Sequence添加基础动画效果 (04-在序列中使用粒子效果)
随机推荐
如何理解BIO、NIO、AIO的区别
「应用架构」六边型架构:三个原则和一个实现示例
"Data Architecture": How can master data management (MDM) help my industry?
用高质量图像标注数据加速AI商业化落地
ELK入门
【Prometheus】Node Exporter常用查询PromQL 语句大总结
UE4 Sequence添加基础动画效果 (05-蓝图触发Sequence)
Basic concepts, structures, and classes of thread pools
Plot temperature curves; QChart,
乐观锁与悲观锁
The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values
在兄弟连战狼班参加PHP培训做行业领先人才
JS高级 之 Promise 详解
shell之函数和数组
Basic concepts of concurrency, operations, containers
LiveGBS操作日志页面快速的筛选上级平台的调用记录直播观看录像回看等操作
初识Flink 完整使用 (第一章)
12 【其它组合式API】
故障分析 | Sql_slave_skip_counter 使用不规范对复制的影响
讯飞翻译机抢镜背后,跨语种沟通迈入全新时代