Login registration system based on Java Web+mysql

Source: Internet
Author: User
Tags naming convention java web

Pair programming Two-person project

Member: Wang Gang 029 Zifengxia 007

Project name: Login Registration system based on Java Web+mysql

Software Requirements:

1, any software based on B/S or C/s is inseparable from the basic login registration, we decided to use B/s structure +mysql database to complete the basic login registration function
2, using simple jsp+servlet+mysql to complete the login, registration function
3, login, registration interface information ECHO, data format verification function

Description

1, using MVC mode to reduce the coupling of the Code
Overall architecture:
>jsp displaying page and echo data
>servlet is responsible for handling data submitted by JSP
>service layer responsible for the implementation of business logic
The >DAO layer is responsible for the operation of the database
Encapsulation of >domain layer JavaBean objects
>util package, responsible for generating the image verification code, get the database connection
2, the difficulty encountered:
>1, generate a picture verification code
>2, to get a database connection by loading a configuration file


Part of the code and run:

Code prescriptive:
1, the use of MVC model of the software package hierarchy hierarchy of the division

2. Name of class, name of variable, name of method, name of constant

3, in order to understand the decoupling, the use of interface-oriented programming, as well as the use of configuration files to minimize the writing of the Code

4, naming convention: The first letter lowercase, followed by uppercase, indicating the specific meaning of the variable, can not be used pinyin

5, Indentation specification: 4 spaces

6, line width: Up to no more than 100 characters

7. Parentheses: The precedence of the logic is expressed in parentheses

8, the Annotation convention: The complex annotation puts in the function head, each quantity does what uses, uses what method, the annotation should use the ASCII character, but our level is not enough, uses the Chinese description

Time Record:

September 11 determine the topic of the pairing project

September 12, 13, 14th write the project code

September # 15, # 16th run on a virtual machine find code that has problems modifying code

September 17 run the software again on the virtual machine to find the error and then make the last modification run

September 18 Good Uploading code writing blog essays

Five, experience

1, through pairing programming, two people cooperate more skilled, can find their shortcomings, correction errors, in the case of technical complementarity, can greatly improve the efficiency of programming.

2, learned some of their own do not know the knowledge, has been valuable experience in cooperation.

3, two person cooperation can reduce the code review rate, when a person writes a piece of code, another person as a bystander is often more likely to find the problem.

Login registration system based on Java Web+mysql

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.