摘要: 文件上传 UploadUtils: package com.lyc.utils; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; import 阅读全文
posted @ 2021-06-22 14:16 liuyunche 阅读(41) 评论(0) 推荐(0) 编辑
摘要: gitee 提交项目 初始化 git init 每执行一步都可以查看状态,会提示后续该怎么做 git status 把要提交的项目文件添加到区域内 .表示目录下的所有文件 git add . 提交到本地仓库 git commit -m '自己的描述' 提交到远程仓库 git remote add o 阅读全文
posted @ 2021-06-16 16:25 liuyunche 阅读(66) 评论(0) 推荐(0) 编辑
摘要: SSM分页查询功能 看一下web.xml里配置是什么版本(这里为4.0) <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www. 阅读全文
posted @ 2021-05-20 11:49 liuyunche 阅读(640) 评论(0) 推荐(0) 编辑
摘要: SSM 管理员删除功能 mapper层:AdminMapper public interface AdminMapper { //根据id删除 int remove(Integer id); } mapper层:AdminMapper.xml <?xml version="1.0" encoding 阅读全文
posted @ 2021-05-20 11:20 liuyunche 阅读(260) 评论(0) 推荐(0) 编辑
摘要: SSM整合 管理员登录功能(密码加密功能) MD5加密类 /** * 对明文字符串进行md5加密 * @param source 传入的字符串 * @return 加密的结果 */ public static String md5(String source) { // 1.判断source是否有效 阅读全文
posted @ 2021-05-14 15:47 liuyunche 阅读(916) 评论(0) 推荐(0) 编辑
摘要: SSM整合项目 MD5加密工具类 com.lyc.util.CrowdUtil.java public class CrowdUtil { /** * 对明文字符串进行md5加密 * @param source 传入的字符串 * @return 加密的结果 */ public static Stri 阅读全文
posted @ 2021-05-12 09:58 liuyunche 阅读(294) 评论(0) 推荐(1) 编辑
摘要: Ajax发送复杂对象(用到实体类) pojo代码: Student:(学生类) package com.lyc.pojo; import lombok.Data; import java.util.List; import java.util.Map; @Data public class Stud 阅读全文
posted @ 2021-05-10 14:21 liuyunche 阅读(89) 评论(0) 推荐(0) 编辑
摘要: SSM环境中 Ajax 发送简单数组 第一种方法(不推荐) jsp代码: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <!doctype html> <html lang="zh-CN"> <head> <met 阅读全文
posted @ 2021-05-10 11:43 liuyunche 阅读(162) 评论(0) 推荐(0) 编辑
摘要: User package com.lyc.pojo; import lombok.Data; @Data public class User { private int id; private String count; private String password; } UserMapper p 阅读全文
posted @ 2021-04-26 15:50 liuyunche 阅读(174) 评论(0) 推荐(0) 编辑
摘要: User类 package com.lyc.pojo; import lombok.Data; @Data public class User { private int id; private String count; private String password; } UserMapper 阅读全文
posted @ 2021-04-26 15:39 liuyunche 阅读(354) 评论(0) 推荐(0) 编辑