欢迎来到我的个人博客!

总得写点什么吧

山不见我_我自去见山

May 10, 2025

1Panel 给Flarum 安装redis

不要用插件GB Redis Setup :composer require glowingblue/redis-setup,而用blomstra/flarum-redis并修改extend.php即可。 1Panel应用商店安装redis 安装扩展: composer require blomstra/flarum-redis 修改extend.php,文件管理器补齐return[],host和password修改为前面安装的redis容器名及密码: ...

April 16, 2025 · Leon

Oracle Cloud 安装1Panel

用ubuntu20.04,Ubuntu 20.04 Images参见: https://docs.oracle.com/en-us/iaas/images/ubuntu-2004/index.htm 开放所有端口,并关闭Iptable规则: iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F apt-get purge netfilter-persistent reboot

April 16, 2025 · Leon

sql server全库字段查询

有时忘记某个字段在数据库中的哪个表里了,可以利用syscolumns来进行查找。 select object_name(id) objName,Name as colName from syscolumns where (name like'%模糊被查找字段%') and id in(select id from sysobjects where xtype='u') order by objname;

August 13, 2024 · Leon

sql连接INNER JOIN ON查询

INNER JOIN 关键字在表中存在至少一个匹配时返回行。如果表中没有匹配,则不会列出这些行。 SELECT a.AAA,b.BBB,c.CCC,d.DDD,a.MT,a.AAB,a.AAC,a.AAD,f.FFF FROM tableA AS a INNER JOIN tableB AS b ON b.B_AAA = a.AAA INNER JOIN tableC AS c ON c.CCD = a.AAD INNER JOIN tableD AS d ON d.DDE = a.AAE INNER JOIN tableE AS e ON e.EEF = a.AAF INNER JOIN tableF AS f ON f.FFG = e.EEG WHERE a.AAA IN (XXX,YYY,ZZZ);

August 13, 2024 · Leon

Java HSSFCell.CELL_TYPE_ 更新为CellType.

错误原因:jar包版本更新,官方改动; 解决方法: 导入CellType包import org.apache.poi.ss.usermodel.CellType 使用CellType.STRING代替HSSFCell.CELL_TYPE_STRING if(cell==null||cell. Equals(null)||cell.getCellType()==CellType.BLANK){ value="null"; }else { //判断数据类型 switch (cell.getCellType()) { case FORMULA:value = "" + cell.getCellFormula(); break; case NUMERIC:value = "" + cell.getNumericCellValue(); break; case STRING:value = cell.getStringCellValue(); break; default: break; } } if(cell==null||cell.equals("")||cell.getCellType()==HSSFCell.CELL_TYPE_BLANK){ value="null"; }else { //判断数据类型 switch (cell.getCellType()) { case HSSFCell.CELL_TYPE_FORMULA:value = "" + cell.getCellFormula(); break; case HSSFCell.CELL_TYPE_NUMERIC:value = "" + cell.getNumericCellValue(); break; case HSSFCell.CELL_TYPE_STRING:value = cell.getStringCellValue(); break; default: break; } }

February 28, 2024 · Leon