- <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>
- com.jt
- </groupId>
- <artifactId>
- jt
- </artifactId>
- <version>
- 0.0.1-SNAPSHOT
- </version>
- <packaging>
- pom
- </packaging>
- <parent>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-parent
- </artifactId>
- <version>
- 2.1.9.RELEASE
- </version>
- <relativePath />
- <!-- lookup parent from repository -->
- </parent>
- <properties>
- <java.version>
- 1.8
- </java.version>
- </properties>
- <dependencies>
- <!--springBoot 动态的引入 springMVC 全部的配置 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-web
- </artifactId>
- </dependency>
- <!-- 引入 aop 支持 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-aop
- </artifactId>
- </dependency>
- <!-- 引入测试类 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-test
- </artifactId>
- <scope>
- test
- </scope>
- </dependency>
- <!-- 添加属性注入依赖 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-configuration-processor
- </artifactId>
- <optional>
- true
- </optional>
- </dependency>
- <!-- 支持热部署 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-devtools
- </artifactId>
- </dependency>
- <!-- 引入插件 lombok 自动的 set/get / 构造方法插件 -->
- <dependency>
- <groupId>
- org.projectlombok
- </groupId>
- <artifactId>
- lombok
- </artifactId>
- </dependency>
- <!-- 引入数据库驱动 -->
- <dependency>
- <groupId>
- MySQL
- </groupId>
- <artifactId>
- MySQL-connector-java
- </artifactId>
- <version>
- 5.1.32
- </version>
- <scope>
- runtime
- </scope>
- </dependency>
- <!--springBoot 数据库连接 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-jdbc
- </artifactId>
- </dependency>
- <!--spring 整合 mybatis-plus -->
- <dependency>
- <groupId>
- com.baomidou
- </groupId>
- <artifactId>
- mybatis-plus-boot-starter
- </artifactId>
- <version>
- 3.2.0
- </version>
- </dependency>
- <!--spring 整合 redis -->
- <dependency>
- <groupId>
- Redis.clients
- </groupId>
- <artifactId>
- jedis
- </artifactId>
- </dependency>
- <dependency>
- <groupId>
- org.springframework.data
- </groupId>
- <artifactId>
- spring-data-Redis
- </artifactId>
- </dependency>
- <!--springBoot 整合 JSP 添加依赖 -->
- <!--servlet 依赖 注意与 eureka 整合时的问题 -->
- <dependency>
- <groupId>
- javax.servlet
- </groupId>
- <artifactId>
- javax.servlet-API
- </artifactId>
- </dependency>
- <!--jstl 依赖 -->
- <dependency>
- <groupId>
- javax.servlet
- </groupId>
- <artifactId>
- jstl
- </artifactId>
- </dependency>
- <!-- 使 jsp 页面生效 -->
- <dependency>
- <groupId>
- org.apache.tomcat.embed
- </groupId>
- <artifactId>
- tomcat-embed-jasper
- </artifactId>
- </dependency>
- <!-- 添加 httpClient jar 包 -->
- <dependency>
- <groupId>
- org.apache.httpcomponents
- </groupId>
- <artifactId>
- httpclient
- </artifactId>
- </dependency>
- <!-- 引入 dubbo 配置 -->
- <!--<dependency>
- <groupId>com.alibaba.boot</groupId>
- <artifactId>dubbo-spring-boot-starter</artifactId>
- <version>0.2.0</version>
- </dependency>-->
- <!-- 添加 Quartz 的支持 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-quartz
- </artifactId>
- </dependency>
- </dependencies>
- <!-- 父级项目中 不要添加插件 -->
- <modules>
- <module>
- jt-common
- </module>
- <module>
- jt-manage
- </module>
- <module>
- jt-Web
- </module>
- </modules>
- </project>
来源: http://www.bubuko.com/infodetail-3330166.html