Spring boot

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

lipnus 2019. 7. 11. 16:29
반응형

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.



NameApplication.java

@SpringBootApplication

public class PasApplication {

public static void main(String[] args) {

SpringApplication.run(PasApplication.class, args);
}

}



yaml에 database정보가 들어가 있지 않아서 그런것.

일단 되게 하려면 이 anotation을 추가한다.


@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})


반응형