Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
内部に静的データがない場合に備えて、Spring Bean を共有する必要があるのはなぜですか?
共有する必要があると思いますApplicationContext-必要なBeanインスタンスと定義を保持します。Bean 自体は、そのコンテキストがなければ (依存性注入の観点から) 役に立ちません。
ApplicationContext