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

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)
这样的标语也找不原因.
网上用的方法

@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class WzxWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WzxWebApplication.class, args);
    }
}

这样做没有用.
最终通过添加一个依赖解决了问题


            org.apache.httpcomponents
            httpclient
            4.4
 

也许能帮你们

你可能感兴趣的:(If you want an embedded database (H2, HSQL or Derby), please put it on the classpath..)