V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ligx
V2EX  ›  Java

如何在 properties 文件中用${}引用另一个 properties 文件中的内容

  •  
  •   ligx · 2016-05-11 13:05:43 +08:00 · 5560 次点击
    这是一个创建于 2914 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请问在 springmvc 项目中, 如何在 properties 文件中用${}引用另一个 properties 文件中的内容

    2 条回复    2016-05-11 13:13:27 +08:00
    liuxey
        1
    liuxey  
       2016-05-11 13:12:47 +08:00
    properties 对 spring 来讲都是资源文件,不具备可编程性,而且是平行的,你可能需要借助 maven 等工具来实现这个功能
    qping
        2
    qping  
       2016-05-11 13:13:27 +08:00
    并不能
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2235 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:31 · PVG 16:31 · LAX 01:31 · JFK 04:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.