Learn a few different ways to conditionally add CSS classes in Thymeleaf.
Also find me here:
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Baeldung on Java
- All
- Weekly Review (501)
- Core Java (225)
- Spring (171)
- Testing (157)
- Spring Boot (152)
- Java (142)
- Java String (121)
- REST (109)
- Spring Security (102)
- Spring MVC (99)
- Persistence (96)
- Java IO (92)
- Jakarta EE (77)
- NoSQL (76)
- Java Collections (73)
- Data (73)
- Spring Data (71)
- Algorithms (69)
- Java Concurrency (64)
- DevOps (64)
- Security (57)
- Series (56)
- Java Dates (52)
- JPA (51)
- Reactive (49)
- Maven (47)
- HTTP Client-Side (46)
- Java Map (45)
- Spring Cloud (42)
- Java Numbers (41)
- Java Streams (40)
- Java Array (40)
- JVM (40)
- Java List (38)
- JSON (37)
- Architecture (37)
- Logging (29)
- Spring Persistence (28)
- Jackson (28)
- IDE (27)
- Gradle (25)
- Spring Web (24)
- Networking (20)
- Cloud (20)
- XML (18)
- Web Services (17)
- Groovy (16)
- Spring WebFlux (15)
- Java Web (11)
- Artificial Intelligence (8)
- Docker (7)
- Spring AI (1)
- News (1)
Testing Exceptions with Spring MockMvc
Filed under Spring MVC, Testing
Learn how to unit test controller exceptions using Spring MockMvc.
Spring @RequestParam vs @PathVariable Annotations
Filed under Spring Web
Understand the differences between Spring’s @RequestParam and @PathVariable annotations.
Java Weekly, Issue 338
Filed under Weekly Review
This week is Spring-heavy, which is always cool 🙂 and, on top of that, a really solid writeup about building resilience. Good stuff.
Java IOException “Too many open files”
Filed under Java IO
Learn when and how to avoid the “Too many open files” exception in Java.
The Difference between RxJava API and the Java Flow API
Filed under Reactive
Learn about the Reactive Stream Specification and see a practical example of Flow API and RxJava implementations for a live video stream
Test a Mock JNDI Datasource with Spring
Filed under Spring Persistence, Testing
Learn how to test a mock JNDI datasource using the Spring Framework and the Simple-JNDI library.
Testing @Cacheable on Spring Data Repositories
Filed under Spring Persistence
Learn how to isolate the caching layer in your Spring Data tests.
Writing IntelliJ IDEA Plugins Using Gradle
Learn how to write your own IntelliJ plugin using Gradle.