新建Maven项目
1.maven-archetype-webapp
2.项目名
jp.trial.jg.master
jg.master
3.使用maven更新项目
工程规范
1.工程名
工程名全部小写
若由多级组成,中间以“-”分割
2.package目录
jp.trial.jg.master.action.module1
jp.trial.jg.master.action.module2
jp.trial.jg.master.dao
jp.trial.jg.master.dao.impl
jp.trial.jg.master.dao.mapper
jp.trial.jg.master.model
jp.trial.jg.master.service
jp.trial.jg.master.service.impl
package全部小写
3.Web目录
views目录,与Action目录模块完全对应
AddAction add.jsp
DetailAction detail.jsp
ListAction list.jsp
ReportAction report.jsp
jsp文件名全部小写
来源张永光的博客