ligx
V2EX  ›  Java

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

  •  
  •   ligx · May 11, 2016 · 6397 views
    This topic created in 3701 days ago, the information mentioned may be changed or developed.

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

    2 replies    2016-05-11 13:13:27 +08:00
    auin
        1
    auin  
       May 11, 2016
    properties 对 spring 来讲都是资源文件,不具备可编程性,而且是平行的,你可能需要借助 maven 等工具来实现这个功能
    qping
        2
    qping  
       May 11, 2016
    并不能
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    ♥ Do have faith in what you're doing.