In this series, we have created the client applications with REST APIs and used Spring Boot Actuators to monitor the health of the applications, metrics for the REST APIs, Database Connections & Status, Tomcat and Hikari Connections, Cache Management, Scheduled Tasks, Environment of an application and much more. To visualize and monitor the applications we need UI, to achieve this we have created Spring Boot Admin which acts as a server application and uses JSON information from Actuators and provides visualization in form of graphs and tables.
In the previous article, we have created the Client Application and explored the Spring Boot Actuators which provide great metrics and build-in endpoints to monitor Health, APIs, Environment, Cache Management, JVM Processes, Tomcat & JDBC Connections, Scheduled Tasks, Threads and much more.
In this article, we will create the server application which will interact with the client application and gets the information from Actuators and provides the ready to use UI for monitoring. Let’s start by creating a project using Spring Initializer.
In this series, we will create the two Spring Boot Applications, one will be the client application with the REST APIs and another which will provide ready to use UI to monitor the client application usage, metrics, and performance.
In this article, we will create the client application which will include the REST APIs and will explore the Spring Boot Actuators to monitor our application’s connections, usage, and APIs. Let’s start by creating an application using Spring Initializer.
In the previous article, we have discussed the Web and Stereotype annotations and saw the examples with code. In this article, I will demonstrate the basic soft delete functionality using the annotations.
To implement Soft Delete functionality we will use @SQLDelete, @Where, @Filter, and @FilterDef. To generate the common getters-setters we will use @Data as follow.
A shortcut for
@Getter on all fields,
@Setter on all non-final fields, and
//For Maven Project
Annotation is a piece of information used by java interpreter and the JVM based on element type such as METHOD, PARAMETER, CONSTRUCTOR, etc. You might be familiar with build-in annotations such as @Override, @Deprecated, and @SuppressWarnings
In this series, we will create the simple Spring Boot Application and explore the commonly used annotations and will create a custom annotation. In this article, we will get familiar with Web and Stereotyp annotations. Let’s creates a new project with Spring Initializr. You can get the source code here
@SpringBootApplication annotation is equivalent to using
@ComponentScan with their default attributes. …