会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
霍宇飞
博客园
首页
新随笔
联系
订阅
管理
2020年4月30日
lamaba 表达式中不能对基本数据类型进行操作
摘要: String s = "123"; System.out.println(System.identityHashCode(s)); s = "456"; System.out.println(System.identityHashCode(s)); 打印结果 2111991224292938459
阅读全文
posted @ 2020-04-30 18:39 霍宇飞
阅读(201)
评论(0)
推荐(0)
2020年4月22日
json 字符串如何转成相应的类(范型)
摘要: String s = "{\n" + "\t\"respCode\": \"000\",\n" + "\t\"respMessage\": \"请求成功\",\n" + "\t\"data\": [\n" + "\t\t{\n" + "\t\t\t\"id\": 53,\n" + "\t\t\t\"
阅读全文
posted @ 2020-04-22 13:20 霍宇飞
阅读(420)
评论(0)
推荐(0)
2020年4月8日
单例模式 懒汉式 为什么要两次判空
摘要: class User { public static int i; public static int j; private static User user = null; public User() {} public static User getInstance() { if(user ==
阅读全文
posted @ 2020-04-08 17:20 霍宇飞
阅读(929)
评论(0)
推荐(0)
2019年10月30日
git 修改commit 的注释
摘要: 1.git commit之后没有push 直接使用git commit --amend 2.git commit之后push到远程 第一步:git commit --amend 第二步:强制推送
阅读全文
posted @ 2019-10-30 17:40 霍宇飞
阅读(1917)
评论(0)
推荐(0)
2019年10月17日
文件的上传
摘要: package servlet; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileUploadBase; import org.apache.commons.fileupload.ProgressListener; import org.apache.commons.fi
阅读全文
posted @ 2019-10-17 19:37 霍宇飞
阅读(198)
评论(0)
推荐(0)
2019年10月11日
StringBuilder 的 容量capacity 问题
摘要: 总结: stringBuilder 扩容的时候,容量不一定是 16*2 + 2
阅读全文
posted @ 2019-10-11 16:32 霍宇飞
阅读(1440)
评论(0)
推荐(0)
注解@ModelAttribute
摘要: @Target({ElementType.PARAMETER, ElementType.METHOD}) //可以看到注解ModelAttribute 可以在方法的参数和方法上面使用 @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ModelAttribute { @AliasFor("name") String
阅读全文
posted @ 2019-10-11 14:51 霍宇飞
阅读(394)
评论(0)
推荐(0)
2019年9月29日
锁Lock
摘要: https://www.cnblogs.com/dolphin0520/p/3923167.html
阅读全文
posted @ 2019-09-29 15:41 霍宇飞
阅读(160)
评论(0)
推荐(0)
Nginx 的反向代理
摘要: 1.在linux上面部署两个tomcat : 修改tomcat中的配置文件,修改这三个地方的端口号 2.配置nginx的配置环境
阅读全文
posted @ 2019-09-29 13:51 霍宇飞
阅读(137)
评论(0)
推荐(0)
2019年9月28日
nginx的小demo
摘要: firewall-cmd --list-all 查看开启的端口 firewall-cmd --add-port=80/tcp --permanent 看放80端口 开启端口后,要重新加载firewall firewall-cmd --reload 1.在linux上安装tomcat 并启动 开启80
阅读全文
posted @ 2019-09-28 15:46 霍宇飞
阅读(280)
评论(0)
推荐(0)
下一页
公告