Cannot determine embedded database driver class for database type NONE

@[TOC](Cannot determine embedded database driver class for database type NONE)

1
2
// 就是这个地方多加了一个这个
<packaging>pom</packaging>

导致了报错,去看编译后的文件,也找不到对应的问题.
起初以为是yml的问题,最后我又自己敲代码,注意了yml的格式后,转念一想如果是yml文件里面有问题也应该是报错是报的是yml,而不是下面这个错误

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
rror starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-09-17 10:01:51.242 ERROR 11060 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

***************************
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 (no profiles are currently active).


Process finished with exit code 0

packaging:打包类型,默认是jar,可以配置成war、zip、pom类型。

POM是最简单的打包类型。不像一个JAR,SAR,或者EAR,它生成的构件只是它本身。

没有代码需要测试或者编译,也没有资源需要处理。打包类型为POM的项目的默认目标

生命周期阶段 目标

package site:attach-descriptor

install install:install

deploy deploy:deploy
简单来说pom 项目里没有java代码,也不执行任何代码,只是为了聚合工程或传递依赖用的。

总结:心平气和,Peace!