摘要: String s = "123"; System.out.println(System.identityHashCode(s)); s = "456"; System.out.println(System.identityHashCode(s)); 打印结果 2111991224292938459 阅读全文
posted @ 2020-04-30 18:39 霍宇飞 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 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 霍宇飞 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 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 霍宇飞 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1.git commit之后没有push 直接使用git commit --amend 2.git commit之后push到远程 第一步:git commit --amend 第二步:强制推送 阅读全文
posted @ 2019-10-30 17:40 霍宇飞 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: 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 霍宇飞 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 总结: stringBuilder 扩容的时候,容量不一定是 16*2 + 2 阅读全文
posted @ 2019-10-11 16:32 霍宇飞 阅读(1426) 评论(0) 推荐(0) 编辑
摘要: @Target({ElementType.PARAMETER, ElementType.METHOD}) //可以看到注解ModelAttribute 可以在方法的参数和方法上面使用 @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ModelAttribute { @AliasFor("name") String 阅读全文
posted @ 2019-10-11 14:51 霍宇飞 阅读(382) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/dolphin0520/p/3923167.html 阅读全文
posted @ 2019-09-29 15:41 霍宇飞 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.在linux上面部署两个tomcat : 修改tomcat中的配置文件,修改这三个地方的端口号 2.配置nginx的配置环境 阅读全文
posted @ 2019-09-29 13:51 霍宇飞 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 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 霍宇飞 阅读(275) 评论(0) 推荐(0) 编辑