摘要: > Spring AOP + AspectJ> Using AspectJ is more flexible and powerful.Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cut... 阅读全文
posted @ 2015-08-22 15:01 wuhn 阅读(272) 评论(0) 推荐(0) 编辑
摘要: In Spring, `@Qualifier` means, which bean is qualify to autowired on a field. See following scenario :##Autowiring ExampleSee below example, it will a... 阅读全文
posted @ 2015-08-22 14:44 wuhn 阅读(268) 评论(0) 推荐(0) 编辑
摘要: In last Spring auto-wiring in XML example, it will autowired the matched property of any bean in current Spring container. In most cases, you may need... 阅读全文
posted @ 2015-08-22 14:40 wuhn 阅读(302) 评论(0) 推荐(0) 编辑
摘要: In Spring, “Autowiring by AutoDetect“, means chooses “autowire by constructor” if default constructor (argument with any data type), otherwise uses “a... 阅读全文
posted @ 2015-08-22 13:03 wuhn 阅读(277) 评论(0) 推荐(0) 编辑
摘要: In Spring, “Autowiring by Constructor” is actually autowiring by Type in constructor argument. It means, if data type of a bean is same as the data ty... 阅读全文
posted @ 2015-08-22 11:41 wuhn 阅读(248) 评论(0) 推荐(0) 编辑
摘要: In Spring, “Autowiring by Name” means, if the name of a bean is same as the name of other bean property, auto wire it.For example, if a “`customer`” b... 阅读全文
posted @ 2015-08-22 11:38 wuhn 阅读(224) 评论(0) 推荐(0) 编辑
摘要: In Spring, “Autowiring by Type” means, if data type of a bean is compatible with the data type of other bean property, auto wire it.For example, a “`p... 阅读全文
posted @ 2015-08-22 11:35 wuhn 阅读(209) 评论(0) 推荐(0) 编辑
摘要: In Spring framework, you can wire beans automatically with auto-wiring feature. To enable it, just define the “`autowire`” attribute in ``.``` ```In S... 阅读全文
posted @ 2015-08-22 11:30 wuhn 阅读(208) 评论(0) 推荐(0) 编辑
摘要: In this Spring auto component scanning tutorial, you learn about how to make Spring auto scan your components. In this article, we show you how to do ... 阅读全文
posted @ 2015-08-22 11:07 wuhn 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Normally you declare all the beans or components in XML bean configuration file, so that Spring container can detect and register your beans or compon... 阅读全文
posted @ 2015-08-22 11:04 wuhn 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Spring expression language (SpEL) supports many functionality, and you can test those expression features with this special “`ExpressionParser`” inter... 阅读全文
posted @ 2015-08-22 10:54 wuhn 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Spring EL supports regular expression using a simple keyword “`matches`“, which is really awesome! For examples,``` @Value("#{'100' matches '\\d+' }")... 阅读全文
posted @ 2015-08-22 09:40 wuhn 阅读(149) 评论(0) 推荐(0) 编辑
摘要: In this article, we show you how to use Spring EL to get value from `Map` and `List`. Actually, the way of SpEL works with `Map` and `List` is exactly... 阅读全文
posted @ 2015-08-22 09:36 wuhn 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Spring EL supports ternary operator , perform “if then else” conditional checking. For example,```condition ? true : false```##Spring EL in Annotation... 阅读全文
posted @ 2015-08-22 09:33 wuhn 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Spring EL supports most of the standard mathematical, logical or relational operators. For example,- Relational operators – equal (`==`, `eq`), not eq... 阅读全文
posted @ 2015-08-22 09:30 wuhn 阅读(167) 评论(0) 推荐(0) 编辑
摘要: In Spring EL, you can reference a bean, and nested properties using a ‘dot (`.`)‘ symbol. For example, “`bean.property_name`“.```public class Customer... 阅读全文
posted @ 2015-08-22 09:20 wuhn 阅读(178) 评论(0) 推荐(0) 编辑