<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lapush的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lapush</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lapush]]></copyright><item><title><![CDATA[使用自定义注解Validation校验]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/117965945</link><guid>https://blog.youkuaiyun.com/lapush/article/details/117965945</guid><author>lapush</author><pubDate>Wed, 16 Jun 2021 22:58:30 +0800</pubDate><description><![CDATA[pom
]]></description><category></category></item><item><title><![CDATA[Mac]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/114065034</link><guid>https://blog.youkuaiyun.com/lapush/article/details/114065034</guid><author>lapush</author><pubDate>Thu, 25 Feb 2021 10:34:04 +0800</pubDate><description><![CDATA[为什么 Mac 的备忘录把我的英文引号自动变成了中文引号

系统偏好设置—键盘—文本

去选“使用智能引号和存折号”

如果不行，再选择如下设置：


]]></description><category></category></item><item><title><![CDATA[投屏]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/113918854</link><guid>https://blog.youkuaiyun.com/lapush/article/details/113918854</guid><author>lapush</author><pubDate>Sun, 21 Feb 2021 15:36:38 +0800</pubDate><description><![CDATA[投屏的参考

https://www.apowersoft.cn/community/topic/solutions-to-iphone-cannot-connect-to-apowermirror.html


]]></description><category></category></item><item><title><![CDATA[idea console不见了]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/112994885</link><guid>https://blog.youkuaiyun.com/lapush/article/details/112994885</guid><author>lapush</author><pubDate>Fri, 22 Jan 2021 18:12:48 +0800</pubDate><description><![CDATA[idea console不见了

经过各方查找没有找到解决方法。突然想到okhttp有升级，看到加载kotlin的依赖，应该是依赖后导致idea认为环境变更，把okhttp还原到3.8.0后，问题解决
]]></description><category></category></item><item><title><![CDATA[网关需求文档规范]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/108576741</link><guid>https://blog.youkuaiyun.com/lapush/article/details/108576741</guid><author>lapush</author><pubDate>Mon, 14 Sep 2020 11:55:20 +0800</pubDate><description><![CDATA[unirule ：所见即所得

业务背景介绍，增加能力及优化枚举

示例：增加/修改接口jd.union.open.xxx.xx.xxxx，增加/修改入参/出参字段xxx，在哪个（xxxInfo/根）结构下，具有xxx能力/用途，上线日期xxx.

1、需求类型，确认是哪种类型，新增接口还是修改接口

1.1新增接口

1.1.1 确认是否是权限接口

1.1.2 确认api名称

例如：jd.union.open.coupon.gift.get 礼金创建

1.1.3 确认出入参

1.1.3.1 入参.]]></description><category></category></item><item><title><![CDATA[Java Float转Double精度问题]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/107165324</link><guid>https://blog.youkuaiyun.com/lapush/article/details/107165324</guid><author>lapush</author><pubDate>Mon, 06 Jul 2020 19:57:14 +0800</pubDate><description><![CDATA[float flo = 20.2f
通过Float.valueOf(pidRuleDTO.getMotherRate()).doubleValue()
结果：20.200000762939453
正确转换：Double.valueOf(String.valueOf(flo))
结果：20.2

]]></description><category></category></item><item><title><![CDATA[inspects a maven model for resolution problems]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/107160876</link><guid>https://blog.youkuaiyun.com/lapush/article/details/107160876</guid><author>lapush</author><pubDate>Mon, 06 Jul 2020 15:58:19 +0800</pubDate><description><![CDATA[solution

1、Reimport

2、Download sources and Documention

3、依赖的jar有问题，在第三方的高依赖jar中exclusions已经声明的依赖
]]></description><category></category></item><item><title><![CDATA[java泛型引起ClassCastException的原因]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/107005157</link><guid>https://blog.youkuaiyun.com/lapush/article/details/107005157</guid><author>lapush</author><pubDate>Sun, 28 Jun 2020 18:05:55 +0800</pubDate><description><![CDATA[泛型虽然运行时的时候会被擦除，但在调用时会进行强转操作

源代码java



编译后class


]]></description><category></category></item><item><title><![CDATA[Git命令]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/106258494</link><guid>https://blog.youkuaiyun.com/lapush/article/details/106258494</guid><author>lapush</author><pubDate>Thu, 21 May 2020 15:10:00 +0800</pubDate><description><![CDATA[通过:git branch 会根据tag创建新的分支.


例如:git branch new_branchv_tag_1.0
会以v_tag_1.0创建新的分支new_branch;

]]></description><category></category></item><item><title><![CDATA[java.time]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/105955285</link><guid>https://blog.youkuaiyun.com/lapush/article/details/105955285</guid><author>lapush</author><pubDate>Wed, 06 May 2020 17:32:10 +0800</pubDate><description><![CDATA[截断时间：truncatedTo


LocalDateTime nowTime = LocalDateTime.now();
nowTime.truncatedTo(ChronoUnit.HOURS); // 2020-05-06T17:00







https://www.yiibai.com/javatime/javatime_localtime_truncatedto.html...]]></description><category></category></item><item><title><![CDATA[Shell Command Set]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/105955050</link><guid>https://blog.youkuaiyun.com/lapush/article/details/105955050</guid><author>lapush</author><pubDate>Wed, 06 May 2020 17:22:15 +0800</pubDate><description><![CDATA[shell获取文件最后100行，开头100行，指定开始行和结束行的内容


文件最后100行:tail -n100 filePath;
文件开头100行:head -n100 filePath;
文件指定开始行和结束行的内容:sed '1,100p' filePath;
文件有多少行:wc -l filePath;


...]]></description><category></category></item><item><title><![CDATA[SpringJunit]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/105651592</link><guid>https://blog.youkuaiyun.com/lapush/article/details/105651592</guid><author>lapush</author><pubDate>Tue, 21 Apr 2020 10:01:15 +0800</pubDate><description><![CDATA[@SuppressWarnings("SpringJavaAutowiringInspection")
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/test-jsf.xml"})
public class Coupon {

    @Autowir...]]></description><category></category></item><item><title><![CDATA[hive相关概念]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/105559095</link><guid>https://blog.youkuaiyun.com/lapush/article/details/105559095</guid><author>lapush</author><pubDate>Thu, 16 Apr 2020 15:32:30 +0800</pubDate><description><![CDATA[1、内部表和外部表

外部表（external table）
external修饰，数据保存在HDFS上，位置由用户指定。删除表时，只会删除表的元数据，外部表不是由Hive完全管理

内部表(internal table/managed table)
没有external修饰，表数据保存在Hive默认的路径下，数据完全由Hive管理，删除表时元数据和表数据会一并删除。

区别


外部表的表数据由...]]></description><category></category></item><item><title><![CDATA[alibaba fastjson]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/104947038</link><guid>https://blog.youkuaiyun.com/lapush/article/details/104947038</guid><author>lapush</author><pubDate>Wed, 18 Mar 2020 16:13:53 +0800</pubDate><description><![CDATA[key按照字典排序


JSONObject jsonObj = JSONObject.parseObject(JSONObject.toJSONString(orderRowResp), Feature.OrderedField);

StringBuilder strBuilder = new StringBuilder(secret);
String value;
for(String k...]]></description><category></category></item><item><title><![CDATA[Redis常用命令]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/104059817</link><guid>https://blog.youkuaiyun.com/lapush/article/details/104059817</guid><author>lapush</author><pubDate>Tue, 21 Jan 2020 10:59:57 +0800</pubDate><description><![CDATA[Redis Pttl 命令以毫秒为单位返回 key 的剩余过期时间。

语法

redis Pttl 命令基本语法如下：





redis 127.0.0.1:6379&gt; PTTL KEY_NAME
可用版本

&gt;= 2.6.0

返回值

当 key 不存在时，返回 -2 。 当 key 存在但没有设置剩余生存时间时，返回 -1 。 否则，以毫秒为单位，返回 key 的剩余生存...]]></description><category></category></item><item><title><![CDATA[MySQL Tips]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/103680100</link><guid>https://blog.youkuaiyun.com/lapush/article/details/103680100</guid><author>lapush</author><pubDate>Tue, 24 Dec 2019 16:43:37 +0800</pubDate><description><![CDATA[mysql 转换13位数字毫秒时间

SELECT FROM_UNIXTIME(time/1000,'%Y-%m-%d %h:%i:%s') FROM `logs` where time='1541260863000';



]]></description><category></category></item><item><title><![CDATA[git filename to long]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/103475168</link><guid>https://blog.youkuaiyun.com/lapush/article/details/103475168</guid><author>lapush</author><pubDate>Tue, 10 Dec 2019 14:36:15 +0800</pubDate><description><![CDATA[windows系统出现此问题。



解决方案：

工程目录下键入：


git config --system core.longpaths true


再次checkout


git checkout -f HEAD



]]></description><category></category></item><item><title><![CDATA[HIVE常用SQL]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/102545812</link><guid>https://blog.youkuaiyun.com/lapush/article/details/102545812</guid><author>lapush</author><pubDate>Mon, 14 Oct 2019 13:12:31 +0800</pubDate><description><![CDATA[1、判断分区是否存在并创建


ALTER TABLEapp.union_open_gateway_comm_log ADDif not exists partition(dt='2019-10-11')


2、 显示表接口


SHOW CREATE TABLE app.union_open_gateway_comm_log;


3、表的分区明细


dfs -ls hdfs://ns1...]]></description><category></category></item><item><title><![CDATA[log4j2]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/102462495</link><guid>https://blog.youkuaiyun.com/lapush/article/details/102462495</guid><author>lapush</author><pubDate>Wed, 09 Oct 2019 15:53:21 +0800</pubDate><description><![CDATA[&lt;slf4j.version&gt;1.7.24&lt;/slf4j.version&gt;
&lt;log4j2.version&gt;2.7&lt;/log4j2.version&gt;


&lt;!-- Facade门面 --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt...]]></description><category></category></item><item><title><![CDATA[MySQL Installer is running in Community mode 的解决办法]]></title><link>https://blog.youkuaiyun.com/lapush/article/details/100918424</link><guid>https://blog.youkuaiyun.com/lapush/article/details/100918424</guid><author>lapush</author><pubDate>Tue, 17 Sep 2019 10:37:24 +0800</pubDate><description><![CDATA[解决办法:

这个是新版本MySQL服务自带的一个定时任务，每天23:59:59执行的任务，我们只需要在本地系统的“任务计划程序”中将这个定时任务干掉就OK了。
开始 -&gt; 在 “ 搜索程序和文件 ” 框中，输入 “ 任务 ” 然后回车，然后选择 “ 任务计划程序 ” ，如下图：






...]]></description><category></category></item></channel></rss>