guyeuro
V2EX  ›  问与答

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

  •  
  •   guyeuro · May 14, 2017 · 2389 views
    This topic created in 3486 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
    guyeuro
    OP
    May 14, 2017
    1
    顶上去
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1984 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:12 · PVG 20:12 · LAX 04:12 · JFK 07:12
    ♥ Do have faith in what you're doing.