会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xyzdl
博客园
首页
新随笔
联系
订阅
管理
随笔 - 13
文章 - 0
评论 - 0
阅读 -
11807
随笔分类 -
SpringBoot
SpringBoot 获取Jar包中静态资源
摘要:Spring Boot打包后的Jar包中的资源可通过以下方法获取 public static String getTemplateContent(String templateName) { try { ClassPathResource resource = new ClassPathResour
阅读全文
posted @
2022-05-18 11:33
xYzDl
阅读(1042)
评论(1)
推荐(0)
编辑
公告
昵称:
xYzDl
园龄:
10年3个月
粉丝:
0
关注:
3
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
.Net Core技巧(4)
Debian(5)
Nginx(1)
NPOI(1)
PowerShell(1)
SpringBoot(1)
SQL(1)
随笔档案
2022年9月(5)
2022年7月(1)
2022年6月(1)
2022年5月(3)
2022年4月(3)
阅读排行榜
1. Debian 10 Buster 国内常用镜像源(3352)
2. Debian 禁用启用 IPV6(1514)
3. Nginx 配置本地目录映射(1414)
4. .Net Core Add-Migration 报错 Could not load type 'Microsoft.EntityFrameworkCore.Internal.SemanticVersionComparer' from assembly 'Microsoft.EntityFrameworkCore..(1261)
5. SpringBoot 获取Jar包中静态资源(1042)
评论排行榜
1. SpringBoot 获取Jar包中静态资源(1)
推荐排行榜
1. .Net Core Add-Migration 报错 Could not load type 'Microsoft.EntityFrameworkCore.Internal.SemanticVersionComparer' from assembly 'Microsoft.EntityFrameworkCore..(1)
最新评论
1. Re:SpringBoot 获取Jar包中静态资源
就你这个最简单靠谱
--手撕高达的村长
点击右上角即可分享