//Pluto.
2021-01-20 17:10spring项目中properties中变量互相调用
spring项目中的properties中如何做到像springboot application.properties 变量之间互相调用
比如这样的 application.properties中可以这样写
rootPath=e:/root
filePath1=${rootPath}/file-path/testFile1.xml
filePath2=${rootPath}/file-path/testFile2.xml
但在spring项目中 如何实现在properties通过${} 调用变量
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 用一个application.properties文件中,如何引用值,${}引用无效
- spring
- java
- 2个回答
- 一个用spring aop拦截struts action的问题
- spring
- 0个回答
- 多数据源spring 报java.lang.NullPointerException
- spring
- 0个回答
- Struts Problem Report Unable to instantiate Action
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
- ssm 整合 service层使用Autowired注入dao 报红,可以使用,为什么?
- 依赖注入
- ssh框架搭建
- 7个回答
换一换