摘要:
使用Spring面向切面编程 1.介绍 AOP是OOP的补充,提供了另一种关于程序结构的思路. OOP的模块化的关键单位是 类 . AOP的则是aspect切面. AOP 将程序的逻辑分成独立的块(叫做concern 重心,关注点). AOP是用来增加跨切重心(cross-cutting conce 阅读全文
posted @ 2018-05-30 22:14
宛如ZZ
阅读(154)
评论(0)
推荐(0)
摘要:
自动扫描: 在<beans>标签内, <context:annotation-config />允许使用注解 <context:component-scan base-package="test.sample.entity"></context:component-scan> 扫描test/samp 阅读全文
posted @ 2018-05-30 21:46
宛如ZZ
阅读(130)
评论(0)
推荐(0)
摘要:
ref:https://www.tutorialspoint.com/spring/spring_autowiring_byname.htm project:Working Set: Spring>Project:Spring02>的 entity>Person/User 和ApplicationC 阅读全文
posted @ 2018-05-30 17:13
宛如ZZ
阅读(781)
评论(0)
推荐(0)
摘要:
1. 该类在package org.springframework.context.support包下. 该包在4.0.1中封装在spring-context-***.jar中. 其无参构造函数的文档注释: * Create a new ClassPathXmlApplicationContext, 阅读全文
posted @ 2018-05-30 15:37
宛如ZZ
阅读(174)
评论(0)
推荐(0)
摘要:
事务 事务管理 事务管理器 Transaction Transactions TransactionManager 阅读全文
posted @ 2018-05-30 14:42
宛如ZZ
阅读(3254)
评论(0)
推荐(0)
摘要:
在mybatis中,SqlSessionFactory由SqlSessionFactoryBuilder创建. 在mybatis-spring中,是由SqlSessionFactoryBean创建的. 1.创建 注意SqlSessionFactoryBean实现了Spring的FactoryBean 阅读全文
posted @ 2018-05-30 11:02
宛如ZZ
阅读(10387)
评论(0)
推荐(1)
摘要:
<url-pattern>/*</url-pattern> The /* on a servlet overrides all other servlets, including all servlets provided by the servletcontainer such as the de 阅读全文
posted @ 2018-05-30 00:09
宛如ZZ
阅读(177)
评论(0)
推荐(0)
浙公网安备 33010602011771号