Servlet 3 File Upload Example using MultipartConfig

Servlet 3 File Upload Example using MultipartConfig shows you how to handle file upload with Servlet 3. This is additional feature that Servlet 3.0 Specification supports it out of the box. Thus, a annotation @MultiPartConfig has been introduced in Servlet 3.0 Specification. This annotation can be used to annotate a servlet class in order to … Read more

Java Servlet Tutorial – Full Java Servlet Example

Java Servlet Tutorial series introduces about Java Servlet 3.0 Technology. With a tutorial, it also shows you how to create a Java Servlet Example project in simple step-by-step way. First, we are familiar to some concepts about general Java Servlet. What is a Servlet? A servlet is a Web component that is managed by a … Read more

GSON Annotations Example using JsonAdapter

This tutorial shows you how to create GSON Annotations Example using JsonAdapter. The @JsonAdapter annotation is one of userful GSON annotations. This annotation be used at field or class level to specify the Gson TypeAdapter for serializing or deserializing. GSON converts java classes to JSON using its built-in type adapters by default. Sometimes, They doesn’t … Read more

GSON Annotations Example

Gson Annotations Example shows you some useful annotations that are provided by Google Gson, for example: @Expose, @SerializedName, @Since, @Until, and @JsonAdapter. With these annotations, we can customize the serialization of java object to JSON or desirialization of object from JSON. Table of contents: 1. Project structure 2. Maven Dependency 3. Create POJO with GSON … Read more

Please share it if you found this useful
Hide Buttons