Skip to main content

SPRINGBOOT Interview Questions

What are the Features of Spring Boot? There are many useful features of Spring Boot. Some of them are mentioned below: Auto-configuration – Spring Boot automatically configures dependencies by using @EnableAutoconfiguration annotation and reduces boilerplate code. Spring Boot Starter POM – These Starter POMs are pre-configured dependencies for functions like database, security, maven configuration etc. Spring Boot CLI (Command Line Interface) – This command line tool is generally for managing dependencies, creating projects and running the applications. Actuator – Spring Boot Actuator provides health check, metrics and monitors the endpoints of the application. It also simplifies the troubleshooting management. Embedded Servers – Spring Boot contains embedded servers like Tomcat and Jetty for quick application run. No need of external servers. Features of Spring Boot What does the @SpringBootApplication annotation do internally? The @SpringBootApplication annotation combines three annotations. Those three annotations are: @Configuration, @EnableAutoConfiguration, and @ComponentScan . @AutoConfiguration : This annotation automatically configuring beans in the class path and automatically scans the dependencies according to the application need. @ComponentScan : This annotation scans the components (@Component, @Service, etc.) in the package of annotated class and its sub-packages. @Configuration: This annotation configures the beans and packages in the class path. @SpringBootApplication automatically configures the application based on the dependencies added during project creation and bootstraps the application by using run() method inside the main class of an application. @SpringBootApplication = @Configuration + @EnableAutoConfiguration + @ComponentScan

Comments

Popular posts from this blog

Microservices design patterns

Microservices design pattern Next :  saga-design-pattern-microservices

Runtime Fabric (RTF)

MuleSoft's Anypoint Runtime Fabric (RTF) has many features that help with deployment and management of Mule applications: Deployment: RTF can deploy applications to any environment, including on-premises, in the cloud, or in a hybrid setup. It can also automatically deploy Mule runtimes into containers. Isolation: RTF can isolate applications by running a separate Mule runtime server for each application. Scaling: RTF can scale applications across multiple replicas. Fail-over: RTF can automatically fail over applications. Monitoring and logging: RTF has built-in monitoring and logging capabilities to help teams troubleshoot issues and gain insights into application performance. Containerization: RTF supports containerization, which allows applications to be packaged with their dependencies and run consistently across different environments. Integration: RTF can integrate with services like SaveMyLeads to automate data flow between applications. Management: RTF can be managed with A...

Integration Design Patterns

Understanding Integration Design Patterns: Integration design patterns serve as reusable templates for solving common integration problems encountered in software development. They encapsulate best practices and proven solutions, empowering developers to architect complex systems with confidence. These patterns abstract away the complexities of integration, promoting modularity, flexibility, and interoperability across components. Most Common Integration Design Patterns: Point-to-Point Integration: Point-to-Point Integration involves establishing direct connections between individual components. While simple to implement, this pattern can lead to tight coupling and scalability issues as the number of connections grows. Visualizing this pattern, imagine a network of interconnected nodes, each communicating directly with specific endpoints. Publish-Subscribe (Pub/Sub) Integration: Pub/Sub Integration decouples producers of data (publishers) from consumers (subscribers) through a central ...