摘要: 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 剑握在手 阅读(480) 评论(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 剑握在手 阅读(874) 评论(0) 推荐(0)
摘要: HibernateTemplate利用模板设计模式,可将重复的opensession getcurrentsession工作省去,只将必要操作执行即可,其它的由spring来帮我们处理。 ... 阅读全文
posted @ 2013-12-24 00:57 剑握在手 阅读(252) 评论(0) 推荐(0)
摘要: 声明事务可以省去手动添加事务以及异常处理的麻烦。注解方式: --> classpath:jdbc.properties com.bjsxt.model.User com.bjsxt.model.Log org.hibernate.dialect.MySQLDialect true ... 阅读全文
posted @ 2013-12-24 00:45 剑握在手 阅读(211) 评论(0) 推荐(0)
摘要: 记得导入dbcp和pool的jar包。 --> classpath:jdbc.prop... 阅读全文
posted @ 2013-12-24 00:16 剑握在手 阅读(953) 评论(0) 推荐(0)
返回顶部↑