chlinlearn
V2EX  ›  问与答

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

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