SqlSession session = sqlSessionFactory.openSession(ExecutorType.BATCH); try { SimpleTableMapper mapper = session.getMapper(SimpleTableMapper.class); List<SimpleTableRecord> records = getRecordsToInsert(); // not shown BatchInsert<SimpleT…
SqlSession session = sqlSessionFactory.openSession(ExecutorType.BATCH); try { SimpleTableMapper mapper = session.getMapper(SimpleTableMapper.class); List<SimpleTableRecord> records = getRecordsToInsert(); // not shown BatchInsert<SimpleT…
CentOS 将 centos-home 磁盘空间转移至 centos-root 下 cat /etc/redhat-release df -h 注意:要计算好移到root下的空间,后面还要再次新建home空间需要一定的空间。如:将30G转移到root下,预留8G新建给home。 提示:/dev/mapper/centos-root、/dev/mapper/centos-home在不同的机器上可能名字不一样,命令如果使用的目录名称不同时注意更换名称。 tar cvf /tmp/home.tar /home umou…
回显命令 @ #关闭单行回显 echo off #从下一行开始关闭回显 @echo off #从本行开始关闭回显。一般批处理第一行都是这个 echo on #从下一行开始打开回显 echo #显示当前是 echo off 状态还是 echo on 状态 echo. #输出一个”回车换行”,空白行 #(同echo, echo; echo+ echo[ echo] echo/ echo) echo %errorlevel% 每个命令运行结束,可以用这个命令行格式查看返回码 默认值为0,一般命令执行出错会设 erro…
注意: Kylin 是基于 CentOS 8 修改的,所以需要下载 Red Hat Enterprise Linux 8 / Oracle Linux 8 (x86, 64-bit), RPM Bundle 版本。 CentOS 7 就选 Red Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), RPM Bundle 官网下载地址:https://downloads.mysql.com/archives/community/ wget下载地址:wget h…
https://www.oracle.com/java/technologies/downloads/#java8 注意: CentOS 下载 x86 Compressed Archive 版本 KylinOS 下载 x64 Compressed Archive 版本 tar -zxvf jdk-8u333-linux-i586.tar.gz -C /opt vim /etc/profile 在文件末尾追加 export JAVA_HOME=/opt/jdk1.8.0_333 export PATH=$PATH:$…
docker ps docker inspect 容器ID | grep "IPAddress" docker images docker exec -it 容器id /bin/bash systemctl start docker systemctl stop docker docker rmi -f 镜像id docker rm -f 容器id docker restart 容器id docker commit -p 容器id 备份镜像名称,例:docker commit -p xxxx oooo docker…
需求:在做程序接口需要托管至服务开机自启动、监听服务等功能的。 入口函数: using System; using System.Configuration.Install; using System.ServiceProcess; using System.Windows.Forms; namespace MailServerService { /// <summary> /// Application main class. /// </summary> public class Pro…
异常内容: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.xxx.xxx, PID: 18070 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.xxx/com.xxx.xxx.activity.MapActivity}: android.view.InflateException: Binary XML file line #0: Binary XML …
[DefaultEvent("SwitchChanged")] public class SwitchBox : Control { public SwitchBox() { this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(Contro…
public class AsSearchTextBox : TextBox { #region 字段 /// <summary> /// 列表框 /// </summary> private ListBox listBox; /// <summary> /// 记住前输入的字符串 /// </summary> private string oldText; /// <summary> /// 显示面板 /// </summary> priva…

Akim
犇 骉
Java、C#、Python、Go、Android、MiniProgram、Bootstrap、Vue2
Copyright © 2025 aianran.com All Rights Reserved.