摘要: 使spring IOC容器来管理Struts2的Action 首先加入struts2和spring需要的jar包,然后在加入struts-spring-plugin的jar文件。 在src路径下创建spring的核心配置文件applicationContext.xml和struts的核心配置文件st 阅读全文
posted @ 2018-01-17 18:49 森宇旅人 阅读(62) 评论(0) 推荐(0)
摘要: struts2实现文件上传 需要导入的jar包 commons-io commons-fileupload 需要使用FileUpload拦截器 表单中首先注意:form中声明 enctype="multipart/form-data" method="post" 在后台的action中声明三个参数 阅读全文
posted @ 2018-01-16 22:57 森宇旅人 阅读(100) 评论(0) 推荐(0)