Consider the following:
		If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
		If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

在网上查找了很多相关的解答,基本上都是误人子弟
最终研究结果表明配置文件的问题
一定要在pom.xml的配置文件中添加yml文件或者properties文件的引入

  <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>

关注我的公众号SpaceObj 领取idea系列激活码

posted on 2023-05-11 09:49  张伯灵  阅读(618)  评论(0编辑  收藏  举报