<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[yethyeth的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/yethyeth</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; yethyeth]]></copyright><item><title><![CDATA[跟上！本周业界动态来了！Java周报，2019/8/10，黑客日教程]]></title><link>https://blog.csdn.net/yethyeth/article/details/99086903</link><guid>https://blog.csdn.net/yethyeth/article/details/99086903</guid><author>yethyeth</author><pubDate>Sat, 10 Aug 2019 16:50:12 +0800</pubDate><description><![CDATA[黑客日：Java菜鸟到高手，从关注业界最新动态开始！


1、Spring和Java

Brian Goetz跟InfoQ讲述在Java中被提议的连字符关键字[infoQ]
随着java的发展，我们可能不久就就看到连字符关键字，比如最近被提议（但最后被移除）的break-with

最多5分钟：使用ApacheJohnzon绑定Jakarta JSON[otmitribe]
JSON-B...]]></description><category></category></item><item><title><![CDATA[TOP JAVA BLOGS的JAVA周报，2019年30期（7月），黑客日教程]]></title><link>https://blog.csdn.net/yethyeth/article/details/97965828</link><guid>https://blog.csdn.net/yethyeth/article/details/97965828</guid><author>yethyeth</author><pubDate>Wed, 31 Jul 2019 21:38:45 +0800</pubDate><description><![CDATA[Baeldung的Java周报（部分），黑客日教程
	Bealdung的Java周报（部分），2019年7月3周，黑客日教程
	Top Java Blogs的Java周报，2019年30期（7月） (Current)

黑客日：Java菜鸟到高手，从关注业界最新动态开始！




初级：

SpringBoot JDBC示例
	GraphQL和SpringBoot入门
	把SpringBoo...]]></description><category></category></item><item><title><![CDATA[BEALDUNG的JAVA周报（部分），2019年7月3周，黑客日教程]]></title><link>https://blog.csdn.net/yethyeth/article/details/97795075</link><guid>https://blog.csdn.net/yethyeth/article/details/97795075</guid><author>yethyeth</author><pubDate>Tue, 30 Jul 2019 16:35:53 +0800</pubDate><description><![CDATA[Baeldung的Java周报（部分），黑客日教程
	Bealdung的Java周报（部分），2019年7月3周，黑客日教程 (Current)

Java菜鸟到高手，从关注业界最新动态开始！




1、spring和java

InfoQ的java趋势报告（2019年7月）[infoq.com]
当前java生态采用的技术趋势介绍

使用–enable-preview（预览功能）来演进Ja...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java 8 Stream skip() vs limit()，实现对stream的切片操作]]></title><link>https://blog.csdn.net/yethyeth/article/details/94382651</link><guid>https://blog.csdn.net/yethyeth/article/details/94382651</guid><author>yethyeth</author><pubDate>Mon, 01 Jul 2019 10:47:10 +0800</pubDate><description><![CDATA[来自



1.简介

本文将讨论Java Stream API的skip（）和limit（）方法，并突出它们的相似之处和不同之处。



尽管这两个操作最初看起来非常相似，但它们实际上表现得非常不同并，且不可互换。实际上，它们是互补的，并且在一起使用时可以很方便。



2.skip（）方法

skip方法是一个中间操作，跳过stream中的前n个元素，n不能为负值。如果n大于strea...]]></description><category></category></item><item><title><![CDATA[Top9的Javascript代码片段库，你值得拥有]]></title><link>https://blog.csdn.net/yethyeth/article/details/94057220</link><guid>https://blog.csdn.net/yethyeth/article/details/94057220</guid><author>yethyeth</author><pubDate>Fri, 28 Jun 2019 22:42:27 +0800</pubDate><description><![CDATA[在使用JavaScript（或其他任何语言）开发程序时，你经常会发现自己会在DIY代码和已有代码片段之间进行选择。为了节省时间并防止编写出有问题的JavaScript，最好能够直接找到所需的代码段。



但是你应该从哪里开始寻找？如果你的回答是“谷歌”，那么你应该继续阅读本文，因为我们将帮你花在滚动浏览搜索结果的大把时间节约下来。



代码堆溢出

试图用谷歌找到所需的代码片段，甚至...]]></description><category></category></item><item><title><![CDATA[Top9的免费Java性能监控工具，你值得拥有]]></title><link>https://blog.csdn.net/yethyeth/article/details/93926303</link><guid>https://blog.csdn.net/yethyeth/article/details/93926303</guid><author>yethyeth</author><pubDate>Thu, 27 Jun 2019 23:24:31 +0800</pubDate><description><![CDATA[当你的Java代码运行起来的时候，也许它已经可以在生产服务器上运行了。这个时候，你会得到两种消息：好消息和恼人的消息。

恼人的消息是，现在，调试开始了。调试程序，并且监控应用程序性能。这就是说我们需要跳过代码，直接关注到JVM内部运行情况。我们不仅需要在调试阶段（使用分析器）这么做，还需要在生产（使用APM）中持续关注，以便测量性能并检测代码中的问题。

