摘要: 登录 DAO 层 构建实体 数据库中有表login_ticket。因此构建实体LoginTicket在entity包下。属性一一对应。get。set。toString方法 public class LoginTicket { private int id; private int userId; p 阅读全文
posted @ 2021-05-31 19:50 白清欢 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: Kaptcha导入jar包 编写Kaptcha配置类,在Config包下(配置图片长宽、字的个数、范围、颜色、干扰的点、线) @Configuration public class KaptchaConfig { @Bean public Producer kaptchaProducer (){ / 阅读全文
posted @ 2021-05-31 11:29 白清欢 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Cookie 新建cookie对象,初始化必须有参数 Cookie cookie = new Cookie("name","value"); 都是String类型 设置路径生效范围 cookie.setPath("path") 设置生存时间(s) cookie.setMaxAge(10) 发送 re 阅读全文
posted @ 2021-05-30 21:40 白清欢 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 邮箱设置:启用客户端SMTP服务 开启邮箱中的POP3/SMTP服务 Spring Email 导入jar包:mvnrepository.com 搜 spring mail。在pom.xml中添加 Spring Boot Starter Mail 依赖。 邮箱参数配置:(application.pr 阅读全文
posted @ 2021-05-27 20:01 白清欢 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 项目调试 响应状态码的含义 https://developer.mozilla.org/zh-CN/ 200 请求成功 302 重定向(低耦合进行功能跳转) 404 请求失败(一般是路径错误) 500 服务器不知道如何处理 服务端断点调试技巧 打断点 F7进入代码 F8 向下执行一步 F9 继续执行 阅读全文
posted @ 2021-05-26 16:38 白清欢 阅读(165) 评论(0) 推荐(0) 编辑
摘要: (一)DAO定义Mapper (Mybatis中的三步走) 实体类entity包下 package com.myproject.community.entity; import java.util.Date; public class DiscussPost { private int id; pr 阅读全文
posted @ 2021-05-22 09:42 白清欢 阅读(111) 评论(0) 推荐(0) 编辑
摘要: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were f 阅读全文
posted @ 2021-05-19 20:00 白清欢 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 210. 课程表 II 拓扑排序, BFS 对于入度为0的节点入队列。 出栈时,记录,将对应的节点入度减一。 判断出栈的节点是否是全部节点。 public int[] findOrder(int numCourses, int[][] prerequisites) { int[] input = n 阅读全文
posted @ 2021-05-19 16:37 白清欢 阅读(46) 评论(0) 推荐(0) 编辑
摘要: << 表示左移移,不分正负数,低位补0; >> 表示右移,如果该数为正,则高位补0,若为负数,则高位补1; >>> 表示无符号右移,也叫逻辑右移,即若该数为正,则高位补0,而若该数为负数,则右移后高位同样补0 阅读全文
posted @ 2021-05-19 16:30 白清欢 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 下载安装MySQL(详情) 登录 mysql -uroot -p 初始化数据库 create database community; 显示数据库 show database; 使用数据库 use community; 初始化表格使用脚本 source D:/source/init_schema.sq 阅读全文
posted @ 2021-05-19 15:29 白清欢 阅读(67) 评论(0) 推荐(0) 编辑