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 …
Continue reading Spring Boot Microservice Interview Questions & AnswersSpring
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 …
Continue reading Spring Boot – CRUD operations using JPAIn 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 …
Continue reading Spring Boot Microservice – How to fix “BindException: Address already in use: bind” errorIn 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 …
Continue reading Spring Boot : Adding basic security to microservicesIn 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 …
Continue reading How to integrate Swagger 2 with Spring Boot