Spring Boot Interview Questions and Answers
| Spring vs Spring Boot | NodeJS vs Spring Boot | Spring MVC vs Spring Boot |
Ques 41. Explain Auto-Configuration in Spring Boot.
Auto-configuration is used to configure Spring application automatically based on dependencies of classpath parameter. It makes development faster and easier.
Ques 42. How to enable logging in Spring Boot?
In order to enable debug logging, you can specify --debug while starting the application from the command prompt.
Ques 43. Explain overriding default properties in Spring Boot application.
Spring Boot has lots of properties that can be easily overridden by specifying them in application.properties.
Ques 44. How to handle exception in Spring Boot.
Spring Boot provides a very useful way to handle exceptions using @ControllerAdvice annotation.
Ques 45. What is mean by spring batch?
Spring Boot Batch provides code reusability which is important when working with large numbers of records, including transaction management, logging, skipping, job processing statistics, and job restarts.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
</dependency>