zoukankan      html  css  js  c++  java
  • DefaultHandlerExceptionResolver : Failed to convert request element: org.springframework.web.method.

    
    
    @Controller
    @OperateAction("F_SOFT")
    @RequestMapping(value = "/cm/soft/package")
    public class PkgPackageFileManualController {
    
        //========== manager ==========
    
        @Autowired
        private PkgPackageFileManualOperateManager pkgPackageFileManualOperateManager;
    
        /**  
         * 处理导入文件信息
         *  @param CommonsMultipartFile[]
         *  @return BaseResultVO
         */
        @RequestMapping(method = RequestMethod.POST, value = "/importFile")
        @ResponseBody
        @OperateAction("O_PACKAGE_FILE_CREATE")
        public BaseResultVO importFile(@RequestParam("file") CommonsMultipartFile[] fileList) {
    
            return JsonResultUtil.getResult(pkgPackageFileManualOperateManager.importFile(fileList));
        }
    }

    修改入参为MultipartFile

    @Controller
    @OperateAction("F_SOFT")
    @RequestMapping(value = "/cm/soft/package")
    public class PkgPackageFileManualController {
    
        //========== manager ==========
    
        @Autowired
        private PkgPackageFileManualOperateManager pkgPackageFileManualOperateManager;
    
        /**  
         * 处理导入文件信息
         *  @param CommonsMultipartFile[]
         *  @return BaseResultVO
         */
        @RequestMapping(method = RequestMethod.POST, value = "/importFile")
        @ResponseBody
        @OperateAction("O_PACKAGE_FILE_CREATE")
        public BaseResultVO importFile(@RequestParam("file") MultipartFile[] fileList) {
    
            return JsonResultUtil.getResult(pkgPackageFileManualOperateManager.importFile(fileList));
        }
    }
  • 相关阅读:
    OPENGL ES2.0如何不使用glActiveTexture而显示多个图片
    OpenGL帧缓存对象(FBO:Frame Buffer Object)
    EGLImage与纹理
    Android下Opengl ES实现单屏幕双眼显示
    comet4j开发指南
    tmp
    Ubuntu16.04下编译android6.0源码
    ubuntu下配置安装conky
    Qt编程之QImage类小结
    Linux学习,在线版
  • 原文地址:https://www.cnblogs.com/penggy/p/7475819.html
Copyright © 2011-2022 走看看