guyeuro
V2EX  ›  问与答

maven setting.xml 文件里定义的属性如何在 application.properties 里得到?

  •  
  •   guyeuro · May 14, 2017 · 2100 views
    This topic created in 3327 days ago, the information mentioned may be changed or developed.

    我看在有的项目里 像是 application.properties 里这种

    redis.host=${redis.host} redis.port=${redis.port}

    host 和 port 的值在 settings.xml 里设置的 这样做的思想是什么? application.properties 里如何得到 setting.xml 里的值的

    guyeuro
        1
    guyeuro  
    OP
       May 14, 2017
    顶上去
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5795 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 03:19 · PVG 11:19 · LAX 20:19 · JFK 23:19
    ♥ Do have faith in what you're doing.