Newyorkcity
V2EX  ›  问与答

请问有什么办法明确 Spring 到底加载了哪个 xml 文件用作 applicationcontext 吗?

  •  
  •   Newyorkcity · Dec 30, 2021 · 1138 views
    This topic created in 1594 days ago, the information mentioned may be changed or developed.
    公司项目的本地工程,resources/conf/ 下十多个文件夹对应不同的环境。。。
    2 replies    2021-12-30 10:19:14 +08:00
    littlecold
        1
    littlecold  
       Dec 30, 2021
    application.xxx 命名的文件内会指定需要加载的文件,spring 通过这个文件去找别的文件
    shanghai1943
        2
    shanghai1943  
       Dec 30, 2021
    可以搜下 spring 配置文件的加载顺序
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5998 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 06:28 · PVG 14:28 · LAX 23:28 · JFK 02:28
    ♥ Do have faith in what you're doing.