To disable any specific auto-configuration, one can use exclude attribute for @EnableAutoConfiguration annotation.
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
public class SampleApplication
{
}
Posted Date:- 2021-08-25 07:50:08
How to implement JWT authentication for Spring Boot Application?
What is Thymeleaf and how to use it?
How to disable specific auto-configuration?
Why do we use the annotation @SpringBootApplication in the main Spring Boot application class?
How would you set up an application with HTTPS port with Spring Boot?
What Spring Boot features help develop Microservices Applications?
Where do you find the class files when you compile a Maven project?
Explain what is Maven artifact?
Explain what is Maven? How does it work?
What does Aspect-Oriented Programming (AOP) mean?
List out the features of Spring Boot?
Why do we use “Opinionated†in spring boot?
What does Spring Boot Starter Pom mean? Why Is It Useful?
Why is Spring Data REST not recommended in real-world applications?
What are the steps to add a custom JS code with Spring Boot?
Explain steps to deploy an application on virtual machine.
How is Hibernate chosen as the default implementation for JPA without any configuration?
Is excluding package without using the basePackages filter is possible? How?
How can you set active profile in Spring Boot?
What is the default package in Spring Boot?
Why Do We Need Spring Profiles?
Can you explain how to deploy to a different server with Spring Boot?
How Exception Handling implement using Spring Boot?
Can you give an example for ReadOnly as true in Transaction management?
What is Cross-Site Request Forgery attack?
Can we disable the default web server in the Spring Boot application?
Is this possible to change the port of Embedded Tomcat server in Spring boot?
What is a shutdown in the actuator?
Explain Docker in Spring Boot.
Explain overriding default properties in Spring Boot application.
How to enable logging in Spring Boot?
What does @Grab annotation do? When to use this?
Can you write Spring application with Groovy?
How do you secure the Spring Boot Actuator's endpoint to restrict access?
What Basic Annotations Does Spring Boot Offer?
Explain Auto-Configuration in Spring Boot.
What do you understand by Spring Boot supports relaxed binding?
How to exclude any package without using the basePackages filter?
What is the error you see if H2 is not in the classpath?
How to instruct an auto-configuration to back off when a bean exists?