摘要: forEach - 遍历 Stream<Integer> stream = Stream.of(2, 3, 1, 4); stream.forEach(System.out::println); filter - 过滤 Stream<Integer> stream = Stream.of(2, 3, 阅读全文
posted @ 2023-12-25 11:27 itwetouch 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 优质开源项目收录 JApiDocs接口文档 git: https://github.com/YeDaxia/JApiDocs 文档: https://japidocs.agilestudio.cn/ 低代码 https://wwa.lanzoui.com/b0cwp2nte https://gith 阅读全文
posted @ 2022-05-18 19:06 itwetouch 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 本人即将推出Fabric教程,该教程基于Fabric1.4.1。课程会陆续上架各大云课堂。 简介 本课程首先会讲解区块链的相关概念。 接着教你Fabric的相关理论以及如何配置和部署Fabric网络。 然后教编写你Fabric智能合约以及如何使用Fabric的SDK。 最后提供了进阶篇来教你玩转Fa 阅读全文
posted @ 2020-01-09 17:54 itwetouch 阅读(1316) 评论(5) 推荐(0) 编辑
摘要: 后端依赖 当然,这里也可以自行实现,获取使用rsa+aes组合的方案来实现。 <dependency> <groupId>cn.shuibo</groupId> <artifactId>rsa-encrypt-body-spring-boot</artifactId> <version>1.0.1. 阅读全文
posted @ 2024-03-19 14:37 itwetouch 阅读(6) 评论(0) 推荐(0) 编辑
摘要: > 由于CUDA Version更新到11.7了,因此,本教程也同步更新 ## 安装Anaconda ### (1)首先打开Anaconda官网,下载对应平台的安装包 Anaconda官网 我们这里安装的包是Anaconda3-2022.10-Windows-x86_64.exe 然后,双击exe文 阅读全文
posted @ 2023-06-13 17:56 itwetouch 阅读(183) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_28906733/article/details/100528526 简介 机器学习在全球范围内越来越受欢迎和使用。 它已经彻底改变了某些应用程序的构建方式,并且可能会继续成为我们日常生活中一个巨大的(并且正在增加的)部分。 没有什么包装且机 阅读全文
posted @ 2023-05-10 11:33 itwetouch 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 前言 笔者在搭建tensorflow环境时遇到了很多问题,浪费了很多时间,为方便想学习机器学习的同学搭建tensorflow环境,笔者整理了一份教程供读者参考。 不能直接修改anaconda里的python版本了,另一种更简单的方法: Win10系统用anaconda新建一个tensorflow环境 阅读全文
posted @ 2023-05-10 11:25 itwetouch 阅读(27) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/laichj/article/details/129901356 背景 ChatGPT作为一种基于人工智能技术的自然语言处理工具,近期的热度直接沸腾。 作为一个程序员,我也忍不住做了一个基于ChatGPT的网站,免费!免登陆!!国内可直接对话ChatGPT 阅读全文
posted @ 2023-04-24 11:53 itwetouch 阅读(4494) 评论(0) 推荐(0) 编辑
摘要: 效果展示 背景 众所周知,Mybatis Plus 封装的 mapper 不支持 join,如果需要支持就必须自己去实现。但是对于大部分的业务场景来说,都需要多表 join,要不然就没必要采用关系型数据库了。 使用方法 仓库地址 https://gitee.com/best_handsome/myb 阅读全文
posted @ 2023-04-04 14:59 itwetouch 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 需要提前了解的知识点: JVM内存模型 JVM垃圾回收算法 下图是JVM内存区域划分的逻辑图 JVM内存区域逻辑图 从图中我们大概了解JVM相关的内存区域。 JVM内存包括区域 Heap(堆区): New Generation(新生代) Eden Survivor From Survivor To 阅读全文
posted @ 2023-03-24 16:41 itwetouch 阅读(474) 评论(0) 推荐(0) 编辑
摘要: java+jsencrypt前后端加解密(RSA) js 工具 js下载:https://nextcloud.itwetouch.com/s/RmAZEEZnJ89JRas 默认不支持前端公钥解密(通常公钥加密),此脚本已优化,使用encrypt.decryptByPub进行公钥解密 JSEncry 阅读全文
posted @ 2023-03-19 23:06 itwetouch 阅读(347) 评论(0) 推荐(0) 编辑
摘要: msys2-base安装make指令 msys2-base下载 安装选择默认路径即可 修改软件下载源 以记事本或者notepad++打开 将其中这两个地址,放到最上方,其他地址因为外网的原因下载可能会失败 #32的源地址文件 Server = https://mirrors.tuna.tsinghu 阅读全文
posted @ 2023-03-08 10:30 itwetouch 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Java分词器比较(ansj、hanlp、ik) 一、分词工具 ansj hanlp ik 分词准确性排行:hanlp > ansj > 结巴 > IK > Smart Chinese Analysis 二、优缺点 1.ansj 优点: 1. 提供多种分词方式 2. 可直接根据内部词库分出人名、机构 阅读全文
posted @ 2023-02-28 16:15 itwetouch 阅读(2564) 评论(0) 推荐(0) 编辑
摘要: GitLab 部署 下载地址:https://nextcloud.itwetouch.com/s/i53xoPmMWCP6fyb 安装docker和compose 执行初始化脚本 ./init_docker.sh 注意:给脚本添加执行权限 执行shell可能报错 执行.sh脚本时出现$’\r’: 未 阅读全文
posted @ 2023-02-27 23:58 itwetouch 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 原文链接: CSDN@qq_44885775#WebMagic WebMagic官网:Introduction · WebMagic Documents GitHub-WebMagic Introduction · WebMagic Documents 4.7 配置代理 · WebMagic Doc 阅读全文
posted @ 2023-02-27 15:50 itwetouch 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 线程池配置 package com.fast.boot.framework.config; import com.fast.boot.common.config.ThreadPoolProperties; import com.fast.boot.common.utils.ThreadsUtils; 阅读全文
posted @ 2023-02-08 17:26 itwetouch 阅读(109) 评论(0) 推荐(0) 编辑
摘要: JaCoCo介绍 一、JaCoCo简述 JaCoCo是一个开源的覆盖率工具,它针对的开发语言是java,其使用方法很灵活,可以嵌入到Ant、Maven中;可以作为Eclipse插件,可以使用其JavaAgent技术监控Java程序等等。 很多第三方的工具提供了对JaCoCo的集成,如sonar、Je 阅读全文
posted @ 2023-02-08 17:16 itwetouch 阅读(306) 评论(0) 推荐(0) 编辑
摘要: @Test public void testList() { List<String> list = new ArrayList<>(); list.add("1"); list.add("2"); for (String s : list) { if ("1".equals(s)) { list. 阅读全文
posted @ 2022-11-25 15:08 itwetouch 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location报错 解决 Vue 路由传递参数时,出现 Uncaught (in promise) NavigationDupli 阅读全文
posted @ 2022-11-10 15:39 itwetouch 阅读(346) 评论(0) 推荐(0) 编辑
摘要: window10永久关闭更新 一:本地组策略编辑器 另一种Win10关闭自动更新方法就是通过更改本地组策略编辑器中的“配置自动更新”和“删除使用所有Windows更新功能的访问权限”选项来关闭Win10自动更新。 1、按“Windows + R”键,打开运行对话框,并输入“gpedit.msc”,然 阅读全文
posted @ 2022-10-30 13:42 itwetouch 阅读(255) 评论(0) 推荐(0) 编辑
摘要: NVIDIA 显卡配置 1、图像锐化,画面更尖锐鲜明,开启后会画面失真,中低端建议关闭,高端随意 2、一般GPUs有一个选全部就好了 3、限制游戏帧数对于那些游戏帧数过高,电脑发热响声过大,可以选择显示器最大帧数,其他来堆画质就行 4、OpenGL渲染GPU,CPU性能低的话开启准没错,的CPU性能 阅读全文
posted @ 2022-10-30 13:40 itwetouch 阅读(960) 评论(0) 推荐(0) 编辑
摘要: Vscode插件推荐 主题/外观 Material Theme(集成了多种主题皮肤,搭配 Material Icon Theme 食用更佳) Material Icon Theme(扁平化的主题图标库) vscode-icons(VSCode官方出品的图标库) settings sync(同步所有设 阅读全文
posted @ 2022-10-30 13:39 itwetouch 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 参数校验 Java API规范(JSR303)定义了Bean校验的标准validation-api,但没有提供实现。hibernate validation是对这个规范的实现,并增加了校验注解如@Email、@Length等。 Spring Validation是对hibernate validat 阅读全文
posted @ 2022-07-20 15:34 itwetouch 阅读(628) 评论(0) 推荐(0) 编辑
摘要: Undertow Undertow 是红帽公司开发的一款基于 NIO 的高性能 Web 嵌入式服务器 Untertow 的特点: 轻量级:它是一个 Web 服务器,但不像传统的 Web 服务器有容器概念,它由两个核心 Jar 包组成,加载一个 Web 应用可以小于 10MB 内存 Servlet3. 阅读全文
posted @ 2022-07-14 10:53 itwetouch 阅读(1712) 评论(0) 推荐(0) 编辑
摘要: 常用正则匹配工具类 PatternConstant.java package com.base.common.constant; import org.apache.commons.lang3.StringUtils; import java.net.Inet6Address; import jav 阅读全文
posted @ 2022-07-08 17:06 itwetouch 阅读(645) 评论(0) 推荐(0) 编辑
摘要: @SuppressWarnings注解默认字符串有哪些? all to suppress all warnings boxing to suppress warnings relative to boxing/unboxing operations cast to suppress warnings 阅读全文
posted @ 2022-06-09 09:14 itwetouch 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Mock单元测试入门 Mock基础知识 什么是Mock Mock 是在测试过程中,对于一些不容易构造/获取的对象,创建一个Mock 对象来模拟对象的行为。Mock 最大的功能是帮你把单元测试进行解耦,如果你的代码对另一个类或者接口有依赖,它能够帮你模拟这些依赖,并帮你验证所调用的依赖的行为。 Moc 阅读全文
posted @ 2022-06-07 10:48 itwetouch 阅读(1285) 评论(0) 推荐(1) 编辑
摘要: mysql指令基操 登录 # mysql (-h)-u 用户名 -p 用户密码 # 输入以下指令,回车后输入密码 mysql -u root -p 增加用户 # grant 权限 on 数据库.* to 用户名@登录主机 identified by "密码" grant select,insert, 阅读全文
posted @ 2022-05-30 21:15 itwetouch 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 命令 SCAN cursor [MATCH pattern] [COUNT count] scan 0 MATCH key* COUNT 1 其他 SCAN 命令用于迭代当前数据库中的数据库键 SSCAN 命令用于迭代集合键(Set)中的元素 HSCAN 命令用于迭代哈希键(Hash)中的键值对 Z 阅读全文
posted @ 2022-05-27 14:42 itwetouch 阅读(33) 评论(0) 推荐(0) 编辑
摘要: java自定义sql占位符替换工具 PlaceholderParse /** * 自定义sql占位符替换工具 * * @author ming * @version 1.0.0 * @date 2022/5/25 16:40 **/ public class PlaceholderParse { p 阅读全文
posted @ 2022-05-27 10:49 itwetouch 阅读(811) 评论(0) 推荐(0) 编辑
摘要: CardDao.java import com.example.domain.card.Card; /** * 卡片 Dao接口 * * @author ming * @version 1.0.0 * @date 2022-05-20 11:23:01 **/ public interface Ca 阅读全文
posted @ 2022-05-24 15:42 itwetouch 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 使用SQL查询所有数据库名、表名和表字段名 MySQL中查询所有数据库名和表名 1.查询所有数据库 show databases; 2.查询指定数据库中所有表名 select table_name from information_schema.tables where table_schema=' 阅读全文
posted @ 2022-05-14 02:14 itwetouch 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: spring-boot日志框架漏洞修复 版本问题 低于2.6.2的版本都存在log4j注入漏洞 方案一Log4j2 排除spring-boot-starter中的默认logging依赖 <dependency> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2022-05-11 12:55 itwetouch 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Mybatis-plus配置逻辑删除 全局生效的逻辑删除配置 mybatis-plus: global-config: db-config: # 全局逻辑删除配置 logic-delete-field: valid # 全局逻辑删除的实体字段名 # 若逻辑已删除和未删除的值和默认值一样,则可以不配置 阅读全文
posted @ 2022-05-09 17:02 itwetouch 阅读(716) 评论(0) 推荐(0) 编辑
摘要: IntelliJ Idea 常用快捷键列表 持续更新 20220419 Ctrl Ctrl+H (项目内全文查找) Ctrl+D (删除一行) Ctrl+/ (单行注释) Ctrl+E (打开最近修改的文件) Ctrl+O (查看类结构) Ctrl+F (查找和替换) Ctrl+N (效果类似于右键 阅读全文
posted @ 2022-04-19 14:35 itwetouch 阅读(126) 评论(0) 推荐(0) 编辑
摘要: fastjson 处理代泛型的对象 json使用的是fastjson,json转换对象的时候,如果对象中存在泛型对象,则需要特殊处理下才能正常转换。 使用的是fastjson中的 例子: ResponseResult<List<User>> resp = JSON.parseObject(r, ne 阅读全文
posted @ 2022-04-19 11:29 itwetouch 阅读(174) 评论(0) 推荐(0) 编辑
摘要: B3log开源博客搭建 docker 安装 yum install docker-ce-17.12.1.ce docker-compose 安装 curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-com 阅读全文
posted @ 2022-04-17 11:16 itwetouch 阅读(132) 评论(0) 推荐(0) 编辑
摘要: NextCloud 安装Docker-compose 我当前的docker版本是: [root@localhost network-scripts]# docker -v Docker version 1.13.1, build 7d71120/1.13.1 curl -L https://gith 阅读全文
posted @ 2022-04-14 18:00 itwetouch 阅读(360) 评论(0) 推荐(0) 编辑
摘要: CentOS7.5常用应用安装 ifconfig yum install -y net-tools wget yum install -y wget git yum install -y git gcc yum install -y gcc 同步命令 yum install -y rsync htt 阅读全文
posted @ 2022-04-14 17:03 itwetouch 阅读(155) 评论(0) 推荐(0) 编辑
摘要: VirtualBox虚拟机网络配置 创建虚拟网络 一般按照VirtualBox之后默认有会有,ip:192.168.56.1 没有的话自行创建一个。 注意:与VirtualBox里面的虚拟网络ip保持一致。 这时候还不能访问以太网的,我们还需要将本机网络共享给VirtualBox虚拟网络。 设置虚拟 阅读全文
posted @ 2022-04-14 16:12 itwetouch 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 容器技术新起之秀Podman 来源:https://www.blog.csdn.net/qq_48289488/article/details/121905018 什么是Podman? Podman 是一个开源的容器运行时项目,可在大多数 Linux 平台上使用。Podman 提供与 Docker 阅读全文
posted @ 2022-04-14 13:39 itwetouch 阅读(306) 评论(0) 推荐(0) 编辑