BAEL-2575 : Disable auto configuration of data source (#6513)

This commit is contained in:
Surapaneni Venkata Kiran 2019-03-11 23:49:24 -04:00 committed by KevinGilmore
parent aaa65c19d2
commit 4a0810acc8
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package com.baeldung.disabledatasource.application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude=DataSourceAutoConfiguration.class)
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}