2018-05-15 18:30:33 +08:00
|
|
|
|
<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/maven-v4_0_0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>com.itstyle.seckill</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-seckill</artifactId>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2018-05-28 10:00:10 +08:00
|
|
|
|
<name>spring-boot-seckill</name>
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
<docker.image.prefix>springboot</docker.image.prefix>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
|
<version>1.5.10.RELEASE</version>
|
|
|
|
|
|
<relativePath/>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- 实现web功能 -->
|
|
|
|
|
|
<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>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>net.sourceforge.nekohtml</groupId>
|
|
|
|
|
|
<artifactId>nekohtml</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-redis</artifactId>
|
|
|
|
|
|
<version>1.4.7.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
2018-05-25 18:28:04 +08:00
|
|
|
|
<!-- freemarker 模版 生成静态页 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
|
|
|
|
|
</dependency>
|
2018-05-17 18:16:37 +08:00
|
|
|
|
<!-- spring-session -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.session</groupId>
|
|
|
|
|
|
<artifactId>spring-session</artifactId>
|
|
|
|
|
|
</dependency>
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<!-- 构建Restful API -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
|
|
|
<version>2.7.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
|
|
<version>2.7.0</version>
|
|
|
|
|
|
</dependency>
|
2018-06-07 09:09:15 +08:00
|
|
|
|
<!-- Redisson 实现分布式锁 -->
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.redisson</groupId>
|
|
|
|
|
|
<artifactId>redisson</artifactId>
|
|
|
|
|
|
<version>2.11.5</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
|
|
<version>3.7</version>
|
|
|
|
|
|
</dependency>
|
2018-06-07 09:09:15 +08:00
|
|
|
|
<!--kafka 支持-->
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.kafka</groupId>
|
|
|
|
|
|
<artifactId>spring-kafka</artifactId>
|
|
|
|
|
|
<version>1.3.5.RELEASE</version><!--$NO-MVN-MAN-VER$-->
|
|
|
|
|
|
</dependency>
|
2018-08-08 13:21:47 +08:00
|
|
|
|
<!-- zookeeper 分布式锁、注意zookeeper版本 这里对应的是3.4.6 参考:https://blog.52itstyle.com/archives/3202/ -->
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
|
|
<artifactId>curator-recipes</artifactId>
|
|
|
|
|
|
<version>2.10.0</version>
|
|
|
|
|
|
</dependency>
|
2018-05-22 19:22:06 +08:00
|
|
|
|
<!-- disruptor 高效队列-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.lmax</groupId>
|
|
|
|
|
|
<artifactId>disruptor</artifactId>
|
|
|
|
|
|
<version>3.4.1</version>
|
|
|
|
|
|
</dependency>
|
2018-05-29 17:59:22 +08:00
|
|
|
|
<!-- webSocket 秒杀通知-->
|
2018-05-29 17:57:27 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
|
|
|
</dependency>
|
2018-06-05 19:03:46 +08:00
|
|
|
|
<!-- guava 限流 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
|
|
<version>25.1-jre</version>
|
|
|
|
|
|
</dependency>
|
2018-09-12 18:03:26 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
|
|
<version>1.11</version><!--$NO-MVN-MAN-VER$-->
|
|
|
|
|
|
</dependency>
|
2018-09-14 17:55:13 +08:00
|
|
|
|
<!-- activemq -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-activemq</artifactId>
|
|
|
|
|
|
</dependency>
|
2018-09-27 17:56:08 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
|
|
<version>1.2.49</version>
|
|
|
|
|
|
</dependency>
|
2018-10-15 14:46:37 +08:00
|
|
|
|
<!-- 监控 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
|
</dependency>
|
2019-09-10 13:08:35 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.csp</groupId>
|
|
|
|
|
|
<artifactId>sentinel-core</artifactId>
|
|
|
|
|
|
<version>1.6.3</version>
|
|
|
|
|
|
</dependency>
|
2018-05-15 18:30:33 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
2020-01-17 21:37:59 +08:00
|
|
|
|
<finalName>spring-boot-seckill</finalName>
|
2018-05-15 18:30:33 +08:00
|
|
|
|
<!-- 打包项目 mvn clean package -->
|
2020-01-17 21:37:59 +08:00
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- mvn spring-boot:run 热部署启动 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
|
<artifactId>springloaded</artifactId>
|
|
|
|
|
|
<version>1.2.7.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
2018-06-05 12:29:46 +08:00
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2020-01-17 21:37:59 +08:00
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
<version>3.7.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<source>1.8</source>
|
|
|
|
|
|
<target>1.8</target>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
2018-05-15 18:30:33 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|