那就要修复这个问题,对于乱码问题,本质原因就一个:字节流解码为字符串时,使用了错误的字符集(和编码所用字符集不一致)! 我们来到tomcat目录的conf子目录中,找到一个名为 "logging.properties" 的文件,打开这个文本文件,找到如下配置项: java.util.logging. ...
分类:
其他好文 时间:
2021-05-24 16:56:19
阅读次数:
0
vim DockerfileFROM centos:7 MAINTAINER Liuliubin ADD ./apache-tomcat-7.0.99.tar.gz /root ADD ./jdk-7u80-linux-x64.tar.gz /root ENV JAVA_HOME /root/jdk ...
分类:
其他好文 时间:
2021-05-24 16:54:55
阅读次数:
0
https://blog.csdn.net/weixin_44882864/article/details/102958973 https://blog.csdn.net/weixin_43078114/article/details/103511970 ...
分类:
其他好文 时间:
2021-05-24 16:51:49
阅读次数:
0
问题 nginx日志默认记录在一个文件access.log中,时间长了会导致日志文件特别大,甚至磁盘占满。 解决方案 使用以下方法,将access.log文件每天一个,然后清过15天以前的文件。 方法 创建clearNginxLog.sh文件 #!/bin/bash LOG_PATH="/data/ ...
分类:
其他好文 时间:
2021-05-24 16:43:57
阅读次数:
0
数组去重不仅在工作中经常使用,也会在面试中经常问到,现在有几种常用的方法: 比如要将数组去重: const arr = [1, 2, 3, "1", 2, undefined, undefined, "undefined", NaN, NaN]; 方法一: 直接通过indexOf 或者 includ ...
分类:
编程语言 时间:
2021-05-24 16:35:21
阅读次数:
0
一.GridView 在控制器 public function actionIndex() { $query = User::find(); $pages = new Pagination(['totalCount' =>$query->count()]); $dataProvider = new ...
分类:
其他好文 时间:
2021-05-24 16:31:36
阅读次数:
0
for循环中使用retun后会直接中断后面的代码执行,类似于map等es6数组方法retun后不会影响,只测试了map,其它未知 item.employeeList.map(item=>{ if(avatorList.length>3) return //////此处中断,依旧会输出111 if(i ...
分类:
其他好文 时间:
2021-05-24 16:17:18
阅读次数:
0
安装教程: https://www.cnblogs.com/laumians-notes/p/9069498.html https://blog.csdn.net/weixin_42869365/article/details/83472466 启动 net start mysql 登录 (1234 ...
分类:
数据库 时间:
2021-05-24 16:08:31
阅读次数:
0
Maven测试Mybatis出现Could not find resource报错 1.注意Mybatis核心文件的编写 官网 <mappers> <mapper resource="org/mybatis/example/BlogMapper.xml"/> </mappers> 改写成自己 <ma ...
分类:
其他好文 时间:
2021-05-24 16:01:13
阅读次数:
0
环境:Ubuntu16.04 jdk8 doris编译: ## 1. 开启```bashdocker run -d -it \--name doris \--net=host \-v /volume1/doris/incubator-doris:/root/incubator-doris/ apac ...
分类:
其他好文 时间:
2021-05-24 15:57:19
阅读次数:
0