In this article, we will discuss some of the frequently asked Spring Boot Microservice interview questions and answers. For generic Microservice interview questions and answers, refer the following post : 10+ Must Read Microservice Interview Questions Spring Boot Microservice Interview Questions Q 1 : What is Spring Boot? Why is Spring Boot popular for […]
Category: Frameworks
Spring Boot – CRUD operations using JPA
In this article, we will use the JPA (Java Persistence API) with Spring Boot for insert, update, delete and read operations. We are using in-memory H2 database, but the same can be changed for any other relational database. Project Structure We can use Spring Tool Suite(STS) to create a Spring starter project and choose […]
Spring Boot Microservice – How to fix “BindException: Address already in use: bind” error
In this article, we will see how to fix spring boot BindException: Address already in use error. If you are getting the following error while starting your spring-boot application, this means the 8080 port is being used by another application. You can stop the other application, or follow the approach mentioned below. java.net.BindException: Address […]
Spring Boot : Adding basic security to microservices
In this article, we will add basic authentication to a previous Spring application we created in this post : Spring Boot Hello World Adding maven dependency Add the following dependency to the pom.xml : <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> This will add the following jars to the maven : spring-security-config-X.X.X.RELEASE.jar spring-security-core-X.X.X.RELEASE.jar spring-security-web-X.X.X.RELEASE.jar Running the @SpringBootApplication […]
How to integrate Swagger 2 with Spring Boot
In this article, we will see how to integrate Swagger 2 with Spring Boot to generate a simple api documentation. What is Swagger ? Swagger is set of open source tools that helps with creating documentation for your REST services. Lets start with creating a Spring Tool Web application. You can refer the following article […]