Learn how to integrate Mustache templates with Spring Boot.
Also find me here:
Baeldung Editor
Slaviša Avramović
Slaviša Avramović is a software developer with extensive experience in various roles within the industry. With a career spanning since 2006, he has worked as a Software Architect, Team Lead, and Tech Lead, contributing to different projects, organizations and industries. Specializing in the Java technology stack, Slaviša has a deep understanding of software development and a passion for creating innovative solutions. Outside of work, Slaviša is dedicated to inspiring the next generation through the Digi Kids robotics school. As the founder and operator, Slaviša harnesses technology as a tool for creativity and encourages young minds to become critical thinkers, creators, and innovators.
Here's what I've reviewed (so far):
Baeldung on Java
- All
- Spring Cloud (9)
- Spring MVC (8)
- REST (8)
- Testing (7)
- Spring (7)
- Logging (5)
- Jakarta EE (4)
- Data (4)
- Spring Security (3)
- Java Streams (3)
- Java Concurrency (3)
- Java (3)
- Jackson (3)
- Guava (3)
- Core Java (3)
- Spring Data (2)
- Spring Boot (2)
- NoSQL (2)
- Maven (2)
- JSON (2)
- Architecture (2)
- XML (1)
- Persistence (1)
- Networking (1)
- Java String (1)
- Java Map (1)
- Java IO (1)
- Java Collections (1)
- HTTP Client-Side (1)
- Docker (1)
- DevOps (1)
Guide to Spring Data LDAP
Filed under Spring Data
Learn how to use Spring Data with LDAP.
Introduction to gRPC
Filed under Data
A quick and practical example of using the gRPC library.
Spring – Log Incoming Requests
Filed under Logging, Spring MVC
Learn how to log HTTP Request data with Spring.
Apache Commons Collections MapUtils
Filed under Java Map
Learn how to use MapUtils to perform common Map operations.
Drools Spring Integration
Filed under Spring
Learn how to integrate Spring with Drools Rule Management System.
A Guide to Apache Commons Collections CollectionUtils
Filed under Java Collections
Learn how to perform common operations with collections using CollectionUtils.
Spring Cloud Series – The Gateway Pattern
Filed under Architecture, Spring Cloud
Learn the benefits of using the Gateway service within the Microservices architecture.
Vert.x Spring Integration
Filed under Spring
Learn how to integrate Spring and Vert.x in a single application.
How to Find All Getters Returning Null
Filed under Java
Learn how to find out all null-returning getters using Java 8 and the Introspector class.
Guide to Escaping Characters in Java RegExps
Filed under Core Java
Learn how to escape special characters in Java Regular Expressions.
Spring Cloud – Adding Angular 4
Filed under Spring Cloud
Learn how to create a Single Page Application using Angular 4-based front end.
Guide to Spring Web Flow
Filed under Spring MVC
Learn how to use the Spring Web Flow library, do configuration properly and integrate it with Spring MVC.
Guide to the Synchronized Keyword in Java
Filed under Java Concurrency
This article discusses thread synchronization of methods, static methods, and instances in Java.
Split a String in Java
Filed under Java String
The article discusses several alternatives for splitting a String in Java.
Custom Reporting with TestNG
Filed under Testing
Quick and practical example of custom logging and reports done using TestNG.
Spring MVC Custom Validation
Filed under Spring MVC
Learn how to build a custom validation annotation and use it in Spring MVC.
Introduction to Vert.x
Filed under REST
Learn how the use Vert.x – the open source, reactive and polyglot software development toolkit.
Introduction to TestNG
Filed under Testing
The article introduces the basic concepts of TestNG testing library.
Java Money and the Currency API
Filed under Java
A quick guide to the Currency and Money upcoming JSR and how to use it in practice.
Spring Cloud – Tracing Services with Zipkin
Filed under Spring Cloud
Learn how traces from distributed services can be aggregated with the help of Zipkin.
Intro to Log4j2 – Appenders, Layouts and Filters
Filed under Logging
This article, using an example rich approach, introduces Log4J 2 Appender, Layout and Filter concepts
A Quick JUnit vs TestNG Comparison
Filed under Testing
A quick look at JUnit compared to TestNG – the other popular testing framework in the Java ecosystem.
Guide to Guava’s EventBus
Filed under Guava
Use Guava’s EventBus for publish-subscribe communication between components.
Quick Intro to Full-Text Search with ElasticSearch
This article, explores ElasticSearch’s REST API, and performs basic operations using HTTP requests.
Spring Cloud Sleuth in a Monolith Application
Filed under Logging, Spring Cloud
This article focuses on using Spring Sleuth for tracing requests within a single application use cases.
Java 8 Stream findFirst() vs. findAny()
Filed under Java Streams
The article explains the difference between Java 8 Stream findFirst and findAny method, in sequential and parallel scenario.
Guide to Spring Handler Mappings
Filed under Spring MVC
The article explains how HandlerMapping implementation resolve URL to a particular Handler.
Iterable to Stream in Java
Filed under Java Streams
The article explains how to convert an Iterable to Stream and why the Iterable interface doesn’t support it directly.
Spring Cloud – Securing Services
Filed under Spring Cloud, Spring Security
The article explains the challenges of securing Spring Cloud services and how to address them.
Guide to Java URL Encoding/Decoding
Filed under Networking
The article discusses URL encoding in Java, some pitfalls, and how to avoid them.
The Basics of Java Generics
Filed under Core Java
A quick intro tot he basics of Java Generics.
Guide to Spring Session
The article introduces Spring Session a project that decouples session management from server container.
Introduction to Intercepting Filter Pattern in Java
Filed under Jakarta EE
The article introduces Intercepting Filter pattern, backed with a Java based example
Introduction to FindBugs
The article introduces FindBugs the static analysis tools, used as maven, Eclipse or Intellij plugin
Introduction to SLF4J
Filed under Logging
A quick and to the point guide of how to use Log4j2 and Logback with SLF4J, as well as how to bridge other logging APIs such as JCL to SLF4J
How to Read a File in Java
Filed under Java IO
Quick code example of the various ways we can read a file with Java
A Guide to the Front Controller Pattern in Java
Filed under Architecture, Jakarta EE
This article explains the Front Controller pattern. It shows how the pattern is employed as a central request handler, how it applies the common behaviour and delegates request to specific handlers.
Guide to Elasticsearch in Java
Filed under NoSQL
Quick and practical guide to Elasticsearch in Java.
Spring Cloud – Bootstrapping
Filed under Spring Cloud
This article shows how to bootstrap spring cloud application by employing four common microservices, the config, the discovery, the gateway and the resource microservice.
Intro to Feign
Filed under HTTP Client-Side, JSON
This article introduces Feign, a declarative HTTP client that simplifies implementation and maintaining efforts
A Guide to Spring Cloud Netflix – Hystrix
Filed under REST, Spring Cloud
The article shows how to set up a fallback in application logic using Spring Cloud Hystrix.
Introduction to Spring Cloud Netflix – Eureka
Filed under Spring Cloud
Learn how to register a service and make it discoverable using Eureka
X.509 Authentication in Spring Security
Filed under Spring Security
The article discusses using certificates for both client and server side authentication.
How to Run a Shell Command in Java
Filed under Java
Quick guide to how to two ways of running a shell command in Java, both on Windows as well as on UNIX.
Dockerizing a Spring Boot Application
Filed under Docker, Spring Boot
The article explains running two SpringBoot applications in different docker containers, but communicating and appearing as a single unit to the host system.
Integration Testing in Spring
A quick guide to writing integration tests for a Spring Web application.
Guide to JSF Expression Language 3.0
Filed under Jakarta EE
A quick look at the improvements introduced by the Expression Language v3.0 in JSF.
Intro to JaCoCo
A quick intro to using the JaCoCo maven plugin to generating test coverage reports.
Spring JSON-P with Jackson
The article is focused on showing how to use the new JSON-P support in Spring 4.1.
A Guide to FastJson
Filed under JSON
The basics of FastJson – a lightweight but powerful library for working with JSON in Java.
Intro to the Jackson ObjectMapper
The article discusses Jackson’s central ObjectMapper class, basic serialization and deserialization as well as configuring the two processes.
Guide to Java 8’s Collectors
Filed under Java Streams
The article discusses Java 8 Collectors, showing examples of built-in collectors, as well as showing how to build custom collector.
Mutation Testing with PITest
Filed under Testing
This article briefly introduces mutation testing using the PITest library
Introduction to JSF EL 2
Filed under Jakarta EE
The article discusses the JSF EL. It contrast it against the JSP EL, but also discusses the weaknesses
Introduction to Java Logging
Filed under Logging
A quick intro to logging in Java – the libraries, the configuration details as well as pros and cons of each solution.
Stored Procedures with Hibernate
Filed under Persistence
This article shortly discusses how to call store procedures from Hibernate.
Guava Set + Function = Map
Filed under Guava
A short example showing how to apply a function against a Set, and convert a set into a Map.
A Quick Guide to Spring MVC Matrix Variables
Filed under REST, Spring MVC
A short guide about Spring MVC matrix variables, explaining what they are and how to use them to simplify our requests.
JavaServer Faces (JSF) with Spring
Filed under Spring MVC
A quick introduction into setting up JSF and the Spring Framework. It showcases how Spring beans can be accessed from JSF pages and JSF managed beans.
New Features in Java 8
Filed under Core Java
A short intro into the new features of Java 8; the focus is on default and static interface methods, static method references, and Optional.
XML Serialization and Deserialization with Jackson
This short tutorial shows how the Jackson library can be used to serialize Java object to XML and deserialize them back to objects.
Returning Image/Media Data with Spring MVC
Filed under Spring MVC
The article shows the alternatives for returning image (or other media) with Spring MVC and discusses the pros and cons of each approach.
Spring HTTP/HTTPS Channel Security
Filed under Spring Security
The article briefly demonstrates how to protect sensitive data by configuring HTTPS and discuss further configuration details of the channel security feature.
Guide to the Fork/Join Framework in Java
Filed under Java Concurrency
An intro to the fork/join framework presented in Java 7 and the tools to help speed up parallel processing by attempting to use all available processor cores.
An Intro to Spring HATEOAS
A quick intro to using Spring HATEOAS to add Hypermedia to a practical Spring API.
A Guide to the Java ExecutorService
Filed under Java Concurrency
An intro and guide to the ExecutorService framework provided by the JDK – which simplifies the execution of tasks in asynchronous mode.
Spring REST with a Zuul Proxy
Filed under REST, Spring Cloud
Exploring the use of the Zuul proxy for a Spring REST API, working around CORS and the same-origin policy constraint of the browser.
Guava – Maps
Filed under Guava
Working with the Guava Map support to create immutable, sorted, bi and multi maps, as well as other useful map implementations.
Introduction to Spring Data JPA
Filed under Spring Data
Introduction to Spring Data JPA with Spring 4 – the Spring config, the DAO, manual and generated queries and transaction management.
Spring with Maven
Spring with Maven – focuses on the dependencies for Persistence, Web, Security and Testing.