If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
最近学习用springboot使用hsqldb时,碰到了这个问题,
在网上找了好多方法,大多都是这个解决办法:
方法一.
把启动注解改成:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
有很多小伙伴都改成功了,但我却出现了这个问题
方法二.(我的解决办法)
修改pom文件中的hsqldb依赖
最终问题解决了,但我不知道原因是什么,只要hsqldb这个依赖加版本号就出问题,
我理解的是,加了版本号,就会自动扫描你的url和driver-name,而我使用的这个hsqldb用的是Memory-only模式,即用即装,不需要配置url和dirver-name
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.相关推荐
- 【Java】If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
出现这个问题说明数据库你并没有配置,因此它使用了默认的数据库H2,但是由于你的项目其实已经引入了其他类型的数据库,比如我项目用的就是mysql数据库,然后我也对mysql数据库进行了配置. 但是很明显 ...
- SpringBoot启动错误 If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
需要在pom文件中<build></build中添加如下.来保证文件都能正常被扫描到并且加载成功. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉 ...
- SpringBoot报错:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
一.Source roots (or source folders)通过这个类指定一个文件夹,你告诉IntelliJ IDEA,这个文件夹及其子文件夹中包含的源代码,可以编译为构建过程的一部分.2. ...
- 解决Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), ple..
问题 springboot异常Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), ...
- Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the
在配置sharding-jdbc中 spring.shardingsphere.datasource.names=ds0,ds1spring.shardingsphere.datasource.ds0 ...
- bug---springboot报错Consider the following: If you want an embedded database (H2, HSQL
错误描述 Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please pu ...
- spring中使用内存数据库(Embedded database)
内存数据库(Embedded database或in-momery database)具有配置简单.启动速度快.尤其是其可测试性等优点,使其成为开发过程中非常有用的轻量级数据库.在spring中支持H ...
- SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Ha
前言 mysql 5.7 ssm 前两天遇到了这个异常,记录一下: [INFO][2019-10-06 02:03:39,268][org.springframework.beans.factory. ...
- 报错Cannot determine embedded database driver class for database type NONE解决方法
由于我不需要数据库,启动springboot报错: Cannot determine embedded database driver class for database type NONE If ...
最新文章
- Angular http跨域
- 2020诺奖预测出炉!一位华人学者入选
- leetcode算法题--数字序列中某一位的数字
- 移动端布局三种视口_移动端适配之视口和meta标签
- POJ_1062_(dijkstra)
- 5 点击图换下一张_如何制作一张高点击率主图
- 马尔可夫链与隐马尔可夫模型
- [嵌入式linux]RTL8111/RTL8168网卡内核驱动安装
- python中tab键_python中tab键指的是什么意思
- Word里一级标题里页眉很近
- Python数据分析 找出数组中每行(或每列)中指定的百分位数 numpy.percentile()
- java计算机毕业设计ssm社区团购系统13kbd(附源码、数据库)
- [体感游戏]关于体感游戏的一些思考(一)--- 开篇和“随身”物件
- centos-sftp
- jquery slideToggle 动画问题
- PHP 获取本月与上个月的第一天和最后一天
- 使用Marked库出现bug:Uncaught TypeError: marked is not a function at <anonymous>:1:14
- (Easyx联合c++的通讯录系统)续
- Linux sed实战(MarkDown版本)
- 液晶面板价格上涨,中国面板获益巨大,对中国制造产生深远影响