Open in app

Sign In

Write

Sign In

Milena Lazarevic
Milena Lazarevic

229 Followers

Home

Lists

About

Pinned

Spring Bean Scopes: How to Use Them Effectively in Your App

The essential guide to bean scopes in Spring — Bean scopes in Spring provide a way to control the lifecycle of beans and determine which components can access the beans. The concept of bean scope is an important part of the Spring framework, and understanding how it works can help you design and implement more effective and efficient applications…

Spring

6 min read

Spring Bean Scopes: How to Use Them Effectively in Your App
Spring Bean Scopes: How to Use Them Effectively in Your App
Spring

6 min read


Published in

Javarevisited

·Pinned

The Strategy Design Pattern With Spring Plugin

Introduction When I first encountered design patterns, back when I was still a student, I failed to immediately see how useful they are in software design. With experience came the wisdom and nowadays I quite enjoy implementing these blueprints whenever I have to solve particular design problem. …

Spring

3 min read

The Strategy Design Pattern With Spring Plugin
The Strategy Design Pattern With Spring Plugin
Spring

3 min read


Published in

Dev Genius

·Pinned

Automate Emails Using Spring Application Events & Apache FreeMarker

Send emails with dynamic HTML content using FreeMarker template engine — Introduction In programming, events are actions that are handled by the software. Events can be triggered in different ways, for example a user clicking a button or a system itself, could trigger an event. The main point is, application needs to listen for such activities, or a particular event, and then…

Programming

5 min read

Automate Emails Using Spring Application Events & Apache FreeMarker
Automate Emails Using Spring Application Events & Apache FreeMarker
Programming

5 min read


Published in

Javarevisited

·Pinned

Are You Using @Valid and @Validated Annotations Wrong?

Validate Input in Spring Boot — Introduction When I was first starting out my career as a developer, I often saw annotations @Validated and @Valid applied on the method parameters in controllers. Some people used @Validated, while others preferred @Valid. I was often confused which annotation to use and when. In this article I hope to explain…

Spring

5 min read

Are You Using @Valid and @Validated Annotations Wrong?
Are You Using @Valid and @Validated Annotations Wrong?
Spring

5 min read


Published in

Javarevisited

·Pinned

Spring Boot & MongoDB: Searching and Pagination

Implement search and pagination in a Spring Boot app using MongoTemplate — MongoTemplate class provides us features for interacting with the database and offers operations to create, update, delete, and query MongoDB documents in a thread-safe way. The MongoTemplate class implements the interface MongoOperations. You can find methods like find, findAndModify, findAndReplace, findOne, insert, remove, save, update etc… MongoOperations has fluent APIs…

Spring

4 min read

Spring Boot & MongoDB: Searching and Pagination
Spring Boot & MongoDB: Searching and Pagination
Spring

4 min read


Jan 1

Spring @Controller or @RestController? The Difference You Need to Know

The Spring Framework is a popular Java-based application development framework that provides a comprehensive infrastructure support for developing applications in Java. In Spring, the @Controller and @RestController annotations are used to mark a class as a request handling component. …

Spring Framework

2 min read

Spring @Controller or @RestController? The Difference You Need to Know
Spring @Controller or @RestController? The Difference You Need to Know
Spring Framework

2 min read


Published in

Dev Genius

·Jun 11, 2021

Event Driven Microservices with Spring Cloud Stream

Publish and consume messages with Spring Cloud Stream and Apache Kafka message broker — Introduction Event driven architecture requires forethought, creating the scaffolding in order to integrate popular event streaming platforms can become complicated. Spring Cloud Stream is a framework for message-driven microservice applications and it provides binder implementations for various message brokers, RabbitMQ, Apache Kafka, Kafka Streams, Amazon Kinesis, etc. …

Spring

4 min read

Event Driven Microservices with Spring Cloud Stream
Event Driven Microservices with Spring Cloud Stream
Spring

4 min read


Published in

Javarevisited

·May 30, 2021

Make Your Life Easier With MapStruct & Lombok

Speed up your development and get rid of boilerplate code — If you are working as a developer, you are already aware that speed is increasingly important. You have deadlines, sprints need to be finished, requirements change and you are under pressure to produce quality code as fast as possible. In that case, this article might not be for you, since…

Programming

5 min read

Make Your Life Easier With MapStruct & Lombok
Make Your Life Easier With MapStruct & Lombok
Programming

5 min read


Published in

CodeX

·May 17, 2021

Spring Data MongoDB Auditing

Transparently keep track of who created or changed an entity and when the change happened — Spring Data provides support to transparently keep track of who created or changed an entity and when the change happened. The auditing facility allows administrators and users to track system activity with multiple users and applications. To benefit from that functionality, you have to equip your entity classes with auditing…

Spring Data

2 min read

Spring Data MongoDB Auditing
Spring Data MongoDB Auditing
Spring Data

2 min read


Published in

CodeX

·May 14, 2021

Spring @Transactional and Exceptions

Configure automatic rollback for checked exceptions — Recently, while I was working on a project I had a strange “bug” (what I thought at first) happen. Apparently, one of my transactions did not automatically rollback after exception was thrown. My whole point of even using @Transactional was to exploit that lovely benefit of having things rollbacked automatically…

Spring Boot

2 min read

Spring @Transactional and Exceptions
Spring @Transactional and Exceptions
Spring Boot

2 min read

Milena Lazarevic

Milena Lazarevic

229 Followers

Software Engineer| How-To & Guides Writer | Women In Tech Advocate | Master Troll | LinkedIn https://www.linkedin.com/in/milena-lazarevic/

Following
  • Maya Sayvanova

    Maya Sayvanova

  • Ali Zeynalli

    Ali Zeynalli

  • Nemanja Petrovic

    Nemanja Petrovic

  • Israel Miles

    Israel Miles

  • German Komarov

    German Komarov

See all (30)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams