Spring 获取资源文件路径
2024-08-28 00:45:51
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
some.properties 位于classes 下
Resource res = new ClassPathResource("some.properties");
System.out.println("res:"+res.getURI());
最新文章
- Spring 4 创建REST API
- SYSTEM表空间AUD$使用空间过大问题处理
- 遍历Arraylist的方法:
- Selenium2+python自动化10-登录案例
- Windows系统端口占用情况检查脚本
- 基于nginx和uWSGI在Ubuntu上部署Djan
- Barracuda VS antelope
- 【Linux远程管理】RDP协议远程管理
- JQuery replace 替换全部
- DEV SIT UAT
- poj2136
- JavaScript阻止事件冒泡(兼容IE、Chrome、FF)
- boost xpressive 例子
- ThinkPHP创建应用的一般开发流程
- [刷题]算法竞赛入门经典(第2版) 4-2/UVa201 - Squares
- SpringMVC学习资料
- Codeforces Round #300(Div. 2)-538A.str.substr 538B.不会 538C.不会 。。。
- Python:从入门到实践--第三章--列表简介--练习
- 第五章 JS典型特效
- Windows Server 2008 R2 下载地址