随笔分类 - 实战类
摘要:题目:一个学生集合,假设姓名和生日相同,就算是同一个人,需将其过滤,如何实现? import java.util.*; import java.util.stream.Collectors; public class StudentMethod { public static void main(S
阅读全文
摘要:实体类 package loop; public class UserInfo { private String id; private String name; private String schoolId; private String schoolName; public String ge
阅读全文
摘要:一、方法 package redis; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.data.redis.core.RedisTemplate; import org.spri
阅读全文
摘要:一、指定时间(2022-02-01) select date_format(date_add(date_add('2022-02-01', interval -11 month), interval row month),'%Y-%m') yearMonth from ( select @row :
阅读全文
摘要:-- 如果已存在先删除存储过程 DROP PROCEDURE IF EXISTS `ADD_CUSTOMERS_DATA` -- 创建存储过程 DELIMITER // CREATE PROCEDURE `ADD_CUSTOMERS_DATA`(IN flag int(1)) BEGIN if fl
阅读全文
摘要:1、用阿里定制的cnpm命令代替默认的npm npm install -g cnpm --registry=https://registry.npm.taobao.org 2、检查是否安装成功 cnpm -v
阅读全文
摘要:为父类添加一个伪类:after <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <style> #father { border: 1px red solid; }
阅读全文
摘要:import java.util.ArrayList; import java.util.List; import static java.util.stream.Collectors.toList; public class DemoStream { // 新插入的集合元素(newlist)中,如
阅读全文
摘要:在导出EXECL表格的时候报: java.lang.NoClassDefFoundError: org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream 原因是:版本在5.1.0的时候导出EXECL会出错,报加载不到当前类 <d
阅读全文
摘要:import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; /** * 根据序列号加密生产4*4的密码 */ public cla
阅读全文
摘要:import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; /** * 加密、解密 */ public class Encrypt
阅读全文
摘要:正序: select t1.business_title,t1.create_at from t_business_info t1 order by convert(t1.business_title using gbk) asc 倒序 select t1.business_title,t1.cre
阅读全文
摘要:查看当前jar包进程 ps -ef | grep SmartradioAndvillageproject_server-0.0.1-SNAPSHOT.jar 杀死当前进程 kill -9 进程号 指定启动时的内存大小 nohup java -jar -server -Xms512m -Xmx1024
阅读全文
摘要:apache commons工具类库 Maven依赖: <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.12.0</version> </depe
阅读全文
摘要:业务需求:电话号码相同的,根据时间取最新一条数据 select * from b_guest_info a where create_at = (select max(create_at) from b_guest_info b where a.mobile = b.mobile) order by
阅读全文
摘要:实际开发中遇见v-html中绑定的点击事件无效 主要代码如下: vue中代码 /*@autor:dantaxiaozi @time:2021/4/28 @desc: 解决v-html中点击事件无效的方法*/ <template> <div id="announcementList"> <div cl
阅读全文
摘要:package com.ndsoft.single; import com.alibaba.fastjson.JSON; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util
阅读全文
摘要:import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class TestList { public static void main(String[] args) { // 正常的创建的
阅读全文
摘要:import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import java.util.ArrayList; import ja
阅读全文
摘要:一、创建表后,自行录入数据。 -- 创建表order_info DROP TABLE IF EXISTS `order_info`; CREATE TABLE `order_info` ( `orderInfoId` bigint(20) NOT NULL AUTO_INCREMENT, `exte
阅读全文

浙公网安备 33010602011771号