BAEL-2575 : Disable auto configuration of data source (#6513)
This commit is contained in:
parent
aaa65c19d2
commit
4a0810acc8
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue