0
点赞
收藏
分享

微信扫一扫

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


原因是端口占用 解决方案1:

文件 application.properties 添加

# 端口号
server.port=8888

 

解决方案2:

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除自动配置
public class ErukaServerMain {
public static void main(String[] args) {
SpringApplication.run(ErukaServerMain.class,args);
}
}

 

 

解决方案3:

如果以上方法不行那就,将pom文件带有数据库相关的删除,例如:jdbc、mysql-connect等等

举报

相关推荐

0 条评论