SpringBoot 2.1.1.RELEASE 整合MyBatis

renke發表於2021-09-09


SpringBoot 2.1.1.RELEASE 整合MyBatis

maven工程:

詳細配置見:

pom.xml

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="" xmlns:xsi=""

xsi:schemaLocation=" ">;

<modelVersion>4.0.0</modelVersion>

<parent>

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

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

<version>2.1.1.RELEASE</version>

<relativePath/> <!-- lookup parent from repository -->

</parent>

<groupId>cn.qchcloud</groupId>

<artifactId>iot</artifactId>

<version>0.0.1-SNAPSHOT</version>

<packaging>jar</packaging>

<name>iot</name>

<description>iot project for Spring Boot</description>

<properties>

    <java.version>1.8</java.version>

    <mybatis.spring.boot.starter.version>1.3.2</mybatis.spring.boot.starter.version>

</properties>

<dependencies>

    <dependency>

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

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

    </dependency>

    <dependency>

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

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

    </dependency>

    <dependency>

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

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

        <scope>test</scope>

    </dependency>

    <dependency>

        <groupId>mysql</groupId>

        <artifactId>mysql-connector-java</artifactId>

    </dependency>

    <dependency>

        <groupId>org.mybatis.spring.boot</groupId>

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

        <version>${mybatis.spring.boot.starter.version}</version>

    </dependency>

    <dependency>

<groupId>com.google.collections</groupId>

<artifactId>google-collections</artifactId>

<version>1.0-rc2</version>

</dependency>

</dependencies>

<build>

    <plugins>

        <plugin>

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

            <artifactId>spring-boot-maven-plugin</artifactId>

        </plugin>

    </plugins>

</build>

</project>

©著作權歸作者所有:來自51CTO部落格作者qchcloud的原創作品,如需轉載,請註明出處,否則將追究法律責任


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/430/viewspace-2819477/,如需轉載,請註明出處,否則將追究法律責任。

相關文章