分三层写:养成一个架构的习惯,如何编写一个大型网站
DAO数据层
service业务层
servlet web表述层
转载于:https://www.cnblogs.com/snowwhite/p/4612174.html