服务必须要配置数据源吗

Blade 未结 1 698
jdodo
jdodo 剑者 2021-04-02 16:19

一、去掉数据源的配置后报错

APPLICATION FAILED TO START

***************************


Description:


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.


Reason: Failed to determine suitable jdbc url



Action:


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

二、需要去掉哪些依赖呢?

1条回答
  • 引lanuch的依赖

    <dependency>

                <groupId>org.springblade</groupId>

                <artifactId>blade-core-launch</artifactId>

                <exclusions>

                    <exclusion>

                        <groupId>org.springframework.boot</groupId>

                        <artifactId>spring-boot-starter-web</artifactId>

                    </exclusion>

                    <exclusion>

                        <groupId>org.springframework.boot</groupId>

                        <artifactId>spring-boot-starter-undertow</artifactId>

                    </exclusion>

                </exclusions>

            </dependency>


    0 讨论(0)
提交回复