Skip to main content

3 posts tagged with "Writing Practice"

Just for Writing Practice perpose

View All Tags

[Writing Practice]: What is the Spring Bean Lifecycle

· 3 min read
Link Nuis
Java Developer

alt text

warning

This blogs solely for writing practice, so it's primarily a copy blog/article, not intended for content dissemination.

Root blog/article: bean-life-cycle

Introduction

Imagine planting a seed in your garden. You don't just throw it in the soil and expect magic. You prepare the ground, water it, nuture it, watch it grow, and eventually remove it when its purpose is fullfilled. Surprisingly, Spring works in a very similar way. Every object that Spring manages goes through its own controlled journey from creation to destruction. This is called the Spring Bean lifecycle.

[Writing Practice]: Spring Data JPA Best Practices: Transactions and Manual Queries

· 17 min read
Link Nuis
Java Developer
warning

This blogs solely for writing practice, so it's primarily a copy blog/article, not intended for content dissemination.

Root blog/article: link-blog

Manual and automatic transaction management

Imagine you need custom logic to work with your database, such as managing transactions, but Spring Data JPA repositories are insufficient for you. So what could you do? Spring Data JPA offers various approaches to achieve this.