上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 61 下一页
摘要: 动物叫 阅读全文
posted @ 2013-12-28 14:52 剑握在手 阅读(176) 评论(0) 推荐(0) 编辑
摘要: import javax.annotation.Resource;import org.junit.Test;import org.springframework.context.annotation.Configuration;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;import com.bjsxt.spring30.model.User;@Contex 阅读全文
posted @ 2013-12-25 13:55 剑握在手 阅读(360) 评论(0) 推荐(0) 编辑
摘要: SettingsThe following settings can be customized. See thedeveloper guide.SettingDescriptionDefaultPossible Valuesstruts.objectFactory.spring.autoWireThe autowire strategynamename,type,auto, orconstructorstruts.objectFactory.spring.autoWire.alwaysRespectWhether the autowire strategy should always be 阅读全文
posted @ 2013-12-24 16:41 剑握在手 阅读(475) 评论(0) 推荐(0) 编辑
摘要: AspectJ中使用CGLIB在spring中,当对没有实现接口的类使用aspect的时候,可以使用CGLIB,写道@Aspect@Component("updateInvocationDefinitionSource")public class UpdateInvocationDefinitionSource { @AfterReturning("execution(* com.mawujun.facade.MenuManager.save(..))") public void saveMenu() throws Exception{ System.o 阅读全文
posted @ 2013-12-24 12:01 剑握在手 阅读(865) 评论(0) 推荐(0) 编辑
摘要: HibernateTemplate利用模板设计模式,可将重复的opensession getcurrentsession工作省去,只将必要操作执行即可,其它的由spring来帮我们处理。 ... 阅读全文
posted @ 2013-12-24 00:57 剑握在手 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 声明事务可以省去手动添加事务以及异常处理的麻烦。注解方式: --> classpath:jdbc.properties com.bjsxt.model.User com.bjsxt.model.Log org.hibernate.dialect.MySQLDialect true ... 阅读全文
posted @ 2013-12-24 00:45 剑握在手 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 记得导入dbcp和pool的jar包。 --> classpath:jdbc.prop... 阅读全文
posted @ 2013-12-24 00:16 剑握在手 阅读(941) 评论(0) 推荐(0) 编辑
摘要: Spring 配置中的 ${} classpath:spring/jdbc-oracle.properties ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 当jdbc-oracle.properties文件加... 阅读全文
posted @ 2013-12-23 09:48 剑握在手 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 使用aop需要: --> 声明一个切面类: Declaring an aspect Us... 阅读全文
posted @ 2013-12-22 22:34 剑握在手 阅读(468) 评论(0) 推荐(0) 编辑
摘要: Aspect Oriented Programming 面向切面编程 在Spring中使用这些面向切面相关的注解可以结合使用aspectJ,aspectJ是专门搞动态代理技术的,所以比较专业。 需要在bean.xml中这样写: 使用aspectJ需要导入aspectj的jar包 a... 阅读全文
posted @ 2013-12-22 10:38 剑握在手 阅读(1046) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 61 下一页
返回顶部↑