摘要:
> Spring AOP + AspectJ> Using AspectJ is more flexible and powerful.Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cut... 阅读全文
摘要:
In Spring, `@Qualifier` means, which bean is qualify to autowired on a field. See following scenario :##Autowiring ExampleSee below example, it will a... 阅读全文
摘要:
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... 阅读全文
摘要:
In Spring, “Autowiring by AutoDetect“, means chooses “autowire by constructor” if default constructor (argument with any data type), otherwise uses “a... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
In Spring framework, you can wire beans automatically with auto-wiring feature. To enable it, just define the “`autowire`” attribute in ``.``` ```In S... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
Spring expression language (SpEL) supports many functionality, and you can test those expression features with this special “`ExpressionParser`” inter... 阅读全文
摘要:
Spring EL supports regular expression using a simple keyword “`matches`“, which is really awesome! For examples,``` @Value("#{'100' matches '\\d+' }")... 阅读全文
摘要:
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... 阅读全文
摘要:
Spring EL supports ternary operator , perform “if then else” conditional checking. For example,```condition ? true : false```##Spring EL in Annotation... 阅读全文
摘要:
Spring EL supports most of the standard mathematical, logical or relational operators. For example,- Relational operators – equal (`==`, `eq`), not eq... 阅读全文
摘要:
In Spring EL, you can reference a bean, and nested properties using a ‘dot (`.`)‘ symbol. For example, “`bean.property_name`“.```public class Customer... 阅读全文