报错Cannot determine embedded database driver class for database type NONE解决方法
由于我不需要数据库,启动springboot报错:
Cannot determine embedded database driver class for database type NONE
If you want an embedded database please put a supported one on the classpath.
If you have database settings to be loaded from a particular profile
you may need to active it (no profiles are currently active).
删掉pom里全部相关数据库的jar,也exclude相关DataSource的class,都不能解决,报错依旧。最后:
pom增加:
<dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId></dependency>
完整的:
<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-config</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-eureka</artifactId></dependency><!-- Cannot determine embedded database driver class for database type NONE 不需要调用数据源解决方法 --><dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId></dependency></dependencies>
注意:参考了以下网址方法,但并不能解决问题。
https://blog.csdn.net/hengyunabc/article/details/78762097
转载于:https://www.cnblogs.com/ouyida3/p/9744227.html
报错Cannot determine embedded database driver class for database type NONE解决方法相关推荐
- nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法
nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法 参考文章: (1 ...
- MyBatis多个接口参数报错:Available parameters are [0, 1, param1, param2], 及解决方法
MyBatis多个接口参数报错:Available parameters are [0, 1, param1, param2], 及解决方法 参考文章: (1)MyBatis多个接口参数报错:Avai ...
- 安装thinkphp 报错Could not find package topthink/think with stability stable.的解决方法
安装thinkphp执行命令 composer create-project topthink/think tp5 --prefer-dist 报错 [InvalidArgumentException ...
- MySQL无法启用/etc/my.cnf配置文件,重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
MySQL无法启用/etc/my.cnf配置文件,重启报错Warning: World-writable config file '/etc/my.cnf' is ignored的解决方法 问题分析 ...
- 【Keil MDK中工程报错Browse information of one of more files is not available解决方法】
[Keil MDK中工程报错Browse information of one of more files is not available解决方法] 今天在进行工程编写时,出现了这个错误Browse ...
- 【Git】Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法
Git commit至Gitee报错'remote: error: hook declined to update refs/heads/master'的解决方法 进入到Gitee的邮箱管理中,取消勾 ...
- 解决 springboot 启动报错 -- Cannot determine embedded database driver class for database type NONE
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 问题描述 我只是新建一个全新的 springboot 工程,什么都没有写的情况下启动报错如题: ...
- SpringBoot项目报错Cannot determine embedded database driver class for database type NONE
原因: Cannot determine embedded database driver class for database type NONE 这是因为spring boot默认会加载org.s ...
- 安装vite框架,报错“Cannot find module ‘./App.vue‘ or its corresponding type declaration” 问题解决方法
代码编辑器:vscode ,使用vue3,所以安装了 Volar 插件,可以使 vue 代码高亮显示,不同颜色区分代码块,以及语法错误提示等 提示:如果使用的是vue2,则使用 Vetur 插件:使用 ...
最新文章
- windows dos命令窗口的环境变量
- Windows10+PicGo+七牛云+Typora搭建写作环境与图床
- spring cloud 概念
- qq2440 cs8900移植
- AttributeError系列之:AttributeError: module 'scipy.misc' has no attribute 'imread'报错问题
- 如此理解面向对象编程
- linux如何全局搜索目录,Linux 全目录全文搜索
- 解决:阿里云ECS服务器 远程连接不上、极慢 (主机监控的实现)
- Python GUI界面编程初步 04 - Tkinter设计框架和概念
- Json解析工具Jackson(使用注解)
- JavaScript自适应图片大小的弹出窗口
- oracle alert.log查找,oracle alert.log位置
- linux shell ls -1 列显示文件
- mysql -e -f_twitter-不正确的字符串值:'\ xF0 \ x9F \ x8E \ xB6 \ xF0 \ x9F ...'MySQL
- java mov 转 mp4 视频格式
- chrome是什么?
- 【仿微信朋友圈时间,几天前,几分钟前,显示几周前】
- navicat 16安装 注册机path报错
- 微信小程序开发之webview组件内网页实现微信原生支付
- excel制作跨职能流程图_excel制作流程图的方法步骤图
热门文章
- 科技最前沿!Adobe提出自动生成高质量合成图像新方法
- java 抛出异常效率_Java异常处理机制
- 深度学习(三十)贪婪深度字典学习
- 深度学习(十九)基于空间金字塔池化的卷积神经网络物体检测
- (转)20个令人惊叹的深度学习应用
- 单用户修改root密码--Ubuntu 16.04.3 LTS
- csv python 图片 存_Python读取CSV文件并存储到MySQL
- httppostedfilebase.saveas后文件被占用_文件过多时ls命令为什么会卡住?
- deno mysql_从 Node 到 Deno
- java中 下列不合法的语句_在Java中,下列( )是不合法的赋值语句。_学小易找答案...