Tuesday, July 16, 2024

Spring Boot basic in 5 mins - Interview


 Spring Boot: less cofig compare to spring MVc like Dispacher servlet, view Resolver, component scan

 Auto config - Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added.

 Spring Boot Actuator - to monitor allication. metrics on /application url

 Embaded server - default tomcat server. Comes with dependency spring-boot-starter-web

Spring Starters:

Spring Starters parent - no need worry about version, based on spring version all the spring versions related jars are used

Spring initialiser - start.spring.io ui tool to create sample spring boot project with selected spring features

appliction.properties : used to cofig log level, enable feature, enbel profile, server.port, etc

CommandLineRunner - to run something do once application container started



 

No comments: