Activity
Mon
Wed
Fri
Sun
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
What is this?
Less
More

Memberships

Amigoscode

1.5k members ‱ Free

2 contributions to Amigoscode
Welcome and Introduce yourself here đŸ”„
👋 Hi! Welcome to the Community Step 1: Introduce yourself in this thread below! (✄ Copy/paste template 👇) Where are you from? Tell us something about you? What do you hope to achieve here? Which platform brought you here? IMPORTANT Step 2: Engage with others. Like at least 5 introductions to unlock most of the content and start building connections. Step 3: Read the pinned posts as they include important guidelines and resources to help you get the most out of this community. 🚹 Please do not promote paid services (mentorship, courses, other communities, etc). Doing so will result in a ban. We’re glad to have you here and looking forward to your introduction! Don't forget to completed this poll
Poll
381 members have voted
Welcome and Introduce yourself here đŸ”„
1 like ‱ 8d
I'm a father of 2, husband and software development pretty much changed my life. I live by the coast of Brazil. I already learned a lot from Nelson on Youtube and my goal here is to keep learning, keep my brain sharp and updated and also strengthen my fundamentals.
đŸ«˜Spring Bean Lifecycle
Every Spring Boot app you’ve ever run quietly creates, wires, and destroys objects for you, in other terms, this is Inversion of Control (IoC), a concept we’ll break down later. 1. Instantiation Spring creates the bean instance. 2. Dependency Injection Dependencies are injected (@Autowired, constructor injection, etc.). 3. Initialization (@PostConstruct) Custom setup logic runs after dependencies are ready. 4. Ready State Bean is fully initialized and used across the application. 5. Context Shutdown Application begins shutdown. 6. Cleanup (@PreDestroy) Cleanup logic runs (closing resources, connections). 7. Bean Destroyed Bean is removed and becomes eligible for garbage collection. Bean Scopes (Important) - Singleton (default): One instance per application - Prototype: New instance each time requested - Request / Session: Scoped to HTTP request or session
đŸ«˜Spring Bean Lifecycle
2 likes ‱ 8d
Nice one! The usage would be something like: - Singleton (Default): Use for stateless, shared logic (Controllers, standard Services, Repositories). - Prototype: Use for stateful, short-lived tasks where sharing the object across threads would cause data conflicts. - Session: Use for stateful, user-specific data that must persist across multiple page loads for a single user.
1-2 of 2
Pedro Lima
1
2points to level up
@pedro-lima-4675
I'm a father of 2, married, software engineer willing to learn and share knowledge.

Active 8d ago
Joined Apr 27, 2026
Powered by