摘要: 最近发现tomcat总是莫名崩溃,查看日志发现 catalina.out Jan 26, 2016 5:06:47 PM org.apache.coyote.ajp.AjpMessage processHeader SEVERE: Invalid message received with sign 阅读全文
posted @ 2020-10-12 10:23 iTachiLEe 阅读(1327) 评论(0) 推荐(0) 编辑
摘要: 使用windows版本的nginx启动时遇到(1113: No mapping for the Unicode character exists in the target multi-byte code page)这个错误 把nginx的版本升高了,依旧报错 发现是因为解压的路径里面包含有中文的缘 阅读全文
posted @ 2020-08-07 14:05 iTachiLEe 阅读(814) 评论(0) 推荐(1) 编辑
摘要: 八皇后问题 八皇后问题是一个以国际象棋为背景的问题:如何能够在8×8的国际象棋棋盘上放置八个皇后,使得任何一个皇后都无法直接吃掉其他的皇后?为了达到此目的,任两个皇后都不能处于同一条横行、纵行或斜线上。八皇后问题可以推广为更一般的n皇后摆放问题:这时棋盘的大小变为n×n,而皇后个数也变成n。当且仅当 阅读全文
posted @ 2020-08-06 11:56 iTachiLEe 阅读(759) 评论(0) 推荐(0) 编辑
摘要: jar 方式运行中文乱码 因为springboot默认使用的logback而不是log4j的原因,所以修改resource文件夹下的 logback-spring.xml文件,注释掉 <!-- <charset>UTF-8</charset> --> <!--1. 输出到控制台--> <append 阅读全文
posted @ 2020-08-06 11:36 iTachiLEe 阅读(7075) 评论(0) 推荐(1) 编辑
摘要: 闲来无事,不如试着用ruby刷刷题 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume 阅读全文
posted @ 2020-07-30 14:02 iTachiLEe 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Array#bsearch bsearch { |x| ... } -> object | nil bsearch -> Enumerator 基于块评估结果来判断范围中的每个元素,并且通过二进制搜索来搜索满足条件的值(计算量为O(log n))。如果找不到该元素,则返回nil。Array 必须事先 阅读全文
posted @ 2020-07-30 10:44 iTachiLEe 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 什么是Redis? 作为缓存系统而闻名,NoSQL之一 在NoSQL中,KVS(键值存储)。保存键/值组合。 数据类型的各种用途 字符串,列表,集合,排序集合,哈希 内存中的速度如此之快 持久性可以设置 单线 可能扩展 在哪里使用 当处理带有到期日期的数据(例如会话)时 处理需要运行繁重的SQL(例 阅读全文
posted @ 2020-07-27 15:31 iTachiLEe 阅读(331) 评论(0) 推荐(0) 编辑
摘要: public final class Integer extends Number implements Comparable<Integer> { /** * A constant holding the minimum value an {@code int} can * have, -2<su 阅读全文
posted @ 2020-07-23 15:45 iTachiLEe 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function clickEffect() { let balls = []; let longPressed = false; let longPress; let multiplier = 0; let width, height 阅读全文
posted @ 2020-07-18 13:12 iTachiLEe 阅读(702) 评论(1) 推荐(0) 编辑
摘要: public static void main(String[] args){ lableB: for(int i=0;i<10;i++){ lableA: for(int j=0;j<10;j++){ System.out.println(j); if(j==5){ break lableB; } 阅读全文
posted @ 2020-07-17 10:24 iTachiLEe 阅读(223) 评论(0) 推荐(0) 编辑