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…
JAX-RS @QueryParam example
In JAX-RS, you can use @QueryParam annotation to inject URI query parameter into Java method. Alternatively, you can get the query parameters grammatically, via annotation @Context UriInfo.
JAX-RS @PathParam example
In JAX-RS, you can use @PathParem to inject the value of URI parameter that defined in @Path expression, into Java method.
JAX-RS @Path URI matching example
In JAX-RS, you can use @Path to bind URI pattern to a Java method. See following examples to show you how it works.