上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页

Java 数组排序工具类

摘要: SortUtil: import java.util.Arrays;/** * @Author : JCccc * @CreateTime : 2020/2/01 * @Description : **/public class SortUtil { ... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(33) 评论(0) 推荐(0)

JS 生成表格后 ,中文显示乱码

摘要: 如: 解决方案: 1. 在引用的js的地方加上置顶字符编码, charset="UTF-8" 2. 在IDEA的tomcat配置里加上运行环境参数, -Dfile.encoding=UTF-8 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(57) 评论(0) 推荐(0)

JAVA Cookie 读写工具类

摘要: CookieUtil: public class CookieUtil { // 默认缓存时间,单位/秒, 2H private static final int COOKIE_MAX_AGE = 60 * 60 * 2; // 保存路径,根... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(62) 评论(0) 推荐(0)

JAVA 获取当天、昨天、当月、上个月 的开始和结束日期时间

摘要: DateUtil: import java.text.ParseException;import java.text.SimpleDateFormat;import java.time.Instant;import java.time.LocalDateT... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(1175) 评论(0) 推荐(0)

java.lang.UnsupportedOperationException: null 使用List.add() 报错

摘要: 还原现场: List agentTeamIdsList =Arrays.asList(agentIdArray); agentTeamIdsList.add(123011); 将一个Integer类型数组转成Lis... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(164) 评论(0) 推荐(0)

Java 将以逗号‘,’隔开的字符串String转换为Integer[] 数组

摘要: 这里不介绍遍历的方法,介绍的是使用这个提供的方法: org.apache.commons.beanutils.ConvertUtils 上代码: String arrayStr="1901,1902,1903,1094";Integer[] inte... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(29) 评论(0) 推荐(0)

Springboot 整合Mybatis 使用Mybatis-plus 敏捷开发

摘要: 简单说下,MyBatis-plus为我们提供了默认的增删改查和一些基础使用的条件查询等。 直接进入代码环节, pom.xml 的核心依赖包: org.springframework.boot s... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(47) 评论(0) 推荐(0)

Springboot 整合JWT (token)+mybatis+自定义注解 实现简单的登录拦截模块

摘要: 这个实例的登录模块大概简单包含以下三个小功能: 用户注册 用户输入帐号密码,后台使用Spring Security的BCryptPasswordEncoder 进行密码加密,存库。 用户登录 用户输入帐号密码,后台查库使用Spring Security的BCr... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(206) 评论(0) 推荐(0)

Springboot 连接Mysql ,yml文件中 密码带有特殊符号出错

摘要: 这种密码带有特殊符号,在启动项目的时候,读取yml配置会报错。解决方案: 带上单引号即可! 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(260) 评论(0) 推荐(0)

浅谈Spring Security的BCryptPasswordEncoder

摘要: 早些年,那会把一个老项目的登录模块重构,从Shiro转Spring Security,那时候快速换完后没多看,最近又在公司做类似同样的操作,给一个老项目加上Spring Security。所以我决定简单写点什么。 相信用过Spring Security的伙伴们... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(409) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页