V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
luxinfl
V2EX  ›  程序员

springboot 配置文件

  •  
  •   luxinfl · Aug 7, 2020 · 2153 views
    This topic created in 2101 days ago, the information mentioned may be changed or developed.

    我们系统里面有个配置项

    spring.profiles.active=@packageEnvironment@
    

    想问一下这个 packageEnvironment 属于系统变量吗?搜了全文只有 pom.xml 里面出现了这个词。 是不是这种 @@变量都是和 maven 有关的??

    而且在 application.properties 中用 @@可以自动联想变量,变量都是 maven 里面的, application.yml 不支持这个

    3 replies    2020-08-08 12:19:25 +08:00
    bokix
        1
    bokix  
       Aug 7, 2020
    @...@ 这种是 maven 的资源过滤,可以搜索下“maven 资源过滤”
    xizismile
        2
    xizismile  
       Aug 8, 2020 via Android
    1 楼说得对
    luanwj
        3
    luanwj  
       Aug 8, 2020
    这个是启动的时候声明的环境变量吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1582ms · UTC 14:42 · PVG 22:42 · LAX 07:42 · JFK 10:42
    ♥ Do have faith in what you're doing.