稷然如此

  • 首页
  • 文章分类
    • AI
    • Android
    • Java
    • Shell
    • Vue
    • C#
    • Python
    • 数据库
    • 组件
    • 其他
    • Game
  • 常用命令
    • Docker
    • Git
    • Linux
  • 操作系统
    • CentOS
    • Ubuntu
    • Windows
    • Kylin
  • 工具
    • IntelliJ IDEA
    • Visual Studio Code
稷然如此
不积跬步,无以至千里
数据库

Mysql 批量插入的正确姿势

SqlSession session = sqlSessionFactory.openSession(ExecutorType.BATCH); try {     SimpleTableMapper mapper = session.getMapper(SimpleTableMapper.class);     List<SimpleTableRecord> records = getRecordsToInsert(); // not shown       BatchInsert<SimpleT…

2023年9月11日 1060点热度 0人点赞 Akim 阅读全文
CentOS

CentOS 转移磁盘空间

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…

2023年8月15日 1028点热度 0人点赞 Akim 阅读全文
Windows

Windows 批处理cmd/bat常用命令

回显命令 @ #关闭单行回显 echo off  #从下一行开始关闭回显 @echo off  #从本行开始关闭回显。一般批处理第一行都是这个 echo on #从下一行开始打开回显 echo #显示当前是 echo off 状态还是 echo on 状态 echo. #输出一个”回车换行”,空白行 #(同echo, echo; echo+ echo[ echo] echo/ echo) echo %errorlevel% 每个命令运行结束,可以用这个命令行格式查看返回码 默认值为0,一般命令执行出错会设 erro…

2023年8月2日 1459点热度 0人点赞 Akim 阅读全文
CentOS

Linux 安装 Mysql 8+

注意: 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…

2023年8月1日 1381点热度 0人点赞 Akim 阅读全文
CentOS

Linux 安装 Java JDK

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:$…

2023年8月1日 1526点热度 0人点赞 Akim 阅读全文
Docker

Docker 常用命令

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…

2023年7月25日 1338点热度 0人点赞 Akim 阅读全文
C#

Windows 注册系统服务

需求:在做程序接口需要托管至服务开机自启动、监听服务等功能的。 入口函数: using System; using System.Configuration.Install; using System.ServiceProcess; using System.Windows.Forms; namespace MailServerService { /// <summary> /// Application main class. /// </summary> public class Pro…

2023年7月17日 1234点热度 0人点赞 Akim 阅读全文
Android

ArcGis For Android 100.2.1 Error inflating class com.esri.arcgisruntime.mapping.view.MapView

异常内容: 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 …

2023年7月17日 1243点热度 1人点赞 Akim 阅读全文
C#

绘制开关按钮

[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…

2023年7月17日 1274点热度 0人点赞 Akim 阅读全文
C#

自动完成 TextBox 实现类似百度搜索框

public class AsSearchTextBox : TextBox { #region 字段 /// <summary> /// 列表框 /// </summary> private ListBox listBox; /// <summary> /// 记住前输入的字符串 /// </summary> private string oldText; /// <summary> /// 显示面板 /// </summary> priva…

2023年7月17日 1273点热度 0人点赞 Akim 阅读全文
1…89101112

Akim

犇 骉
Java、C#、Python、Go、Android、MiniProgram、Bootstrap、Vue2

Copyright © 2025 aianran.com All Rights Reserved.

免责申明 | 隐私政策 | 服务条款 | 关于我们

黔ICP备2023008200号-1

贵公网安备 52010202003594号