上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 材料: 鸡蛋2只 芒果一个 酸奶120g 低筋面粉33g 纯净水25g 做法: 1. 蛋清分离 2. 蛋黄加入水,倒入低筋面粉,搅拌均匀 3. 芒果切丁捣成泥,加入面糊,搅拌均匀 4. 蛋清打发成泡沫,三分之一蛋清加入面糊,搅拌均匀后再倒入剩下蛋清,搅拌军训,倒入六寸模具 5. 烤箱预热150度,放中层,150度烤30min ... 阅读全文
posted @ 2014-09-04 15:18 dorothychai 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 生活从吃开始~~ 阅读全文
posted @ 2014-09-04 15:10 dorothychai 阅读(169) 评论(1) 推荐(0) 编辑
摘要: 第三章 最小化Spring xml配置 自动装配(autowiring) 自动检测(autodiscovery) 自动装配 byName、byType、constructor autodetect(首先constructor,然后byType) 默认自动装配 (default-autowire默认为none,不进行自动装配) ... 阅读全文
posted @ 2014-09-02 16:08 dorothychai 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 初始化和销毁Bean init-method && destory-method 如果上下文中有很多Bean都有相同name的初始化方法和销毁方法。可以在Beans元素的default-init-method && default-destory-method方法中声明。 .... 使用元素配置Bean属性,... 阅读全文
posted @ 2014-09-02 11:15 dorothychai 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 第一章 Spring之旅 POJO: plain old java object 简单的java对象 DI:Dependency Injection 依赖注入 构造器注入:构造时作为构造器参数传入 private Quest quest; public BraveKnight(Quest quest){ this.quest = quest; } ... 阅读全文
posted @ 2014-09-01 15:33 dorothychai 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 修改MyEclipse eclipse 注释的作者名字 转自:http://www.oschina.net/question/158170_31311 在eclipse/myeclipse中,当我们去添加注释的作者选项时,@author 后边一般都会默认填充的你登录计算机的用户名。如何去修改呢: 方法一:修改计算机登录的用户名(99.9999%的人应该都不愿意去这样做,特别是一些公司的域帐户登录... 阅读全文
posted @ 2014-08-27 11:37 dorothychai 阅读(2206) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping(method=RequestMethod.POST,value = "/upload") public ModelAndView processImageUpload(@RequestParam(value="groupname",required=false) String group, @RequestParam(valu... 阅读全文
posted @ 2014-08-19 13:31 dorothychai 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 【转】 解决方法: http://forum.springsource.org/showthread.php?85016-IllegalArgumentException-with-ApplicationContextAware-Proxy 在配置文件中加入proxy-target-class="true" 或者: 现在我的配置文件如下: ... 阅读全文
posted @ 2014-08-13 12:40 dorothychai 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 最近项目里用到了 spring mvc 的restful + mybatis, 其中restful提供web 服务,mybatis用数据库操作。 现在需要在此框架基础上,监听web服务的各类请求。 首先web项目部署在tomcat上,可以从tomcat的conf/server.xml中看到,关于log的配置,如下: 如此,在项目工程下查找\workspace\.... 阅读全文
posted @ 2014-08-07 14:07 dorothychai 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/jimanyu/article/details/9697833 下面是具体的步骤 一:确定无线网卡的型号,驱动下载 第一步要确定机子的无线网卡型号是什么,可以用命令 [root@CentOS ~]$/sbin/lspci | grep Broadcom02:00.0 Network controller: Broadcom Corporation... 阅读全文
posted @ 2014-07-11 19:05 dorothychai 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 转自: http://wanyij.blog.51cto.com/46570/139377 为了方便自己在一台机器上同时访问内网和外网,自己对系统路由作了一点点更改,既方便了自己,又学习到了相关的路由知识。 网络环境(我办公室真实的网络环境): 1、一台主机; 2、两张网卡; 3、外网通过SOHO路由器上ADSL,网关为192.168.0.1,本机外网IP为192.168... 阅读全文
posted @ 2014-07-09 16:00 dorothychai 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: 修改my.cnf文件即可。 ************************************ 在/etc/my.cnf下添加如下两行代码: wait_timeout=31536000interactive_timeout=31536000 如果找不到my.cnf文件,参考如下: ************************************ Linux下用rpm包安装的MySQL... 阅读全文
posted @ 2014-07-08 10:45 dorothychai 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 右键属性--Java build path--Libraries--add library--Web app libraries -- next --next -- ok 阅读全文
posted @ 2014-06-26 16:20 dorothychai 阅读(362) 评论(0) 推荐(0) 编辑
摘要: String filePath="src/cn/ac/iscas/pebble/ufe/conf/id.properties"; InputStream in = new BufferedInputStream(new FileInputStream(filePath)); int i = 0; Pr... 阅读全文
posted @ 2014-06-26 15:45 dorothychai 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_6721f25c0100nuf0.html 设置标题的时候希望出现多标题并且自动编号的标题,如下1.XXXXXXXXXXX1.1XXXXXXXXXXX1.2XXXXXXXXXXX1.3XXXXXXXXXXX2XXXXXXXXXXX2.1XXXXXXXXXXX2.2... 阅读全文
posted @ 2014-06-25 16:42 dorothychai 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: private void GetXMLDocument(Document doc) { OutputFormat format1 = new OutputFormat(" ", true); format1.setEncoding("UTF-8"); XMLWriter out1=new XMLWriter(new P... 阅读全文
posted @ 2014-06-22 00:55 dorothychai 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1. 子类的主键名称不相同。 2. 基类可能支持联合主键,也可能是单一主键。 实现方法: 添加一个参数列表,来记录主键的名称,如下: private String[] primaryKey; public void sPrimaryKey(String... primaryKey){ Assert.notEmpty(primaryKey, "'primary... 阅读全文
posted @ 2014-06-10 23:43 dorothychai 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 具体方法: 1. 在jaxb的setClasstobebounds中,只需要子类的class,无需父类。 2. 父类的前面加如下声明: @XmlAccessorType(XmlAccessType.FIELD) @XmlSeeAlso({ 子类.class }) public class 父类 extends Entity{ @XmlElement public Stri... 阅读全文
posted @ 2014-06-10 23:20 dorothychai 阅读(1821) 评论(0) 推荐(0) 编辑
摘要: 在Spring的配置文件中,如下: /WEB-INF/database.properties ... 阅读全文
posted @ 2014-06-10 23:13 dorothychai 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 参考http://jackyrong.iteye.com/blog/1826699JAXB转换JAVA OBJECT到XML的时候,对java.util.Date的转换有些要注意的地方输出的格式为:2014-05-18T12:00:09+08:00希望能够自定义date的format,具体解决方法如... 阅读全文
posted @ 2014-05-29 21:33 dorothychai 阅读(1209) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页