guyeuro
V2EX  ›  问与答

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

  •  
  •   guyeuro · May 14, 2017 · 2066 views
    This topic created in 3312 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   ·   1388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:57 · PVG 07:57 · LAX 16:57 · JFK 19:57
    ♥ Do have faith in what you're doing.