<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bean-Scopes on Devops Monk</title><link>https://devops-monk.com/tags/bean-scopes/</link><description>Recent content in Bean-Scopes on Devops Monk</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 03 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devops-monk.com/tags/bean-scopes/index.xml" rel="self" type="application/rss+xml"/><item><title>Spring Bean Scopes and Lifecycle</title><link>https://devops-monk.com/tutorials/spring-boot/spring-bean-scopes-lifecycle/</link><pubDate>Sun, 03 May 2026 00:00:00 +0000</pubDate><guid>https://devops-monk.com/tutorials/spring-boot/spring-bean-scopes-lifecycle/</guid><description>Every bean in the Spring container has a scope (how many instances exist and for how long) and a lifecycle (what happens when it&amp;rsquo;s created and destroyed). Understanding these prevents subtle bugs and lets you optimize resource usage.
Bean Scopes Overview Scope Instances Available in singleton One per ApplicationContext All apps prototype New instance every time All apps request One per HTTP request Web apps session One per HTTP session Web apps application One per ServletContext Web apps Singleton (Default) By default, every Spring bean is a singleton — one instance per ApplicationContext.</description></item></channel></rss>