设为首页 加入收藏

TOP

Spring如何实现资源管理?
2014-11-06 21:00:05 来源: 作者: 【 】 浏览:26
Tags:Spring 如何 实现 资源管理

使用
applicationContext.getResource(“classpath:文件名”):在src根目录下,在类路径下
applicationContext.getResource(“classpath:/chap01/文件名”): 以src根目录下的基准往下走。
applicationContext.getResource(“file:c:/a.properties”):在系统文件目录下。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇两种依赖注入的类型都是什么? 下一篇如何加入Spring到web框架中?

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: