Building a Custom Spring Boot Starter for Microservices

Overview Spring Boot provides the parent POM for easier creation of Spring Boot applications. However, not everyone likes inheriting from the spring-boot-starter-parent POM. In one of the projects I have worked earlier, we have…

Continue Reading Building a Custom Spring Boot Starter for Microservices

Disable Spring Security for a Profile in Spring Boot

In our previous articles, we have implemented Basic Authentication, JWT Authentication, LDAP authentication with BASIC_AUTH, JWT_AUTH and LDAP_AUTH profiles respectively. When we run the the application with any of the…

Continue Reading Disable Spring Security for a Profile in Spring Boot

3 Steps to Secure Spring Boot 2 REST API using LDAP Authentication and Authorization with MySQL Database

In the previous article we have secured the REST API with Spring Security JWT Authentication. Now we are gonna add LDAP Authentication and Role Based Authorization with Database to the same REST…

Continue Reading 3 Steps to Secure Spring Boot 2 REST API using LDAP Authentication and Authorization with MySQL Database

9 Steps to Secure Spring Boot 2 REST API with Spring Security 5 JWT Authentication, Role based Authorization and MySQL Database

In the previous article we have secured the REST API with Spring Security Basic Authentication. Now we are gonna add JWT Authentication and Role Based Authorization to the same REST API that…

Continue Reading 9 Steps to Secure Spring Boot 2 REST API with Spring Security 5 JWT Authentication, Role based Authorization and MySQL Database

7 Steps to Secure Spring Boot 2 REST API with Spring Security Basic Authentication, Role based Authorization and MySQL Database

In the previous article we have integrated Swagger 2 with Spring Boot REST CRUD API. Now we are gonna secure the REST API with Spring Security Basic Authentication and Role Based Authorization.…

Continue Reading 7 Steps to Secure Spring Boot 2 REST API with Spring Security Basic Authentication, Role based Authorization and MySQL Database

Building Spring Boot 2.X RESTful CRUD API with Spring Data JPA, Hibernate, Lombok and MySQL in 7 simple steps

In the previous article we have implemented a REST API without using Spring Boot. In this article we are gonna implement RESTful services using Spring Boot in 7 simple steps.…

Continue Reading Building Spring Boot 2.X RESTful CRUD API with Spring Data JPA, Hibernate, Lombok and MySQL in 7 simple steps

Logging, Performance Monitoring, Security and Transaction Management with Spring AOP

This article is the continuation of the previous article and aims to implement logging, events publishing, user access security, transaction management, and performance monitoring using Spring AOP. Design Spring AOP…

Continue Reading Logging, Performance Monitoring, Security and Transaction Management with Spring AOP

Sending email using Spring Boot 2 Internationalization (i18n) and FreeMarker HTML email template with inline image and attachment

In one of our previous blog post, we have developed a web application for User Registration and OAuth2 Social login with Spring Boot. In a typical web appliacation like this,…

Continue Reading Sending email using Spring Boot 2 Internationalization (i18n) and FreeMarker HTML email template with inline image and attachment