摘要:
String s = "123"; System.out.println(System.identityHashCode(s)); s = "456"; System.out.println(System.identityHashCode(s)); 打印结果 2111991224292938459 阅读全文
摘要:
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\" 阅读全文
摘要:
class User { public static int i; public static int j; private static User user = null; public User() {} public static User getInstance() { if(user == 阅读全文
摘要:
1.git commit之后没有push 直接使用git commit --amend 2.git commit之后push到远程 第一步:git commit --amend 第二步:强制推送 阅读全文
摘要:
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 阅读全文
摘要:
总结: stringBuilder 扩容的时候,容量不一定是 16*2 + 2 阅读全文
摘要:
@Target({ElementType.PARAMETER, ElementType.METHOD}) //可以看到注解ModelAttribute 可以在方法的参数和方法上面使用 @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ModelAttribute { @AliasFor("name") String 阅读全文
摘要:
https://www.cnblogs.com/dolphin0520/p/3923167.html 阅读全文
摘要:
1.在linux上面部署两个tomcat : 修改tomcat中的配置文件,修改这三个地方的端口号 2.配置nginx的配置环境 阅读全文
摘要:
firewall-cmd --list-all 查看开启的端口 firewall-cmd --add-port=80/tcp --permanent 看放80端口 开启端口后,要重新加载firewall firewall-cmd --reload 1.在linux上安装tomcat 并启动 开启80 阅读全文