摘要:
以前写在百度空间的,搬楼了-------------------------分割线----------------------------研究了下,网上资料也不少,看来ORM的ibatis还是很多人热衷的。因为ibatis是作为数据访问的,必然有自己的数据源,我们使用spring中的数据源来代替ibatis的,删除ibatis中数据源相关datasource部分,在spring配置文件中添加以下代... 阅读全文
posted @ 2010-02-06 12:07
雪霁霜飞
阅读(1181)
评论(0)
推荐(0)
摘要:
如何在spring中使用配置文件呢?以前觉得很神奇,写ibatis和spring整合的时候发现可以用PropertiesFactoryBean来导入properties配置,使用占位符来应用,真是太神奇了。在spring2.0后貌似简化了,使用util的标签就可以到入,貌似换汤不换药。。<beanid="jdbcConfiguration"class="org.springframework.beans.factory.config.PropertiesFactoryBean"><propertyname="location& 阅读全文
posted @ 2010-02-06 12:02
雪霁霜飞
阅读(349)
评论(0)
推荐(0)
摘要:
网上搜到一段取mac的代码,刚好用到,存下,改进使用正则表达式来匹配mac获取mac地址Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--public String getMACAddress(String ip) { String str = ""; ... 阅读全文
posted @ 2010-02-06 11:04
雪霁霜飞
阅读(269)
评论(0)
推荐(0)
浙公网安备 33010602011771号