摘要: <!DOCTYPE html> <html> <style> p.dashed{border-style:dashed; border-width: 5px;} .solid {border-style: solid; border-width: 10px;border-color:red; tex 阅读全文
posted @ 2023-01-13 10:17 幸福眼泪 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 安装配置我在linux服务器部署kafka时,创建一个topic总会报这个错 使用命令 ./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic hotite 阅读全文
posted @ 2022-11-09 10:38 幸福眼泪 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 以上图为例;like '%${status}%' 这种写法容易sql注入攻击。应改为 like concat('%',#{status},'%'); 阅读全文
posted @ 2022-11-01 16:32 幸福眼泪 阅读(82) 评论(0) 推荐(0) 编辑
摘要: centOS7设置固定ip 参考资料地址:centOS7虚拟机设置固定IP 和https://www.cnblogs.com/lyn8100/p/16152251.html 1 设置虚拟机连接方式 按照如下图设置 2.配置虚拟机的NAT模式具体地址参数: (1)编辑--虚拟网络编辑器--更改设置 2 阅读全文
posted @ 2022-10-28 11:07 幸福眼泪 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 本文所用到的是kafka_2.12-2.0.0.tgz,zookeeper-3.4.13.tar.gz 下载:https://archive.apache.org/dist/zookeeper/zookeeper-3.4.13/ https://kafka.apache.org/downloads 阅读全文
posted @ 2022-10-19 17:28 幸福眼泪 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 执行以下命令即可: yum -y install wgetyum -y install setupyum -y install perl 阅读全文
posted @ 2022-09-28 11:17 幸福眼泪 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 在Centos linux 6及以前的版本,操控防火墙用的命令是iptables,但在Centos linux 7 及其以后的版本,操控防火墙的命令变化了,现在用firewall-cmd这个命令来操作防火墙了,现记录如下 一、开放端口用 --add-port firewall-cmd --zone= 阅读全文
posted @ 2022-09-28 09:03 幸福眼泪 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 引用于:https://www.cnblogs.com/kaka/archive/2013/03/06/2945514.html 比较的是四种复制的方式,分别为Apache的BeanUtils和PropertyUtils,Spring的BeanUtils,Cglib的BeanCopier。做法是在E 阅读全文
posted @ 2022-09-07 09:43 幸福眼泪 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 如果请求参数json 1.以@RequestParam接收 @PostMapping("ccc1") public String ccc1(@RequestParam("name") String name) { return name; } 2.以实体类方式接收 @PostMapping("ccc 阅读全文
posted @ 2022-07-27 17:25 幸福眼泪 阅读(3087) 评论(0) 推荐(0) 编辑
摘要: 目录 方式一:通过继承Thread类的方式 方式二:通过实现Runnable接口的方式 方式三:通过实现Callable接口的方式 方式四:通过线程池的方式 对于start()方法的解释 方式一:通过继承Thread类的方式步骤: 1.创建类继承Thread类 2.重写Thread类中的run()方 阅读全文
posted @ 2022-07-14 15:05 幸福眼泪 阅读(1239) 评论(0) 推荐(0) 编辑