运行时报错:
Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
解决方案:
在启动类上加:
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
本文解决了一个常见的运行时错误,当应用程序试图使用未在类路径中找到的嵌入式数据库(如H2、HSQL或Derby)时,会抛出异常。通过在启动类上添加@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}
运行时报错:
Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
解决方案:
在启动类上加:
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
4万+
2万+
6961
9343
5808
2万+
4万+
1万+
3674
2440
1730

被折叠的 条评论
为什么被折叠?