会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
单方面
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
18
下一页
2014年12月3日
could not initialize proxy - no Session
摘要: 只需要把关联类配置lazy='false',也就是立即加载例如:public class stu{ private int stuid;}public class score{ private stu s;}stu.cfg.xml把lazy='false'
阅读全文
posted @ 2014-12-03 23:59 单方面
阅读(199)
评论(0)
推荐(0)
2014年10月29日
validate的使用
摘要: 日期和时间验证或者按照指定的格式进行验证,或者使用的标准格式指定的区域设置。 日期验证 - 验证日期转换为java.util.Date的类型。 日历验证 - 验证日期转换为java.util.Calendar中的类型。 时间验证 - 验证时间转换为java.util.Calendar中的类型。 ...
阅读全文
posted @ 2014-10-29 09:54 单方面
阅读(5246)
评论(0)
推荐(0)
2014年10月27日
beanutils中类型转换
摘要: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { MyBean myBean=new MyBean(); ...
阅读全文
posted @ 2014-10-27 02:50 单方面
阅读(677)
评论(0)
推荐(0)
beanutils中WrapDynaBean
摘要: public class Emp { private String firstName="李"; private String lastName; public Emp() { } ; public String getFirstName() { return firstName; } pub...
阅读全文
posted @ 2014-10-27 02:48 单方面
阅读(299)
评论(0)
推荐(0)
beanutils中Lazy
摘要: public class LazyBean {// public static void main(String[] args) {// DynaBean dynaBean=new LazyDynaBean();// dynaBean.set("foo", "bar");//单独// dyna...
阅读全文
posted @ 2014-10-27 02:47 单方面
阅读(254)
评论(0)
推荐(0)
beanutils中jdbc
摘要: public class JDBCTest {// public static void main(String[] args) throws Exception {// Class.forName("com.mysql.jdbc.Driver");// Connection conn=Driv...
阅读全文
posted @ 2014-10-27 02:45 单方面
阅读(196)
评论(0)
推荐(0)
beanutils设置参数和获取参数
摘要: public class Employee implements DynaBean { private String firstName="李"; private String lastName; public Employee() { } ; public String getFirstNam...
阅读全文
posted @ 2014-10-27 02:44 单方面
阅读(306)
评论(0)
推荐(0)
2014年10月26日
beanutils获取带参数get方法
摘要: public Employee getEmployee(int index) { return new Employee(); }1、PropertyUtils.getIndexedProperty带2个参数 // public static void main(String[] args) t...
阅读全文
posted @ 2014-10-26 20:33 单方面
阅读(475)
评论(0)
推荐(0)
beanutils通过SimpleProperty使用get或set方法赋值
摘要: public class Employee { private String firstName; private String lastName; public Employee() { } ; public String getFirstName() { return firstName;...
阅读全文
posted @ 2014-10-26 20:12 单方面
阅读(469)
评论(0)
推荐(0)
2014年10月23日
C3P0配置
摘要: 所需要的jar包,c3p0-0.9.5-pre9.jar,mchange-commons-java-0.2.8.jar,hsqldb.jar//普通 public static void main(String[] args) { ComboPooledDataSource cpds = new ...
阅读全文
posted @ 2014-10-23 21:22 单方面
阅读(361)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
18
下一页
公告