1. 程式人生 > >spring boot集成mybatis需要的相關依賴

spring boot集成mybatis需要的相關依賴

web開發 connect 生產 cnblogs span amqp actuator 應用 vax

<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>

spring boot集成mybatis需要的相關依賴