guyeuro
V2EX  ›  问与答

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

  •  
  •   guyeuro · May 14, 2017 · 2037 views
    This topic created in 3298 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   ·   1077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:17 · PVG 02:17 · LAX 11:17 · JFK 14:17
    ♥ Do have faith in what you're doing.