project description
This was a group project during practical training in college. I was mainly responsible for framework construction and back-end implementation, and also involved some front-end page design. This article is mainly a practical record, so that I can review it later, and also share my own project development process. I hope it can help novices like me. If there are any errors in the article, I hope someone can point them out. Thank you. .
- JDK version: 1.7
- Database: MySQL
- Framework: Spring + SpringMVC + MyBatis
- Server: Tomcat
- Development tools: MyEclipse 10
The second-hand goods trading platform is a second-hand goods trading platform for campus use. It provides an e-commerce channel between individuals. Users are both buyers and sellers. In the platform, users can publish their own idle second-hand items, browse idle product information on campus, search for the products they want to buy, and purchase idle products from other sellers. After confirming the purchase of the product, the seller's contact will be obtained in the order. Information, communicate privately with the seller to complete the transaction.
This project is a platform for students on campus to facilitate students to obtain information about idle items around them. All transactions are conducted independently by students. This product does not bear corresponding legal liability.
Project preview
User page
Login page
This is the user login interface. The administrator login page is entered from the lower left link of the login button.
Registration page
Website homepage
Product page
Product details page
After purchasing, contact the seller by yourself according to the contact information in the order. The two parties will trade privately, and the platform will not transfer funds. This can effectively avoid the problem of product inconsistency with the actual product.
Product release page
My release page
Product information modification page
My order page
Modify password page
Modify personal information page
Admin page
Administrator home page
Product management page
Product details page
There is no purchase button on the administrator's product details page.
User management page
Project Development
maven dependency
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.4</version>
</dependency>
<!-- Mysql的驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
<!-- dbcp坐标 -->
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<!-- aspectj坐标 -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.7.1</version>
</dependency>
<!-- SpringMVC坐标 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<!-- Spring坐标 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<!-- mybatis坐标 -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.1.1</version>
</dependency>
<!-- Spring整合mybatis坐标 -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.annotation</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.ejb</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-osgi-bundle</artifactId>
<version>1.0.1-SP3</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0.1</version>
</dependency>
<!-- whl -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.41</version>
</dependency>
Framework construction
We use the SSM framework and the specific construction method. I also studied it for a while on CSDN at that time. Here is a link to learn: SSM framework construction learning .
JSP
The page display is there, and it doesn’t require any advanced front-end development skills. Basically, you can write it just like a cat with some HTML, CSS, and JS. If you haven't learned much about HTML, you can just search for some related tutorials on CSDN and learn it. I won't go into details here. You can also write JSP test pages instead of CSS style files. As long as they can be tested and run.