If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

在maven的pom文件中修改里配置文件的位置,启动时报错:

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).

解决办法:

在启动类中修改SpringBootApplication注解为:

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

你可能感兴趣的:(java,web)