11 2019 档案
摘要:搬运自:https://www.jianshu.com/p/fd945e8e099d
阅读全文
摘要:关于javabean,是否需要实现序列化接口这个问题,只有当这些javabean需要通过分布式网络传输,磁盘持久化等情况下才有必要,其他情况并非必须。
阅读全文
摘要:window Preferences java Installed JREs 点击你的jre然后点右边的Edit 找到以rt.jar结尾的jar,点击右边的Source Attachment 点击右边的External File选择你的src所在的路径,然后点击ok就可以了
阅读全文
摘要:首先 把文件中的 修改成 重启服务 或者 或者重启
阅读全文
摘要:List,Set,Map的区别 (对付顺序的好帮手): 接口存储一组不唯一(可以有多个元素引用相同的对象)、有序的对象 (注重独一无二的性质): 不允许重复的集合,不会有多个元素引用相同的对象 (用Key搜索的专家): 使用键值对存储。 会维护与 有关联的值。两个 可以引用相同的对象, 但 不能重复
阅读全文
摘要:基本配置文件log4j.properties 1 log4j.rootLogger=debug, stdout, R 2 3 log4j.appender.stdout=org.apache.log4j.ConsoleAppender 4 log4j.appender.stdout.layout=o
阅读全文
摘要:str.toString是调用了str这个object对象的类的toString方法。一般是返回这么一个String:[class name]@[hashCode]。new String(str)是根据parameter是一个字节数组,使用java虚拟机默认的编码格式,将这个字节数组decode为对
阅读全文
摘要:一、web.xml的配置 <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/j
阅读全文
摘要:目录结构: 数据库结构: 一·web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.o
阅读全文
摘要:try(){}写法会自动关闭连接 String sql = "select password from user where name = ?"; try(Connection c = getConnection(); PreparedStatement ps = c.prepareStatemen
阅读全文
摘要:详见:https://www.jianshu.com/p/0bab1bb7a73b
阅读全文
摘要:ubuntu更换国内源 备份/etc/apt/sources.list文件 cp /etc/apt/sources.list /etc/apt/sourses.list.backup #163源deb http://mirrors.163.com/ubuntu/ bionic main restri
阅读全文
摘要:virtualbox启动虚拟机报错: FAIL(0x80004005) VirtualBox VT-x is not available (VERR_VMX_NO_VMX),无法创建新任务 这是win10在10月份更新出现的一个错误 解决办法: 首先,管理员身份打开提示符。 输入 bcdedit 并
阅读全文