上一页 1 ··· 19 20 21 22 23

2015年11月22日

摘要: 例子:interface Fruit{ public void eat();}class Apple interface Fruit{ public void eat(){ System.out.println("**吃苹果"); }};class Orange in... 阅读全文
posted @ 2015-11-22 15:34 james-roger 阅读(137) 评论(0) 推荐(0) 编辑

2015年11月20日

摘要: public class BatchDownloadServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) thro... 阅读全文
posted @ 2015-11-20 17:51 james-roger 阅读(289) 评论(0) 推荐(0) 编辑
摘要: public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String filename =... 阅读全文
posted @ 2015-11-20 17:50 james-roger 阅读(196) 评论(0) 推荐(0) 编辑
摘要: public class SmartUploadServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) th... 阅读全文
posted @ 2015-11-20 17:47 james-roger 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 单例模式: 应用场合:有些对象只需要一个就足够了,如皇帝等; 作用:保证整个应用程序中,某个实例有且只有一个; 类型:饿汉式模式,懒汉式模式; 步骤:(饿汉模式)1将构造方式私有化;不允许外部直接创建对象; 2创建类的唯一实例(private static类型的); 3提供一个用于获取实例的方法(p 阅读全文
posted @ 2015-11-20 16:52 james-roger 阅读(290) 评论(0) 推荐(0) 编辑

2015年11月18日

摘要: 图片上传预览 使用smartUpload组件上传文件时的包:jsmartcom_zh_CN.jar 阅读全文
posted @ 2015-11-18 19:15 james-roger 阅读(229) 评论(0) 推荐(0) 编辑
摘要: package com.smart.base;import org.apache.commons.codec.binary.Base64;public class Base64Test { private static String src = "imooc security base64";... 阅读全文
posted @ 2015-11-18 10:36 james-roger 阅读(928) 评论(0) 推荐(0) 编辑

2015年10月10日

摘要: Hibernate 在不同的缓存区域保存不同的类/集合。 对于类而言,区域的名称是类名。如:com.atguigu.domain.Customer 对于集... 阅读全文
posted @ 2015-10-10 19:23 james-roger 阅读(405) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-10-10 19:22 james-roger 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23