随笔分类 - Java related
related issues' learning
摘要:Difference between "==null" and ".equals(null)" == reference compare; .equals() is a method; notification: while sample = null; sample.equals(null) wi
阅读全文
摘要:自动打包 && 自动拆包 sample ArrayList = new ArrayList(); list.add(3); int i = list.get(0);3会被自动打包成Integer类型,随后被自动拆包为int型。Tips: 这里处理定长的数组类型,ArrayList...
阅读全文
摘要:Java中不区分变量的声明和定义,但变量的声明和定义本质上却是有区别的。变量的定义:定义一个全新的变量,包括分配资源;变量的声明:声明一个已经有的变量,只是作为引用的一个说明(C和C++中使用的关键字是extern)。
阅读全文
摘要:tomcat启动日志目录:$TOMCAT_HOME/logs/catalina.out 但是如果server.xml本身有问题使得logger未被启用,则不会找到任何相关的日志;tomcat用户设定:$TOMCAT_HOME/conf/tomcat-users.xml中在tomcat-users这个tab中加入和注释中相应格式相同的一行或多行内容,视添加用户数目而定。 tomcat用户类别:admin, manager, tomcat(系统默认权限), role1; that surrounds them.--> -->
阅读全文

浙公网安备 33010602011771号