摘要: 一:依赖注入的方式 constructor-arg:通过构造函数注入。 property:通过setxx方法注入。 二:constructor-arg的简单使用 java代码 Java代码 public class Man { private String name ; private int ag 阅读全文
posted @ 2016-03-02 15:29 去三存一 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 超级管理员登录:运行下面代码 alter user [username] account unlock; 阅读全文
posted @ 2016-02-20 10:29 去三存一 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 实现select标签回显 1.<select name="curStatus" > <option value="0">-请选择-</option> <option value="1" <c:if test="${'1' eq curStatus}">selected</c:if> >男</opti 阅读全文
posted @ 2016-02-20 10:27 去三存一 阅读(7303) 评论(0) 推荐(0) 编辑
摘要: 解决方案1.是因为Hibernate和struts2引入的包产生冲突啦,去把xerces.jar移除就ok啦。路径所在 D:\Program Files\MyEclipse 7.0M1\eclipse\dropins\myeclipse\eclipse\plugins\com.genuitec... 阅读全文
posted @ 2015-11-10 11:59 去三存一 阅读(146) 评论(0) 推荐(0) 编辑
摘要: windows7上,cmd窗口默认编码为gbk,输出文本又包含非法字符,解决方法:文本.encode('utf-8','ignore');ignore为忽略那些非法字符。 阅读全文
posted @ 2015-09-10 18:39 去三存一 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Threading;using System... 阅读全文
posted @ 2015-09-06 17:09 去三存一 阅读(224) 评论(0) 推荐(0) 编辑
摘要: SQL:"IN"FunctionTheINfunctionhelpsreducetheneedtousemultipleORconditions.译:IN函数有助于减少OR条件的复合使用。ThesyntaxfortheINfunctionis:译:IN函数的语法:SELECTcolumnsFROMt... 阅读全文
posted @ 2015-08-29 14:42 去三存一 阅读(11230) 评论(0) 推荐(0) 编辑