Development environment configuration documentation
1. Techniques, tools:
Ant1.6.2 (Project Management) Eclipse2.1.2 (Development Code Tool) JUnit 2.1.1 (Code Test Tool) JDK1.4.2 (JVM) Struts1.1 (Web MVC) EJB2.0 (Business Layer Logic) ) Hibernate2.1.2 (solid layer) DAO (Separate display and logic layer) JBoss3.2.5 (middleware) log4j1.2.8 (log record) 2. Environment configuration method: a. Install JDK1.4.2 and Ant1.6.2 The corresponding compressed package is extracted to the corresponding directory, usually use / usr / local / *. Set the corresponding environment variable. B. Install Eclipse2.1.2 to extract the corresponding compressed package to the corresponding directory, usually used / opt / * [Note] Eclipse integrates junit c. Install Eclipse plugin Easystruts0.6.4 (support struts) tanghan1.0 (support hibernate) Lomboz2.1.6 (support J2EE) Configuration: http://www.bcxy.com/java/eclipsej2ee. HTM D. Installing JBoss3.2.5 Unfaming the corresponding compressed package to the corresponding directory, usually using / usr / local / *. Specific J2EE configuration: http://www.bcxy.com/server/tomcatjboss.htm e. Configure log4j1 .2.8 Specific configuration: http://www.bcxy.com/java/log.htm 3. Design of the development environment:
a. Develop directory design, write project management profile. (Set Directory / OPT / BCXY) b. System architecture design. Analyze business logic, convert each business operation into EJB method. Chemical, specific to each operation in DAO. Substation Application Hibernate and Database Mapping. DAO Pack all database table operations. Strtus is used to decompose business processes, display relevant prompts and error messages. Summary: Try to indicate the separation of layers, business logic layers, and physical layers. Specifically, the abnormalities are particularly separated, and the abnormality is encapsulated to the business layer. 4. Code development method:
a. Set the development of Eclipse to the project's development directory (/ OPT / BCXY) b. Learn to use Eclipse and related plugins. Attachment:
Shopping Cart and Purchase Process Analysis (Part) a. List Display Shopping Cart Information Recommended CART Table, obtained according to UID, pay attention to whether to register users. B. Display the payment list show the shopping cart information. C. Add shopping cart involved in the CART table, depending on the UID, the product ID is obtained, you need to check the stock. D. Check the stock E. Update the shopping cart involve the CART table, obtain the number of multiple commodities to modify the number and check the stock according to the UID, product ID and quantity. f. Delete Shopping Cart Table, according to the UID, the product ID gets g. Clear shopping cart h. View purchase record involved in the Shoplog table and Card table, according to the UID, register if there is a registered user-related code is sorting if there is anything Question, contact me: Webmaster@bcxy.comezerg programming