How can you create a custom Auto Configuration in Spring Boot?
- By adding a custom class to the "org.springframework.boot.autoconfigure" package.
- By adding a custom class to the "org.springframework.context.annotation" package.
- By configuring properties in the application.properties file.
- By modifying the Spring Boot core code.
You can create a custom Auto Configuration in Spring Boot by adding a custom class to the "org.springframework.boot.autoconfigure" package and annotating it with @Configuration and @EnableAutoConfiguration. This class should include the necessary configurations for your custom behavior. Modifying Spring Boot core code is not recommended and should be avoided.
Loading...
Related Quiz
- To enable method-level security in Spring Security, the _____ annotation must be added to the configuration class.
- Which interface in Spring Boot is used to create custom validators for a class?
- The Spring Boot _____ properties file allows users to configure the application's settings.
- Which of the following is a true statement about transaction management in Spring Data JPA?
- In the context of Global Method Security, how can custom permission evaluators be integrated to extend the functionality of method security expressions?