摘要: //Itr是 ArrayList中的一个内部类 private class Itr implements Iterator<E> { int cursor; // index of next element to return 光标,表示是迭代器里面的那个指针,默认指向0索引的位置 int last 阅读全文
posted @ 2024-01-04 10:32 如夢初醒 阅读(69) 评论(0) 推荐(0)
摘要: Integer arr[] = {1, 21, 32, 4, 5, 6, 7, 8}; Arrays.sort(arr, new Comparator<Integer>(){ @Override public int compare(Integer o1, Integer o2) { return 阅读全文
posted @ 2024-01-03 16:50 如夢初醒 阅读(110) 评论(0) 推荐(0)
摘要: @EnableWebSecurity public class SecurityConfig { @Autowired private JwtAuthenticationTokenFilter jwtAuthenticationTokenFilter; @Bean public PasswordEn 阅读全文
posted @ 2023-02-03 16:05 如夢初醒 阅读(148) 评论(0) 推荐(0)
摘要: /* 把我们所有标签的内外边距清零 */ * { margin: 0; padding: 0; /* css3盒子模型 */ box-sizing: border-box; } /* em 和 i 斜体的文字不倾斜 */ em, i { font-style: normal } /* 去掉li 的小 阅读全文
posted @ 2023-01-12 12:07 如夢初醒 阅读(69) 评论(0) 推荐(0)
摘要: @Value() 直接使用注解赋值 @ConfigurationProperties() 注解引入yml文件配置实体类中的属性,注意:属性名字必须相同 没有默认为null 这里的名字和年龄相互对应 阅读全文
posted @ 2023-01-04 16:46 如夢初醒 阅读(221) 评论(0) 推荐(0)
摘要: 首先在实体类上添加注解 @Validated 在需要校验的字段上添加需要的注解 可能出现的错误 导入对应依赖可以解决 <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> 阅读全文
posted @ 2023-01-04 16:09 如夢初醒 阅读(59) 评论(0) 推荐(0)
摘要: 今天在写SQL语句时发现一个问题 select count(1) as count from smbms_bill b left join smbms_provider p on b.providerId = p.id and b.providerId = 2 and b.isPayment = 1 阅读全文
posted @ 2022-11-11 08:57 如夢初醒 阅读(179) 评论(0) 推荐(0)
摘要: 错误提示 Cause: org.apache.ibatis.binding.BindingException: Parameter 'id' not found. Available parameters are [arg1, arg0, param1, param2] 接口 和 对应的Mapper 阅读全文
posted @ 2022-11-10 21:46 如夢初醒 阅读(61) 评论(0) 推荐(0)