-
cURL post JSON data on Windows
On Windows, the key to send JSON data is double-quotes like this
Date: 2019-08-11 View: 2047
-
log4j2 Failed to load class org.slf4j.impl.StaticLoggerBinder
The Java project is using log4j2, but look like some components are used SLF4J logging and caused the following error message:
Date: 2019-08-11 View: 1544
-
An Introduction to Kernel Live Patching on Linux
Live patching is slowly catching on, but not for the reasons you might think.
Date: 2019-08-11 View: 1369
-
Spring Boot WebFlux + Thymeleaf reactive example
In this article, we will show you how to develop a reactive web application.
Date: 2019-08-11 View: 1509
-
Spring Boot WebFlux + Server-sent events example
In this article, we will show you how to develop a reactive web application, using Server-sent events
Date: 2019-08-11 View: 1345
-
Spring Boot + JUnit 5 + Mockito
In this article, we will show you how to do Spring Boot 2 integration test with JUnit 5, and also Mockito.
Date: 2019-08-11 View: 1548
-
Mockito when() requires an argument which has to be a method call on a mock
Run the following Spring Boot + JUnit 5 + Mockito integration test.
Date: 2019-08-11 View: 4688
-
Spring REST Hello World Example
In this article, we will show you how to develop a Spring Boot REST style web service to handle CRUD operations from a H2 In-memory database.
Date: 2019-08-11 View: 1234
-
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: 1125
-
Spring Boot Test unable to autowired MockMvc
Spring Boot integeration test, but unable to @Autowired MockMvc
Date: 2019-08-11 View: 1645
-
Spring Security There is no PasswordEncoder mapped for the id null
Send a GET request with username and password, but hits the password encoder error?
Date: 2019-08-11 View: 2073
-
Spring REST + Spring Security Example
In this article, we will enhance the previous Spring REST Validation Example, by adding Spring Security to perform authentication and authorization for the requested URLs (REST API endpoints)
Date: 2019-08-11 View: 1360
-
JSONAssert How to unit test JSON data
In Java, we can use JSONAssert to unit test JSON data easily.
Date: 2019-08-11 View: 2213
-
Spring REST Error Handling Example
In this article, we will show you error handling in Spring Boot REST application.
Date: 2019-08-11 View: 1908
-
Mockito How to mock repository findById thenReturn() Optional?
Try to mock a repository findById method, but no idea use thenReturn() to return an object, as it accepts an Optional?
Date: 2019-08-11 View: 2538