新建一个普通的maven工程 在pom.xml文件中引入相应的坐标 <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work fo
1,上传文件 public static String upload(MultipartFile file, SysUserBean sysUserBean, HttpServletRequest request){ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); Date date = new Date(); String path = request.getSession().getServletContext().