文章分类 - Java
摘要:It's easy to store any serializable object in a blob in a MySQL database, if you use a PreparedStatement: When you try to retrieve the object, it gets
阅读全文
摘要:import java.io.*; import java.sql.*; public class DBTest { public void test() throws Exception { //create table table1 (fld1 varchar2(10), fld_blob long raw); String filename = ...
阅读全文
摘要:rrayList中的元素进行排序,主要考查的是对util包中的Comparator接口和Collections类的使用。实现Comparator接口必须实现compare方法,自己可以去看API帮助文档。 创建一个Comparator实例后,用Collections.sort(List,<E>)对L
阅读全文
摘要:prefork模式这个多路处理模块(MPM)实现了一个非线程型的、预派生的web服务器,它的工作方式类似于Apache 1.3。它适合于没有线程安全库,需要避免线程兼容性问题的系统。它是要求将每个请求相互独立的情况下最好的MPM,这样若一个请求出现问题就不会影响到其他请求。 这个MPM具有很强的自我
阅读全文
摘要:public class TimerManager { //时间间隔 private static final long PERIOD_DAY = 24 * 60 * 60 * 1000; public TimerManager() { Calendar calendar = Calendar.ge
阅读全文
摘要:学习过Spring框架的人一定都会听过Spring的IoC(控制反转) 、DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC 、DI这两个概念是模糊不清的,是很难理解的,今天和大家分享网上的一些技术大牛们对Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解。 一
阅读全文
浙公网安备 33010602011771号