• indog@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Spring singleton beans are supposed to be stateless though, so they can’t be called variables. Maybe the DI aspect of Spring is less relevant today in the micro service era, but in the day Spring helped make layered monolith apps much cleaner.