美文网首页
Cannot determine embedded databa

Cannot determine embedded databa

作者: lancelot123 | 来源:发表于2023-03-29 08:43 被阅读0次

APPLICATION FAILED TO START


Description:

Cannot determine embedded database driver class for database type NONE

Action:

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 (the profiles "dev" are currently active).

Disconnected from the target VM, address: '127.0.0.1:62270', transport: 'socket'

这个错误说的是,spring 定义了数据源的 bean,但没有配置 spring.datasource.url 之类的参数,所以加载数据源 bean 失败了
要处理有两种办法:

  1. 想办法让 spring 不要加载 datasource
  2. 配置一个 h2 内存数据库,假装有一个 datasource

相关文章

网友评论

      本文标题:Cannot determine embedded databa

      本文链接:https://www.haomeiwen.com/subject/carptdtx.html