@@ -32,25 +32,25 @@ Out of the box bean scopes (singleton, prototype, request, session, global sessi
32
32
singleton Scopes the bean definition to a single instance per Spring container (default).
33
33
prototype Allows a bean to be instantiated any number of times (once per use).
34
34
request Scopes a bean definition to an HTTP request. Only valid when used with a
35
- web-capable Spring context (such as with Spring MVC).
35
+ web-capable Spring context (such as with Spring MVC).
36
36
session Scopes a bean definition to an HTTP session. Only valid when used with a
37
- web-capable Spring context (such as with Spring MVC).
37
+ web-capable Spring context (such as with Spring MVC).
38
38
global-session Scopes a bean definition to a global HTTP session. Only valid when used in a portlet context.
39
39
40
40
What are the types of Dependency Injection Spring supports?
41
41
Injecting through constructors
42
42
Injecting into bean properties
43
43
44
44
Autowiring. Types of autowiring.
45
- ? byName�Attempts to match all properties of the autowired bean with beans
45
+ byName�Attempts to match all properties of the autowired bean with beans
46
46
that have the same name (or ID) as the properties. Properties for which there�s
47
47
no matching bean will remain unwired.
48
- ? byType�Attempts to match all properties of the autowired bean with beans
48
+ byType�Attempts to match all properties of the autowired bean with beans
49
49
whose types are assignable to the properties. Properties for which there�s no
50
50
matching bean will remain unwired.
51
- ? constructor�Tries to match up a constructor of the autowired bean with
51
+ constructor�Tries to match up a constructor of the autowired bean with
52
52
beans whose types are assignable to the constructor arguments.
53
- ? autodetect�Attempts to apply constructor autowiring first. If that fails,
53
+ autodetect�Attempts to apply constructor autowiring first. If that fails,
54
54
byType will be tried.
55
55
56
56
What are inner beans.
0 commit comments