zoukankan      html  css  js  c++  java
  • spring boot集成mybatis需要的相关依赖

    <dependencies>
            <!-- 单元测试 -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <scope>test</scope>
            </dependency>
            <!-- springboot对面向切面编程的支持,包括spring-aop和aspectj -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-aop</artifactId>
            </dependency>
            <!-- 通过spring-rabbit来支持AMQP协议 -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-amqp</artifactId>
            </dependency>
            <!-- 对全栈web开发的支持,包括tomcat和spring-webmvc -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
                <!-- TODO 发布生产的时候需要将此段放开 -->
                <!-- <exclusions> -->
                <!-- <exclusion> -->
                <!-- <groupId>org.springframework.boot</groupId> -->
                <!-- <artifactId>spring-boot-starter-tomcat</artifactId> -->
                <!-- </exclusion> -->
                <!-- </exclusions> -->
            </dependency>
            <!-- 支持常规的测试依赖,包括junit,hamcrest.mockito以及spring-test -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
            </dependency>
            <!-- 生产准备的特征,用于帮你监控和管理应用 -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-actuator</artifactId>
            </dependency>
         <!--核心spring boot starter,包括自动配置支持,日志和YAML -->
         <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
            </dependency>
         <!--对jdbc数据库的支持 -->
         <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>spring-boot-starter-jdbc</artifactId>
            </dependency>
         <!--对spring-security的支持 -->
         <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>spring-boot-starter-security</artifactId>
            </dependency>
         <!--对spring-redis的支持 ,支持Redis键值存储数据库-->
         <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>spring-boot-starter-redis</artifactId>
            </dependency>
            <!-- mybatis -->
            <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>mybatis-spring-boot-starter</artifactId>
                <version>1.1.1</version>
            </dependency>
            <!-- MYSQL -->
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
                <version>1.2.30</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
                <version>1.0.24</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-validator</artifactId>
                <version>5.3.1.Final</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>commons-httpclient</groupId>
                <artifactId>commons-httpclient</artifactId>
                <version>3.1</version>
            </dependency>
            <!--pagehelper -->
            <!-- <dependency>
                <groupId>com.github.pagehelper</groupId>
                <artifactId>pagehelper-spring-boot-starter</artifactId>
                <version>1.1.1</version>
            </dependency> -->
            <dependency>
                  <groupId>com.github.pagehelper</groupId>
                  <artifactId>pagehelper</artifactId>
                 <version>4.1.6</version>
             </dependency>
            
        </dependencies>
  • 相关阅读:
    centons 7 清机 脚本
    LNMP 一键安装脚本
    mysql 命令
    docker 命令笔记
    zabbix agent 编译安装
    zabbix 用Telegram报警!!!
    如果你也用过 struts2.简单介绍下 springMVC 和 struts2 的区别有哪些
    @RequestMapping 注解用在类上面有什么作用
    什么是 MyBatis
    Mybatis 动态 sql 是做什么的?都有哪些动态 sql?能简述一下动态 sql 的执行原理不
  • 原文地址:https://www.cnblogs.com/huqin/p/7462618.html
Copyright © 2011-2022 走看看