自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

JustTryIT

做更好的自己

  • 博客(64)
  • 资源 (2)
  • 收藏
  • 关注

原创 windows系统C盘爆满,系统文件异常大处理

windows系统C盘爆满,系统文件异常大处理,重新建立系统索引关系,释放空间

2023-05-15 11:19:20 409

原创 word工具栏菜单栏隐藏打开的办法

windows中打开“开始”--“运行”键入“winword /a”,然后“确定”,即可恢复默认工具栏,重新打开文档

2022-03-30 11:54:15 955

原创 DataX :文本文件 -> mysql 的使用及安装教程

DataX安装环境准备:jdk1.6以上python2.0DataX安装:1.官网下载

2021-06-02 17:35:21 417

原创 linux环境下python2安装教程

1.官网下载安装包https://www.python.org/downloads/release

2021-06-02 16:15:56 8025 3

原创 hive 设置环境变量的方法总结

Hive提供三种可以改变环境变量的方法:1.配置文件:修改${HIVE_HOME}/conf/hive-site.xml配置文件; 在Hive中,所有的默认配置都在${HIVE_HOME}/conf/hive-default.xml文件中,如果需要对默认的配置进行修改,可以创建一个hive-site.xml文件,放在${HIVE_HOME}/conf目录下。里面可以对一些配置进行个性化设定...

2020-02-19 14:02:47 4896

原创 hive 参数设置

命令行模式,或者说目录模式,可以使用hive 执行命令。选项说明: -e : 执行短命令 -f : 执行文件(适合脚本封装) -S : 安静模式,不显示MR的运行过程 -hivevar : 用于定义hive运行时的变量替换 ,专门提供给用户自定义变量。 -hiveconf : 用于定义hive执行时的属性,即配置参数,可覆盖hive-site.xml中配置的hive全...

2020-02-19 13:44:24 291

原创 DOS和UNIX文本文件之间相互转换

1、安装小工具yum install dos2unixyum install unix2dos单个文件: dos2unix file.txt unix2dos file.txt批量文件: 批量文件转换:进入需要转换的文件夹执行 ...

2020-02-19 09:09:02 299

