美文网首页
2020-10-27

2020-10-27

作者: JohnYuCN | 来源:发表于2020-10-27 16:14 被阅读0次

    pom.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
    
        <groupId>org.example</groupId>
        <artifactId>mybatis-demo</artifactId>
        <version>1.0-SNAPSHOT</version>
        <parent>
            <artifactId>spring-boot-parent</artifactId>
            <groupId>org.springframework.boot</groupId>
            <version>2.3.4.RELEASE</version>
        </parent>
        <dependencies>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
            </dependency>
            <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>mybatis-spring-boot-starter</artifactId>
                <version>2.1.3</version>
    <!--            <exclusions>-->
    <!--                <exclusion>-->
    <!--                    <groupId>org.mybatis</groupId>-->
    <!--                    <artifactId>mybatis</artifactId>-->
    <!--                </exclusion>-->
    <!--            </exclusions>-->
            </dependency>
    <!--        <dependency>-->
    <!--            <groupId>org.mybatis</groupId>-->
    <!--            <artifactId>mybatis</artifactId>-->
    <!--            <version>3.5.6</version>-->
    <!--        </dependency>-->
        </dependencies>
    
    </project>
    

    application.yml

    spring:
      datasource:
        driver-class-name: com.mysql.cj.jdbc.Driver
        url: jdbc:mysql://localhost:3308/test
        username: root
        password: 123
    

    相关文章

      网友评论

          本文标题:2020-10-27

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