SSM之秒杀系统

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSM之秒杀系统相关的知识,希望对你有一定的参考价值。

利用idea搭建SSM框架,主要利用Maven仓库下载相应的jar包,以下是相关的pom.xml

  1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3   <modelVersion>4.0.0</modelVersion>
  4   <groupId>org.seckill</groupId>
  5   <artifactId>seckill</artifactId>
  6   <packaging>war</packaging>
  7   <version>1.0-SNAPSHOT</version>
  8   <name>seckill Maven Webapp</name>
  9   <url>http://maven.apache.org</url>
 10   <dependencies>
 11     <dependency>
 12       <!-- 使用Junit 4注解-->
 13       <groupId>junit</groupId>
 14       <artifactId>junit</artifactId>
 15       <version>4.11</version>
 16       <scope>test</scope>
 17     </dependency>
 18 
 19     <!--1.日志  slf4j,log4j.logback-->
 20 
 21     <dependency>
 22       <groupId>org.slf4j</groupId>
 23       <artifactId>slf4j-api</artifactId>
 24       <version>1.7.12</version>
 25     </dependency>
 26     <dependency>
 27       <groupId>ch.qos.logback</groupId>
 28       <artifactId>logback-classic</artifactId>
 29       <version>1.1.1</version>
 30     </dependency>
 31     <!--2.数据库依赖-->
 32 
 33     <dependency>
 34       <groupId>mysql</groupId>
 35       <artifactId>mysql-connector-java</artifactId>
 36       <version>5.1.35</version>
 37       <scope>runtime</scope>
 38     </dependency>
 39     <dependency>
 40       <groupId>c3p0</groupId>
 41       <artifactId>c3p0</artifactId>
 42       <version>0.9.1.2</version>
 43     </dependency>
 44 
 45     <!---3.DAO Mybatis-->
 46     <dependency>
 47       <groupId>org.mybatis</groupId>
 48       <artifactId>mybatis</artifactId>
 49       <version>3.3.0</version>
 50     </dependency>
 51     <!--mybatis自身实现与spring整合-->
 52     <dependency>
 53       <groupId>org.mybatis</groupId>
 54       <artifactId>mybatis-spring</artifactId>
 55       <version>1.2.3</version>
 56     </dependency>
 57     <!--  Spring jdbc-->
 58     <dependency>
 59       <groupId>org.springframework</groupId>
 60       <artifactId>spring-jdbc</artifactId>
 61       <version>4.1.7.RELEASE</version>
 62     </dependency>
 63 
 64     <!-- Servlet web依赖-->
 65     <dependency>
 66       <groupId>taglibs</groupId>
 67       <artifactId>standard</artifactId>
 68       <version>1.1.2</version>
 69     </dependency>
 70 
 71     <dependency>
 72       <groupId>jstl</groupId>
 73       <artifactId>jstl</artifactId>
 74       <version>1.2</version>
 75     </dependency>
 76 
 77     <dependency>
 78       <groupId>com.fasterxml.jackson.core</groupId>
 79       <artifactId>jackson-databind</artifactId>
 80       <version>2.5.4</version>
 81     </dependency>
 82 
 83     <dependency>
 84       <groupId>javax.servlet</groupId>
 85       <artifactId>javax.servlet-api</artifactId>
 86       <version>3.1.0</version>
 87     </dependency>
 88 
 89     <!--4.Spring依赖-->
 90     <dependency>
 91       <groupId>org.springframework</groupId>
 92       <artifactId>spring-core</artifactId>
 93       <version>4.1.7.RELEASE</version>
 94     </dependency>
 95     <dependency>
 96       <groupId>org.springframework</groupId>
 97       <artifactId>spring-beans</artifactId>
 98       <version>4.1.7.RELEASE</version>
 99     </dependency>
100     <dependency>
101       <groupId>org.springframework</groupId>
102       <artifactId>spring-context</artifactId>
103       <version>4.1.7.RELEASE</version>
104     </dependency>
105     <!--spring dao-->
106     <dependency>
107       <groupId>org.springframework</groupId>
108       <artifactId>spring-tx</artifactId>
109       <version>4.1.7.RELEASE</version>
110     </dependency>
111     <dependency>
112       <groupId>org.springframework</groupId>
113       <artifactId>spring-jdbc</artifactId>
114       <version>4.1.7.RELEASE</version>
115     </dependency>
116     <!--spring web-->
117     <dependency>
118       <groupId>org.springframework</groupId>
119       <artifactId>spring-web</artifactId>
120       <version>4.1.7.RELEASE</version>
121     </dependency>
122     <dependency>
123       <groupId>org.springframework</groupId>
124       <artifactId>spring-webmvc</artifactId>
125       <version>4.1.7.RELEASE</version>
126     </dependency>
127     <!--spring test -->
128     <dependency>
129       <groupId>org.springframework</groupId>
130       <artifactId>spring-test</artifactId>
131       <version>4.1.7.RELEASE</version>
132     </dependency>
133 
134     <!-- Redis 客户端 Jedis-->
135     <dependency>
136       <groupId>redis.clients</groupId>
137       <artifactId>jedis</artifactId>
138       <version>2.7.3</version>
139     </dependency>
140     <!-- protostuff 序列化依赖 -->
141     <dependency>
142       <groupId>com.dyuproject.protostuff</groupId>
143       <artifactId>protostuff-core</artifactId>
144       <version>1.0.8</version>
145     </dependency>
146     <dependency>
147       <groupId>com.dyuproject.protostuff</groupId>
148       <artifactId>protostuff-runtime</artifactId>
149       <version>1.0.8</version>
150     </dependency>
151     <dependency>
152       <groupId>commons-collections</groupId>
153       <artifactId>commons-collections</artifactId>
154       <version>3.2</version>
155     </dependency>
156   </dependencies>
157   <build>
158     <finalName>seckill</finalName>
159   </build>
160 </project>

以上是关于SSM之秒杀系统的主要内容,如果未能解决你的问题,请参考以下文章

java初探之秒杀的安全

JAVA秒会技术之秒杀面试官秒杀Java面试官——集合篇

Redis之秒杀下单优化以及认识redis消息队列

Redis之秒杀下单优化以及认识redis消息队列

Docker篇之秒杀项目环境部署

Docker篇之秒杀项目环境部署