原创 PAT1005 Spell It Right

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.math.BigInteger;public class Main { public static void main(String[] args) throws IOExc...

2020-01-22 09:50:20 142

原创 PAT1002 A+B for Polynomials

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.ArrayList;import java.util.Collections;import java.util.HashMap;import java.util.List;...

2020-01-20 14:30:21 122

原创 PAT1001 A+B Format

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws IOException { BufferedRea...

2020-01-20 14:29:01 234

原创 kafka启动报错failed to map 1073741824 bytes for committing reserved memory

kafka启动./bin/kafka-server-start.sh config/server.properties报错:failed to map 1073741824 bytes for committing reserved memory服务器内存不够,无法分配内存.1. 查看服务器空闲内存多少 free -h2. 修改kafka启动文件bin/kafka-server-s...

2020-01-16 16:32:37 1175

原创 logstash用shell脚本启动报could not find java; set JAVA_HOME

Linux下shell脚本启动logstash报错could not find java; set JAVA_HOME:1. 首先要保证jdk已安装并配置环境变量,验证 java -version2. 直接在logstash安装目录下启动 ./logstash/bin/logstash启动正常3.进入./logstash/bin目录下,修改logstash.lib.sh文件,添加JAV...

2020-01-13 14:56:40 954

原创 shell脚本连接操作mysql

shell脚本链接mysql模板如下:mysql -h$hostname -P$port -u$username -p$password << EOFuse $database;XXXXsql语句commit;EOF增删改查举例如下:#!/bin/bashhostname="ip"port="3306"username="aabb"passwor...

2019-12-16 16:51:59 1240

原创 Intellij IDEA properties配置文件中文乱码配置

Intellij IDEA项目中遇到properties文件中中文乱码现象,简单配置后解决:File->Settings->Editor->File Encodings 设置UTF-8

2019-11-18 11:23:51 848

原创 Intellij IDEA 中 maven 依赖包标红报错omitted for duplicate

Intellij IDEA 中 升级spring boot 版本后reimport 所需依赖,全都加载成功后发现大部分依赖jar都标红报错显示omitted for duplicate。虽然标红但是仍然可以编译/运行项目。处理方法:1.找到maven local repository 路径 删除该路径下的相应的jar包缓存。2. clean project3. 点击...

2019-10-22 14:43:32 18741 2

原创 shell 字符串比较是否相等 报错[: =: unary operator expected

shell 字符串比较是否相等报错[: =: unary operator expectedegg:a = '123'b='1234'if [ $a == $b ];thenecho "相等"fi此时报错[: =: unary operator expected正确写法 多加个[ ]:if [[ $a == $b ]];thenecho "...

2019-09-18 18:40:54 835

原创 mysql 模糊查找表名

使用mysql过程中,有时需要查看有哪些带有aaa的表list , 使用模糊查找能简单高效地查找出:egg:show tables like '%aaa%';注意前后都要带%

2019-09-17 22:07:16 11446

原创 mysql时间字段long类型转换成datetime类型

Linux下 mysql将long类型转换成datetime类型函数:FROM_UNIXTIME()egg:long create_time =1564416000000 毫秒级 -> create_time/1000 datetime: FROM_UNIXTIME(create_time/1000) 格式化:date_fo...

2019-09-11 11:07:33 2986

原创 springboot上传文件异步处理,报错文件找不到 java.io.FileNotFoundException

springboot 上传大文件由于同步逐条处理,响应慢,用户体验差。采用上传文件后,交给子线程异步处理,主线程及时响应。同时上传多文件 ,会偶现报错java.io.FileNotFoundException /tmp/XXX/tomcat/XXX 。springboot文件上传,会创建临时目录保存临时文件,处理完后会清除。采用主线程同步处理文件,会在文件处理后清除,不会报错。采用异...

2019-09-06 10:04:04 3298

原创 intelligent idea 某工程突然快捷键(ctrl+鼠标点击方法)用不了,mark一下

intelligent idea 某工程突然快捷键(ctrl+鼠标点击方法)用不了,觉得特奇怪,mark一下工程下文件都没法识别,jdk重新加载一下,idea能够识别出JAVA文件就行~...

2019-07-05 17:28:40 470

原创 redis集群设置密码

redis集群设置密码,各节点密码必须一致。集群构建完毕后,登录集群各节点:redis-cli -c -h yourhost -p yourports设置密码,依次输入命令:config set masterauth yourpasswordconfig set requirepass yourpasswordauth frankconfig rewrite各节点设...

2019-06-24 10:49:27 563

原创 JAVA读写.CSV文件

.CSV文件是以逗号分隔的纯文本文件,默认ANSI编码。LINUX默认编码是UTF-8, windows默认编码是GBK。一. 现有处理.csv文件的开源API:1. javacsv<dependency><groupId>net.sourceforge.javacsv</groupId><artifactId>javacsv&...

2019-06-20 10:50:43 229

原创 mysql 事务隔离级别

事务的特性(ACID): Atomicity 原子性, Consistency 一致性,Isolation 隔离性,  Durability 持久性。mysql事务隔离级别:4个,级别从低到高: read uncommitted &lt; read committed &lt; repeatable read &lt; serializable1. read uncommitted  读未...

2018-08-28 11:35:35 106

原创 mysql between ...and... 查询的范围

mysql  between ...and... 查询的范围: 包括左右边界值1. 查询字符串 或者数值型  eg:  between '2018-08-01' and '2018-08-05', 查询所得数据包括 2018-08-01 ~ 2018-08-05 eg:  between 1 and 5 , 相当于  &gt;= 1 and &lt;= 52.查询时间 timest...

2018-08-27 15:58:58 2588

原创 Spring data JPA 清空 Couchbase 某个bucket中的数据

使用Spring data JPA 操作Couchbase中某个bucket,直接调用set/save/findone 接口没有问题。但是使用findAll/deleteAll等接口操作bucket时会报如下异常:Could not load view "all" for design doc "validatedmsg"; nested exception is com.

2016-05-27 14:54:23 911

原创 java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig 原因分析与解决方案

Spring4单元测试出现错误:java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig 原因分析:Spring4 与servlet2.5兼容性问题解决方案:pom.xml中添加servlet 3.0.1, scope填写test,artifactId为javax.sevlet-api

2016-04-07 16:28:32 12537 6

原创 windows下mysql忘记root密码后查看或修改密码的方法

windows下mysql忘记root密码后查看或修改密码的方法

2015-03-07 16:18:32 933

原创 不错的google搜索地址

谷歌搜索:http://gu1234.com/      Googlehttp://www.gfsoso.com/  谷粉搜索https://www.sssis.com/  谷歌搜索http://www.gugesou.cn/  谷歌搜http://www.glgoo.com/http://www.fqgoogle.com/ 翻墙谷歌ht

2015-02-28 19:57:22 4167

原创 Decode Ways --- LeetCode

A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message containing digits, determine the total numb

2015-02-04 11:08:53 379

原创 Count and Say --- LeetCode

The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as 

2015-02-04 10:19:48 501

原创 Copy List with Random Pointer --- LeetCode

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.解题思路:1.遍历链表,在旧节点后面插入同样的新节点,cop

2015-02-03 12:57:04 315

原创 Convert Sorted List to Binary Search Tree --- LeetCode

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST解题思路:中序递归遍历构造,每次遍历找到中间节点即为根节点,左边为左子树,右边为右子树。public class Solution {    public

2015-02-03 10:52:32 383

原创 Convert Sorted Array to Binary Search Tree --- LeetCode

Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:使用二叉搜索树的方式遍历数组,每次遍历数组中间节点为子树的根节点,递归遍历找出中间节点。/** * Definition for binary tree * public clas

2015-02-02 10:56:43 371

原创 Container With Most Water --- LeetCode

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin

2015-02-02 10:20:14 335

原创 LeetCode --- Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.解题思路:按先序序列和中序序列构造二叉树,先序序列中第一个值为根的值。递归遍历如下:/** *

2015-01-30 14:14:42 339

原创 Construct Binary Tree from Inorder and Postorder Traversal --- LeetCode

Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.解题思路:按着中序遍历序列和后序遍历序列构造二叉树。后序序列中的最后一个val值为根的val值。递归遍历如下:

2015-01-30 13:57:21 312

原创 Compare Version Numbers --- LeetCode

Compare two version numbers version1 and version1.If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0.You may assume that the version strings are non-empty and co

2015-01-30 12:47:54 440

原创 Combinations --- LeetCode

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]

2015-01-30 09:41:39 341

原创 Combination Sum II --- LeetCode

Combination Sum II Total Accepted: 25244 Total Submissions: 101551My SubmissionsQuestion Solution Given a collection of candidate numbers (C) and a target number (T), find all un

2015-01-29 11:35:18 404

原创 Combination Sum --- LeetCode

Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited numb

2015-01-29 11:11:18 333

iBatis in Action

iBatis in action 很好的学习iBatis的资料哦

2012-02-18

struts2权威指南

struts2权威指南,详细的解说,经典入门

2011-10-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除