spring boot mysql autoconfiguration (#1639)

* spring boot mysql autoconfiguration

* exclude autoconfig from other main classes

* update property condition
This commit is contained in:
lor6
2017-04-20 01:49:09 +03:00
committed by KevinGilmore
parent 87bc04ae98
commit aa08d1262b
21 changed files with 286 additions and 14 deletions

View File

@@ -3,7 +3,9 @@ package org.baeldung;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
@org.springframework.boot.autoconfigure.SpringBootApplication
import com.baeldung.autoconfiguration.MySQLAutoconfiguration;
@org.springframework.boot.autoconfigure.SpringBootApplication(exclude=MySQLAutoconfiguration.class)
public class Application {
private static ApplicationContext applicationContext;