InterviewSolution
| 1. |
What is an auto-configuration? |
|
Answer» SPRING boot autoconfiguration, check what are the jars that are AVAILABLE in the classpath, according to that autoconfiguration provides a basic configuration to the application according to that jars or library available.
@EnableAutoConfiguration
@ConditionalOnClass({ DataSource.class, EmbeddedDatabaseType.class })
@EnableConfigurationProperties(MySQLDataSourceProperties.class)
@ConditionalOnMissingBean Spring boot autoconfiguration brings certain level of intelligence into the application so that it removes the hurdles to provide the configuration manually. ONE can debug the spring boot application by using the below approach:
|
|