JAX-RS @FormParam example
In JAX-RS, you can use @FormParam annotation to bind HTML form parameters value to a Java method.
JAX-RS @MatrixParam example
Matrix parameters are a set of “name=value” in URI path, separate by a semi colon “;“.
RESTEasy CRUD with H2 database tutorial
RESTEasy CRUD tutorial shows how to create a JAX-RS CRUD example with RESTEasy. RESTEasy is a Java framework for developing RESTful Web Services. It is a fully certified and portable…
NoClassDefFoundError: jakarta/servlet/ServletInputStream
Using Jersey 3x + Jetty to develop endpoints, but hits the following error during application startup: Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/servlet/ServletInputStream
jakarta.activation.DataSource was not found
Using Jersey 3x + Jetty to develop endpoints, but hits the jakarta.activation.DataSource warning during application startup. WARNING: A class jakarta.activation.DataSource for a default provider MessageBodyWriter was not found.The provider is…
Maven error – invalid target release: 17
We upgraded the project from Java 11 to Java 17, and mvn test hits the Fatal error compiling: error: invalid target release: 17 . This article will show how to…
Maven error – invalid target release: 1.11
Maven compiles and hits the following fatal error messages: Fatal error compiling: error: invalid target release: 1.11 . The article will show you how to fix this error
Crud operation with REST API using JAX-RS
Crud operation basically refers to create, read, update and delete as insert a data or record, get or search data, modify data or record and delete a record. Crud has…
Difference Between POJO, JavaBeans, DTO and VO
In this tutorial, we’ll learn what Data Transfer Object (DTO), Value Object (VO), Plain Old Java Object (POJO), and JavaBeans are. We will look at the differences between them and…
Entity, domain model and DTO – why so many?
Today’s article is quite good and also an important topic in Spring Boot. Specifically, let’s find out how the data will change when going through different layers. And what are…