摘要: 首先添加application文件static路径,我的是yml文件 spring: mvc: static-path-pattern: /static/**然后注册拦截器类如下方法; @Overridepublic void addResourceHandlers(ResourceHandlerR 阅读全文
posted @ 2018-12-06 15:08 _Lawrence 阅读(3446) 评论(0) 推荐(0) 编辑
摘要: package com.hcp.utils.config; import org.apache.commons.codec.digest.DigestUtils; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import 阅读全文
posted @ 2024-04-29 18:40 _Lawrence 阅读(6) 评论(0) 推荐(0) 编辑
摘要: package com.hcp.config.rsa; import org.bouncycastle.util.encoders.Base64; import javax.crypto.Cipher; import java.security.*; public class RsaUtil { / 阅读全文
posted @ 2024-04-29 17:52 _Lawrence 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.sudo passwd -u root 来启用我们的root账户 2.sudo passwd -root 来重新lock root用户 3.sudo passwd root 来修改密码 阅读全文
posted @ 2024-04-24 10:05 _Lawrence 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE your_table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; 阅读全文
posted @ 2024-03-28 11:37 _Lawrence 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //strs 周集合,例如 一、二、三、四、五、六 public static boolean isWeek(String strs){ Calendar calendar = Calendar.getInstance(); int dayOfWeek = calendar.get(Calendar 阅读全文
posted @ 2024-01-20 18:30 _Lawrence 阅读(13) 评论(0) 推荐(0) 编辑
摘要: SELECT id, SUBSTRING_INDEX(SUBSTRING_INDEX(uid, ',', n), ',', - 1) AS idFROM hd_check_plain, (SELECT @rownum := @rownum + 1 AS n FROM (SELECT @rownum 阅读全文
posted @ 2023-12-19 18:41 _Lawrence 阅读(14) 评论(0) 推荐(0) 编辑
摘要: CONCAT(SUBSTRING(MD5(UUID()),1,8),'-',SUBSTRING(MD5(UUID()),8,4),'-',SUBSTRING(MD5(UUID()),12,4),'-',SUBSTRING(MD5(UUID()),16,4),'-',SUBSTRING(MD5(UUI 阅读全文
posted @ 2023-11-24 11:23 _Lawrence 阅读(346) 评论(0) 推荐(0) 编辑
摘要: http://patorjk.com/software/taag/#p=display&h=0&f=3D-ASCII&t=LLF 阅读全文
posted @ 2023-11-23 11:09 _Lawrence 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 卸载 检查是否安装:dpkg --list | grep -i jdk 移除openjdk包:apt-get purge openjdk* 卸载OpenJDK相关包:apt-get purge icedtea-* openjdk_* 再次检查是否卸载成功:dpkg --list | grep -i 阅读全文
posted @ 2023-09-14 08:53 _Lawrence 阅读(32) 评论(0) 推荐(0) 编辑
摘要: git clone https://github.com/alibaba/nacos.git cd nacos/ mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U cd distribution/target/nacos-serv 阅读全文
posted @ 2023-09-14 08:36 _Lawrence 阅读(62) 评论(0) 推荐(0) 编辑