this project belongs to the practice of learning the SSH framework of Java Web, referring to the S truts2+spring+hibernate Framework Technology and project Combat Chapter 24th of this book. Of course part of the content I think there is still insufficient, so I based on their understanding of the optimization.
Note: The entire project has been open source, there is a need for source code research can be self-download:https://github.com/zifangsky/OnlineAuction
An entire project introduction
(1) Operation effect:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/DE/wKiom1bAkyzhbm0rAAGCz1TMcMI266.png "style=" float: none; "title=" 20160211225649_83131.png "alt=" Wkiom1bakyzhbm0raagcz1tmcmi266.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7A/DE/wKiom1bAkzGQ7ewZAAFUMFSP8Hk010.png "style=" float: none; "title=" 20160211225702_53901.png "alt=" Wkiom1bakzgq7ewzaafumfsp8hk010.png "/>
Note: Because the compiled item was deleted, the uploaded image was lost.
(2) Adoption of technology:
S Truts2+spring+hibernate+mysql5.x+proxool database Connection pool
(3) Main functions:
User: Registration, login, change password, logout
Products: Add new items, view in the shoot goods, bid
Bid record: Submit bid record, deal
Second optimization
(1) Remove a lot of redundant code
(2) Add a new product image upload and Product description information integrated in a page, the details can refer to my article: http://www.zifangsky.cn/2016/02/struts2 file Upload instance/
(3) Replace the logic tags in the Struts1 used in the original project with the popular JSTL tags, as detailed in this article:
http://www.zifangsky.cn/2016/02/replacing logic tags in struts1 with the JSTL tag library
(4) The use of Struts2 interceptors to achieve the rights control, some pages or operations need to verify login to continue, the details can refer to my article:
Http://www.zifangsky.cn/2016/02/struts2 using interceptors for permission control/
(5) Optimization of exception handling, the project in the course of operation if an exception will show a more friendly interface, details can refer to my article:
Http://www.zifangsky.cn/2016/02/struts2 exception Handling Instance/
This article is from "Zifangsky's personal blog" blog, make sure to keep this source http://983836259.blog.51cto.com/7311475/1741993
SSH Combat Project--Online commodity auction Network