There are different ways to get a custom error message page in spring boot. The following solution worked for my web project. Here is the overview of the structure. Pic To start with, if there is 404 error, then we want a custom error page showing up instead of the spring boot’s default page. The … Continue reading Quickest way of getting an custom error message in Spring Boot 2.x
Spring 5 and JUNIT.
Let us try to put together some JUNITs with Spring 5 injection. One of the most challenging things of integrating JUnit and Spring was the role of the IDE. It is important to keep an eye on that. So here is the code we are going to look. @RunWith(SpringJUnit4ClassRunner.class)@ContextHierarchy({ @ContextConfiguration(classes = StreamsConfig.class)}) public class StreamsFilterSampleTest … Continue reading Spring 5 and JUNIT.

You must be logged in to post a comment.