配置web.xml文件:
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
openSessionInView
org.springframework.orm.hibernate5.support.OpenSessionInViewFilter
openSessionInView
/*
contextConfigLocation
classpath:applicationContext.xml
org.springframework.web.context.ContextLoaderListener
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
struts2
/*
REQUEST
FORWARD
配置struts.xml文件:
/WEB-INF/pages/{1}/{2}.jsp
配置applicationContext.xml(spring配置文件):
org.hibernate.dialect.MySQL5Dialect
true
true
classpath:com/xushuai/bos/entity/*.xml
下一步:创建项目目录结构
实体层:com.xushuai.bos.entity
持久层:com.xushuai.bos.dao.impl
逻辑层:com.xushuai.bos.service.impl
web层:com.xushuai.bos.web.action
com.xushuai.bos.web.interceptor
com.xushuai.bos.web.listener
com.xushuai.bos.web.filter
将页面原型导入 src/main/webapp 下