编程
_rhino_
这个作者很懒,什么都没留下…
展开
-
java中List转String[]
List<String> list = new ArrayList<String>();String[] strList = new String[list.size()];list.toArray(strList);原创 2013-06-05 15:04:33 · 136 阅读 · 0 评论 -
Spring中报错java.lang.ClassCastException:$Proxy1 incompatible with 类名
同事写接口时发现个异常Spring中报错java.lang.ClassCastException:$Proxy1 incompatible with 类名发现是使用XmlBeanFactory.getBean后强制转换成接口实现类了,应该转成接口才对。。...原创 2013-07-02 14:07:09 · 941 阅读 · 0 评论 -
面试1
面试题:对spring事务的看法?Spring事务管理的两种方式——编程式和声明式。Spring提供两种方式的编程式事务管理,分别是:使用TransactionTemplate和直接使用PlatformTransactionManager。◆为不同的事务API提供一致的编程模型,如JTA、JDBC、Hibernate、iBATIS数据库层JDO◆提供比大多数事务API更简单的、易...2013-07-10 12:23:36 · 123 阅读 · 0 评论