Open in app
Home
Notifications
Lists
Stories

Write
Milena Lazarevic
Milena Lazarevic

Home

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

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

Published in Javarevisited

·Pinned

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

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. …

Spring

5 min read

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

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. …

Spring

4 min read

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

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. The framework can simplify…

Spring

4 min read

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

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. …

Spring Data

2 min read

Spring Data MongoDB Auditing
Spring Data MongoDB Auditing

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
Milena Lazarevic

Milena Lazarevic

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

Following
  • Ali Zeynalli

    Ali Zeynalli

  • Nemanja Petrovic

    Nemanja Petrovic

  • Israel Miles

    Israel Miles

  • Maya Sayvanova

    Maya Sayvanova

  • Abhishek Srivastava

    Abhishek Srivastava

See all (30)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable