Skip to main content

Posts

Showing posts from October 19, 2018
What does it mean by auto configuration by spring boot ? Spring boot automatically configure bean if its corresponding library in classpath, for example if JdbcTemplate is in classpath then spring boot will configure JdbcTemplate and will create a bean that can be injected directly where its required. What is starter dependency in spring boot ? Starter dependency is aggregation of common dependency that are available during build for example if we are creating a web project that exposes REST API then we require spring web , spring mvc, tomcat, jackson etc.but spring boot provides web starter that has all in single dependency.If we add all dependency individually then we need to maintain all compatible version of library but using spring boot starter we get complete package that maintains all compatible version. What is the benefit of spring boot Command line interface (CLI) ? When we write code in spring boot CLI and use any Object or type then spring boot CLI detects start