Why IllegalArgumentException is thrown and how to fix in it in Java.
Baeldung Author
Abderrahim Azhrioun
Full Stack Developer, Java Geek, Spring Lover, and a Blogger. I believe coding should be fun and accessible to everyone ;)
Here's what I've written (so far):
Baeldung on Java
- All
- Java (8)
- Spring Web (2)
- Spring MVC (2)
- Spring Boot (2)
- Spring (1)
- REST (1)
- Jackson (1)
- JSON (1)
- HTTP Client-Side (1)
Convert Anonymous Class into Lambda in Java
Filed under Java
A reminder of what an anonymous class is and how to convert it to a lambda expression.
Enum Mapping in Spring Boot
Filed under Spring
Explore different ways to implement case-insensitive enum mapping in Spring Boot.
Compare Characters in Java
Filed under Java
Learn how to compare characters in Java.
How to Truncate a String in Java
Filed under Java
Learn how to truncate a String in Java.
Format Instant to String in Java
Filed under Java
Learn two different ways to format an instant as a string – one using core Java and the other using the Joda-Time library.
HttpMessageNotWritableException: No Converter for [class …] With Preset Content-Type
Filed under Spring Web
Learn what causes Spring to throw HttpMessageNotWritableException with the message “No converter for [class …] with preset Content-Type” and how to solve it.
Check if a String Ends with a Certain Pattern in Java
Filed under Java
Learn how to check if a String ends in a certain pattern in Java using core Java methods as well as Apache Commons Lang’s StringUtils class.
Split a String Every n Characters in Java
Filed under Java
Learn several ways to split a string after every n characters in Java.
Spring Boot Error ApplicationContextException
Filed under Spring Boot
Learn how to solve the ApplicationContextException in Spring Boot.
“HttpMessageNotWritableException: No converter found for return value of type”
Filed under Jackson, REST, Spring MVC
Learn about Spring’s HttpMessageNotWritableException: “No converter found for return value of type” exception.
Spring RestTemplate Exception: “Not enough variables available to expand”
Filed under HTTP Client-Side, Spring Web
Learn about Spring’s RestTemplate Not enough variables available to expand IllegalArgumentException.
Find the Last Modified File in a Directory with Java
Filed under Java
Learn about file access management in Java
JSON Parameters with Spring MVC
Filed under JSON, Spring MVC
Learn how to send JSON parameters in GET and POST requests when using Spring MVC.
The Spring @ConditionalOnProperty Annotation
Filed under Spring Boot
Learn all about the Spring @ConditionalOnProperty annotation.