
java
luffy_1993
这个作者很懒,什么都没留下…
展开
-
记一个三元运算符空指针异常
java小技巧原创 2022-06-30 11:36:08 · 239 阅读 · 0 评论 -
pdf文件处理,spire.pdf
maven 引用 <dependency> <groupId>e-iceblue</groupId> <artifactId>spire.pdf</artifactId> <version>3.11.6</version> </dependency>example// FileInputStre原创 2021-04-17 17:09:03 · 970 阅读 · 0 评论 -
记java中byte与char强制转换
下面的代码target1的值是多少?byte target = (byte) (12 & 0xFF);char target1 = (char) target;答案是:target1的值是12下面的代码的target1的值是65490,target的值是210;byte target = (byte) (1234 & 0xFF);char target1 =...原创 2020-04-07 12:46:05 · 1757 阅读 · 0 评论 -
spring mail
找到一篇spring发邮件的文章,写的很好https://www.baeldung.com/spring-email转载 2019-03-13 18:10:39 · 144 阅读 · 0 评论 -
alibaba代码规范idea插件
https://baijiahao.baidu.com/s?id=1581367911997828464&wfr=spider&for=pc转载 2019-03-18 17:26:34 · 301 阅读 · 0 评论 -
serialver使用
https://www.codejava.net/java-core/tools/using-serialver-command-examplesshell命令:serialver -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/rt.jar java.util.Li...转载 2019-03-08 12:03:04 · 721 阅读 · 0 评论 -
quartz学习
https://www.cnblogs.com/drift-ice/p/3817269.html转载 2018-12-11 16:39:52 · 103 阅读 · 0 评论 -
Jackson JSON - Using @JsonIgnore and @JsonIgnoreProperties to ignore properties
Following example shows how to use @JsonIgnore and @JsonIgnoreProperties annotations to ignore properties. @JsonIgnore Example @JsonIg...转载 2018-12-27 12:08:27 · 335 阅读 · 0 评论 -
Websocket简介
Websocket 使用 ws 或 wss 的统一资源标志符,类似于 HTTPS,其中 wss 表示在 TLS 之上的 Websocket。如: ws://example.com/wsapiwss://secure.example.com/ Websocket 使用和 HTTP 相同的 TCP 端口,可以绕过大多数防火墙的限制。默认情况下,Websocket 协议使用 80 端口;...转载 2018-12-13 21:44:32 · 164 阅读 · 0 评论 -
java 中字符串string编码方式探究
在java中的String.getBytes(String charset),会先把字符串按字符分为字符数组,然后按单个字符编码。import java.io.UnsupportedEncodingException;public class CharsetTest { public static void main(String[] args) throws Unsu...原创 2018-09-30 14:36:49 · 245 阅读 · 0 评论 -
判断字符串的编码类型,判断出字符串value的编码方式为charset中的哪一种,然后返回。
public static String charset(String value, String charsets[]) throws UnsupportedEncodingException { String probe = StandardCharsets.UTF_8.name(); for(String c : charsets) { Charset ch...原创 2018-09-29 18:58:40 · 1665 阅读 · 0 评论