1572662

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年12月8日

摘要: SpringMvc中想使用拦截器,主要分为两步: a、编写拦截器,需实现HandlerInterceptor接口 b、springmvc.xml中配置拦截器 逻辑图如下: 测试过程主要分为如下几步: 1、编写interceptorIndex.jsp 2、编写InterceptorController 阅读全文
posted @ 2019-12-08 18:17 1572662 阅读(227) 评论(0) 推荐(0)

摘要: 主要介绍三种文件上传的方式: 1、传统文件上传 a、form表单的enctype必须写成enctype="multipart/form-data" b、表达提交的方式必须是method="post" c、提供<input type="file"/><br/> d、提供commons-fileuplo 阅读全文
posted @ 2019-12-08 14:21 1572662 阅读(158) 评论(0) 推荐(0)