springmvc实现头像上传与头像展示(jsp)
使用头像上传功能完成注册
Controller层代码
public String ZC(String name, String phone, String username, String pwd, MultipartFile file)
throws IllegalStateException, IOException {
// 定义保存数据库的路径
String sqlpath = null;
// 定义文件保存的本地路径
String localPath = "D:\\xx
原创
2021-01-31 17:48:11 ·
1082 阅读 ·
0 评论