-
Spring REST API Validation
In Spring MVC, just annotate a @Valid on the @RequestBody to fire the validation process.
Date: 2019-08-11 View: 1520
-
Spring Boot + Spring Data JPA + Java 8 date and time (JSR310)
In Spring Boot + Spring Data JPA application, to support the JSR310 java.time.* APIs, we need to register this Jsr310JpaConverters manually.
Date: 2019-08-11 View: 1520
-
cURL – PUT request examples
Example to use cURL -X PUT to send a PUT (update) request to update the user’s name and email.
Date: 2019-08-11 View: 1520
-
PrimeFaces Open Window By Dropdown Selection
Technology: Primefaces it’s java based web framework to develop web applications using java. It’s one of the compliance frameworks for JSF, there are many other frameworks like omnifaces, richfaces. Primefaces has rich UI components.
Date: 2019-08-11 View: 1520
-
cURL post JSON data on Windows
On Windows, the key to send JSON data is double-quotes like this
Date: 2019-08-11 View: 1520
-
Spring REST Validation Example
In this article, we will enhance the previous Spring REST Hello World example, by adding bean validation and custom validator.
Date: 2019-08-11 View: 1520
-
JSONAssert How to unit test JSON data
In Java, we can use JSONAssert to unit test JSON data easily.
Date: 2019-08-11 View: 1520
-
Spring REST Error Handling Example
In this article, we will show you error handling in Spring Boot REST application.
Date: 2019-08-11 View: 1520
-
Spring Test How to test a JSON Array in jsonPath
In Spring, we can use Hamcrest APIs like hasItem and hasSize to test a JSON Array. Review the following example :
Date: 2019-08-11 View: 1520
-
Gson How to parse JSON
Gson provide simple toJson() and fromJson() methods to convert Java objects to / from JSON.
Date: 2019-08-11 View: 1520
-
Jackson Convert JSON array string to List
Few Jackson examples to convert a JSON array string to a List
Date: 2019-08-11 View: 1520
-
Jackson How to ignore null fields
In Jackson, we can use @JsonInclude(JsonInclude.Include.NON_NULL) to ignore the null fields.
Date: 2019-08-11 View: 1520
-
Jackson How to parse JSON
Jackson provide writeValue() and readValue() methods to convert Java objects to / from JSON.
Date: 2019-08-11 View: 1520
-
Jackson @JsonView examples
In Jackson, we can use @JsonView to limit or control fields display for different users.
Date: 2019-08-11 View: 1520
-
JSON.simple – How to parse JSON
In this tutorial, we will show you how to parse JSON with JSON.simple
Date: 2019-08-11 View: 1520