摘要: 因为Spring-Security从4+升级到5+,导致There is no PasswordEncoder mapped for the id “null”错误。 解决方案: 1.可在密码验证类中添加 @Bean public static NoOpPasswordEncoder passwor 阅读全文
posted @ 2019-12-22 19:40 素颜~ 阅读(1229) 评论(0) 推荐(0)
摘要: count(1),其实就是计算一共有多少符合条件的行。 1并不是表示第一个字段,而是表示一个固定值。 其实就可以想成表中有这么一个字段,这个字段就是固定值1,count(1),就是计算一共有多少个1. 同理,count(2),也可以,得到的值完全一样,count('x'),count('y')都是可 阅读全文
posted @ 2019-12-21 10:46 素颜~ 阅读(1166) 评论(0) 推荐(0)
摘要: /** * @author: Administrator * @date: 2019/12/20 0020 * 汉诺塔 * @param 'n' 共有n个盘子 * @param 'from' 开始的柱子 * @param 'in' 中间的柱子 * @param 'to' 目标柱子 * 无论有多少盘子 阅读全文
posted @ 2019-12-20 17:22 素颜~ 阅读(108) 评论(0) 推荐(0)
摘要: /** * @author: Administrator * @date: 2019/12/20 0020 * todo 斐波那契数列:1 1 2 3 5 8 13 ... */ public class febonacci { public static void main(String[] ar 阅读全文
posted @ 2019-12-20 16:05 素颜~ 阅读(205) 评论(1) 推荐(0)
摘要: 表名和字段 –1.学生表 Student(s_id,s_name,s_birth,s_sex) –学生编号,学生姓名, 出生年月,学生性别 –2.课程表 Course(c_id,c_name,t_id) – –课程编号, 课程名称, 教师编号 –3.教师表 Teacher(t_id,t_name) 阅读全文
posted @ 2019-12-13 20:12 素颜~ 阅读(718) 评论(2) 推荐(0)
摘要: 步骤1 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <group 阅读全文
posted @ 2019-12-12 19:28 素颜~ 阅读(3594) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class ScannerTest { public static void main(String[] args) { //身高未知,采用键盘录入实现。首先导包,然后创建对象。 Scanner sc = new Scanner(Sy 阅读全文
posted @ 2019-12-12 15:22 素颜~ 阅读(161) 评论(0) 推荐(0)