摘要: 一、面向切面编程 配置applicationContext.xml文件 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x 阅读全文
posted @ 2017-09-19 17:33 亦真亦假,何必当真 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 一、使用注解方式 实体和表之间的映射 配置spring的applicationContext.xml文件: <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <p 阅读全文
posted @ 2017-09-19 15:52 亦真亦假,何必当真 阅读(125) 评论(0) 推荐(0) 编辑