好消息？与你听过的可能不一样，监控性能不...]]></description><category></category></item><item><title><![CDATA[CODOTA官网用户手册（INTELLIJ、ANDROID STUDIO版本，2019年6月）]]></title><link>https://blog.csdn.net/yethyeth/article/details/93378122</link><guid>https://blog.csdn.net/yethyeth/article/details/93378122</guid><author>yethyeth</author><pubDate>Sun, 23 Jun 2019 09:44:10 +0800</pubDate><description><![CDATA[Codota通过对海量开源Java项目的AI学习，能给开发者提供可靠的代码编写帮助，使得开发者能更快、更聪明地编程。
CODOTA官网用户手册（INTELLIJ、ANDROID STUDIO版本，2019年6月）

...]]></description><category></category></item><item><title><![CDATA[CODOTA：你需要的JAVA编程AI助手]]></title><link>https://blog.csdn.net/yethyeth/article/details/93298498</link><guid>https://blog.csdn.net/yethyeth/article/details/93298498</guid><author>yethyeth</author><pubDate>Sat, 22 Jun 2019 09:18:54 +0800</pubDate><description><![CDATA[最近使用了Codota，令我印象深刻。
Codota的目标是让开发更简单、更快。Codota能在后台运行，以便节约时间。
1 什么是Codota
Codota会学习我们如何在编程，然后反过来帮助我们更好的编程。它会使用AI和机器学习技术来给工作中的人提供与正在写的代码相关的建议。
2 用Codota编码
如果说Codota的建议质量会影响你的代码质量。让人惊讶的是，Codota给的建议几乎总是正确...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java中获取文件扩展名的方法你又知道几种]]></title><link>https://blog.csdn.net/yethyeth/article/details/91371905</link><guid>https://blog.csdn.net/yethyeth/article/details/91371905</guid><author>yethyeth</author><pubDate>Mon, 10 Jun 2019 13:34:47 +0800</pubDate><description><![CDATA[1 介绍
本文将讨论3中方式来获取文件扩展名。
本文示例直接返回“.”后面。比如“javais.txt”返回“txt”。
2 获取扩展名
获取扩展名的时候，有两个特殊场景：

当文件名没有扩展名的时候，比如 makefile。
当文件名只有扩展名的时候，比如.gitignore或.DS_Store

2.1 最简单的、基于字符串处理的方法
public Optional&lt;String&gt;...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java获取文件大小的方法，你知道几种]]></title><link>https://blog.csdn.net/yethyeth/article/details/90951747</link><guid>https://blog.csdn.net/yethyeth/article/details/90951747</guid><author>yethyeth</author><pubDate>Wed, 05 Jun 2019 21:49:41 +0800</pubDate><description><![CDATA[1 简介
本文讨论如何用Java 7、Java8、Apache Common IO获取文件大小。
最后，介绍如何将文件大小转换为一个可读的、易于人理解的大小描述。
2 标准Java IO
使用File.length()
private long getFileSize(File file) {
&nbsp;&nbsp;&nbsp;&nbsp;long length = file.length();...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java8新功能：将数据集合进行分组，类似SQL的GROUP BY]]></title><link>https://blog.csdn.net/yethyeth/article/details/90767423</link><guid>https://blog.csdn.net/yethyeth/article/details/90767423</guid><author>yethyeth</author><pubDate>Tue, 04 Jun 2019 13:44:29 +0800</pubDate><description><![CDATA[1 介绍
本文将展示groupingBy收集器的多个示例。
阅读本文需要先准备Java Stream和Java收集器Collector的知识。
2 GroupingBy收集器
Java8的Stream API允许我们以声明的方式来处理数据集合。
静态工厂方法：Collectors.groupingBy()，以及Collectors.groupingByConcunrrent()，给我们提供了类似S...]]></description><category></category></item><item><title><![CDATA[黑客日教程-关于Java换行符你需要知道的]]></title><link>https://blog.csdn.net/yethyeth/article/details/90709816</link><guid>https://blog.csdn.net/yethyeth/article/details/90709816</guid><author>yethyeth</author><pubDate>Fri, 31 May 2019 08:24:03 +0800</pubDate><description><![CDATA[1 概览
编程的时候经常碰到格式化字符串或生成文本输出的场景。经常，我们需要新增加一行到文本输出中。
这个看上去很简单的问题，我们来讨论一下。
2 在字符串里增加一行
不同的操作系统有自己特定的字符来表示新的一行的开始。比如，Linux用“\n”，也称换行符（line feed）。windows中用“\r\n”，被称作回车换行，也就是CRLF（carriage return and line fe...]]></description><category></category></item><item><title><![CDATA[黑客日教程-提前了解一下Java12中对String的更新]]></title><link>https://blog.csdn.net/yethyeth/article/details/90637638</link><guid>https://blog.csdn.net/yethyeth/article/details/90637638</guid><author>yethyeth</author><pubDate>Tue, 28 May 2019 13:34:18 +0800</pubDate><description><![CDATA[1 介绍
Java 12在String上加了一波有用的API。
2 indent()
indent()方法，会基于参数调整每行的缩进。
当String调用indent()的时候，下列动作会发生：

