Interview Preparation
JAVA
Spring boot - Rapid Application Development
@Configuration - Makes the class as a source for bean definition for the Application Context.
@ComponentScan - Tells spring to look for components, services, configurations
Proper Logging in Spring boot Applications
spring-boot-starter-logging : dependency already available
spring-logback - is used most of the time
Logger levels(error, trace., info..)
logging.level.root=TRACE - can be set in application.properties
Logger logger = LoggerFactory.getLogger(sample.class)
logback-spring.xml
Feature of spring Framework
Collection of jars and libraries
1. Lightweight
2. Non-Invasive
3. IOC
4. spring container - (creation of object, maintain the lifecycle and DI)
5. Intercepting the business logic using AOP
6. loosely coupled

Comments
Post a Comment