728x90
반응형
SMALL
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Database에 연결할 때 필요한 정보가 없기 때문이다
1. application.properties 에서 db 정보를 추가하거나
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=
2. exclude={DataSourceAutoConfiguration.class}) 을 @SpringBootApplication에 추가를 하여 DB과정을 제외시키자
SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
public class AftmApplication {
public static void main(String[] args) {
SpringApplication.run(AftmApplication.class, args);
}
}
728x90
반응형
LIST