- 博客(14)
- 收藏
- 关注
原创 java 带下划线字符 转换为驼峰
/*** _ ASCII =95* 小写 转大写 - 30* 处理特殊格式的value* a - z* 97 -122*/public String cvtUnderLineToUpper(String str) {byte[] strB = str.getBytes();byte[] buffer = new byte[strB.length];boolean upCat = false;int i = 0;for (byte b : strB) {if (95 == b) {
2020-10-23 18:04:15 330
原创 面试前刷题链接
https://www.jianshu.com/p/ce1fb8497883java.util.concurrent、java.util.concurrent.atomicjava.util.concurrent.lockLockSupporthttps://baijiahao.baidu.com/s?id=1666548481761194849&wfr=spider&for=pcAtomicBooleanhttps://baijiahao.baidu.com/s
2020-07-24 19:13:09 86
原创 JVM - 马老师听课笔记
十种垃圾回收器最早的组合 serial + serial old1. seriala stop-the-world , copying collector which use a single gc年轻代单线程串行回收2. ps 年轻代并行回收3. parNew多线程+ CMS年轻代4. serial old5. parallel old6. CMS并发垃圾回收 和应用程序老年代7. G1...
2020-07-23 17:03:32 104
原创 面试准备
https://www.cnblogs.com/shiyh/p/12868453.htmlhttps://www.jianshu.com/p/d5acdb7aed14https://www.douban.com/note/668286406/https://zhuanlan.zhihu.com/p/66160652https://zhuanlan.zhihu.com/p/66160652https://blog.csdn.net/dd864140130/a...
2020-07-23 15:34:22 61
原创 Google Guava Cache
<dependency> <groupId>com.google.guice</groupId> <artifactId>com.springsource.com.google.inject</artifactId> <version>2.0.0alipay</version></...
2019-10-09 10:07:36 90
原创 JAVA Map 初始化
publicclassDemo{privatestaticfinalMap<String,String>myMap; static { myMap=newHashMap<String,String>(); myMap.put("a","b");myMap.p...
2019-09-17 10:36:40 131
原创 学习链接
mysql创建用户并授权https://www.cnblogs.com/sos-blue/p/6852945.htmlgrant all privileges on *.* to 'root'@'%' identified by 'shiyeV587' with grant option;OceanBase小程序接入https://docs.alipay.com/mi...
2019-06-28 17:41:55 216
原创 toString(Reader input)
public static String toString(Reader input) throws IOException { StringWriter sw = new StringWriter(); char arr[] =new char[1024 * 4]; int n=0; while (-1!=(n=input.read(arr))){ ...
2019-04-26 16:00:37 200
原创 自定义异常如何不打印异常堆栈
重写这两个方法@Overridepublic Throwable fillInStackTrace() { return this;}@Overridepublic String toString() { return MessageFormat.format("{0}[{1}]",this.retCd,this.msgDes);}
2019-04-18 11:37:45 3441 1
原创 Illegal key size
在不修改jdk策略文件的基础上,可以用反射来修改jdk的安全策略 static { //break JCE crypto policy limit try { Class<?> clazz = Class.forName("javax.crypto.JceSecurity"); Field nameF...
2019-03-27 17:49:44 951 4
原创 java web 启动后任务管理器有两个java.exe
这主要是由于java安装时自动把java.exe,javaw.exe,javaws.exe拷贝到了系统盘,开机后自动启动。删除即可
2017-11-07 17:50:25 3921 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人