chlinlearn
V2EX  ›  问与答

saas 多租户根据请求(租户)不同读取不同的 config 配置文件

  •  
  •   chlinlearn · Jun 25, 2023 via Android · 1688 views
    This topic created in 1242 days ago, the information mentioned may be changed or developed.
    在 springboot 中,我们通过 @value 来获取配置值,每个请求如何确保读取到的配置文件是线程安全的?
    2 replies  •  2023-06-27 17:08:49 +08:00
    julyclyde
    julyclyde
    Jun 26, 2023
    1
    这还需要确保?
    不是只有读没有写吗?
    hucs
    hucs
    Jun 27, 2023
    2
    这问的什么啊
    @julyclyde 1L 直接好评,怼死
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3268 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:57 · PVG 08:57 · LAX 16:57 · JFK 19:57
    ♥ Do have faith in what you're doing.