摘要: 今天测试项目上线,其中有这样一个功能点:上传ppt转为图片。但是却出现了乱码,刚开始怀疑是系统编码的问题,但是: echo $LANG 发现是utf-8,好像没什么问题,继续查找程序中的日志信息,发现从ppt中取出来的内容没有乱码,查看代码发现是生成图片时使用宋体字,猜测是字体没有安装。 于是通过: 阅读全文
posted @ 2023-06-16 17:39 海冠军 阅读(393) 评论(0) 推荐(0) 编辑
摘要: select * from user order by CONVERT ( name USING gbk ) COLLATE gbk_chinese_ci 阅读全文
posted @ 2023-05-11 16:11 海冠军 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Arthas 它是什么? Arthas 是Alibaba开源的Java诊断工具,深受开发者喜爱。 它能解决什么问题? 我想看一下jvm当前的运行状态,怎么看? 系统CPU跑到300%,怎么定位问题? 接口频繁超时,如何精准定位问题? 如何查看当前正在执行的源码? 小程序对接,看不到接口的返回值,怎么 阅读全文
posted @ 2021-06-27 10:39 海冠军 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: 一 安装前准备 1、检查是否已经安装过mysql,执行命令 rpm -qa | grep mysql 2、查询所有Mysql对应的文件夹 [root@localhost /]# whereis mysqlmysql: /usr/bin/mysql /usr/local/mysql[root@loca 阅读全文
posted @ 2021-01-30 23:48 海冠军 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 一.创建并移动到下载文件夹: mkdir /usr/local/tomcatcd /usr/local/tomcat 二.使用wget指令下载: wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.23/bin/apache-tomca 阅读全文
posted @ 2021-01-30 15:50 海冠军 阅读(65) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;import java.util.stream.Collectors;import java.util.stream.Stream; public class Controller { private static List<Person> init(){ Li 阅读全文
posted @ 2021-01-16 17:30 海冠军 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 错误信息: The last packet successfully received from the server was 35,270,650 milliseconds ago. The last packet sent successfully to the server was 1 mil 阅读全文
posted @ 2020-08-24 16:45 海冠军 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 今天 在 build 一个 project 的时候,没编译成功,报了 “Error:Kotlin: Output directory not specified for Module 'xxx' production” 的提示 前几天都还运行得好好的,今天出现了这么奇怪的问题,一开始以为是新增的文件 阅读全文
posted @ 2020-05-06 10:35 海冠军 阅读(2998) 评论(0) 推荐(0) 编辑
摘要: 一、iptables防火墙1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 阅读全文
posted @ 2020-03-27 18:43 海冠军 阅读(3538) 评论(0) 推荐(0) 编辑
摘要: springboot启动后,一直停留在log页面,无任何错误信息 解决方式: 在maven里先clear,然后重新insert一下,问题解决 阅读全文
posted @ 2020-03-04 00:59 海冠军 阅读(1503) 评论(0) 推荐(0) 编辑