spring boot Failed to configure a DataSource: 'url' attribute is not specified and no embedded datas

***************************
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 a suitable driver class


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

 

参考:https://www.icode9.com/content-4-147497.html

spring boot Failed to configure a DataSource: 'url' attribute is not specified and no embedded datas

 

原因是问题4

<build>
        <resources>
           <!-- <resource>
                <directory>src/main/resources/*.*</directory>
            </resource>-->
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>

            <resource>
                <directory>src/main/java/com/ssm/jinxuebiaoweb/mapper</directory>
                <targetPath>com/ssm/jinxuebiaoweb/mapper</targetPath>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>