字符串通过lines()方法被分割成多行。lines()方法是Java 11引入的。
每一行根据一个整型参数n，调整缩进，并以换行符\n结尾。
a. 如果n大于0，那么n个空格会插入到每行的开始；
b....]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java11新增的String方法]]></title><link>https://blog.csdn.net/yethyeth/article/details/90606194</link><guid>https://blog.csdn.net/yethyeth/article/details/90606194</guid><author>yethyeth</author><pubDate>Mon, 27 May 2019 16:43:42 +0800</pubDate><description><![CDATA[来自
1 介绍
Java 11在String曾静良一些有用的API。
2 repeat()
repeat()重复字符串内容。
返回一个字符串，其内容是字符串重复n次后的结果。
@Test
public void whenRepeatStringTwice_thenGetStringTwice() {
    String output = "La ".repeat(2) + "Land";
 
 ...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java中如何快速从字符串中找到并剔除特定单词]]></title><link>https://blog.csdn.net/yethyeth/article/details/90582194</link><guid>https://blog.csdn.net/yethyeth/article/details/90582194</guid><author>yethyeth</author><pubDate>Sun, 26 May 2019 22:53:16 +0800</pubDate><description><![CDATA[来自
1. 概述
本文将讨论多种从字符串中移除stopwords（停用词汇）的方法。从文本中去除不需要的或禁止的单词，比如用户发布的评论。
我们将使用一个轮询、Collection.removeAll()、正则表达式。最后会使用java-microbenchmark-harness会对比这几个方法的性能。
2. 加载stopwords
首先从文本文件加载stopwords。
准备一个文件，engl...]]></description><category></category></item><item><title><![CDATA[黑客日教程-Java带资源的try语句(try-with-resources)]]></title><link>https://blog.csdn.net/yethyeth/article/details/90473490</link><guid>https://blog.csdn.net/yethyeth/article/details/90473490</guid><author>yethyeth</author><pubDate>Thu, 23 May 2019 08:20:05 +0800</pubDate><description><![CDATA[1、概述
java7引入的try-with-resources特性，允许我们定义在try语句中使用的资源，并在try语句结束的时候自动关闭资源。这些资源必须实现AutoCloseable接口。
2、使用
资源必须在try内部声明并被初始化，如下所示：
try (PrintWriter writer = new PrintWriter(new File("test.txt"))) {
    wri...]]></description><category></category></item><item><title><![CDATA[黑客日教程-在Java中如何创建随机字符串：常规 vs Apache Commons Lang库]]></title><link>https://blog.csdn.net/yethyeth/article/details/90262205</link><guid>https://blog.csdn.net/yethyeth/article/details/90262205</guid><author>yethyeth</author><pubDate>Thu, 16 May 2019 13:57:12 +0800</pubDate><description><![CDATA[来自




编译：https://www.baeldung.com/java-random-string


本文将分别展示如何利用标准java代码和Apache Commons Lang包创建随机字符串。

本文属于Baeldung“Java-回到基础”系列。

1、在Java中创建随机的没有限制的字符串

创建7个字符的随机字符串


			1

			2

			3

			4

			...]]></description><category></category></item><item><title><![CDATA[Git问题集，20190511]]></title><link>https://blog.csdn.net/yethyeth/article/details/90147488</link><guid>https://blog.csdn.net/yethyeth/article/details/90147488</guid><author>yethyeth</author><pubDate>Sun, 12 May 2019 23:49:10 +0800</pubDate><description><![CDATA[来自



1、error:srcrefspecmasterdoesnotmatchany

执行命令gitpushoriginmaster ，报错，如上。

http://stackoverflow.com/questions/827351/push-origin-master-error-on-new-repository

The error message leads...]]></description><category></category></item><item><title><![CDATA[合并多个jar为一个jar]]></title><link>https://blog.csdn.net/yethyeth/article/details/90147480</link><guid>https://blog.csdn.net/yethyeth/article/details/90147480</guid><author>yethyeth</author><pubDate>Sun, 12 May 2019 23:43:17 +0800</pubDate><description><![CDATA[来自



方案1、把jar解压出来（class文件），然后用eclipse的export功能，导出为jar



但此方法有个问题，如何确认导出的class的package是从哪个文件夹开始的。

方案2、用jarsplice

http://ninjacave.com/jarsplice



遇到的问题说明：

用这个工具对spring framework的jar包进行了合并。

合并前：...]]></description><category></category></item><item><title><![CDATA[笔记《有效的单元测试》]]></title><link>https://blog.csdn.net/yethyeth/article/details/90147471</link><guid>https://blog.csdn.net/yethyeth/article/details/90147471</guid><author>yethyeth</author><pubDate>Sun, 12 May 2019 23:42:17 +0800</pubDate><description><![CDATA[来自



书籍：芬 Lasse Koskela著，申健译





内容：


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