@@ -2656,7 +2656,7 @@ to do so:
26562656[source,java,indent=0]
26572657[subs="verbatim,quotes"]
26582658----
2659- ** @RequestScope**
2659+ @RequestScope
26602660 @Component
26612661 public class LoginAction {
26622662 // ...
@@ -2692,7 +2692,7 @@ When using annotation-driven components or Java configuration, you can use the
26922692[source,java,indent=0]
26932693[subs="verbatim,quotes"]
26942694----
2695- ** @SessionScope**
2695+ @SessionScope
26962696 @Component
26972697 public class UserPreferences {
26982698 // ...
@@ -2727,7 +2727,7 @@ following example shows how to do so:
27272727[source,java,indent=0]
27282728[subs="verbatim,quotes"]
27292729----
2730- ** @ApplicationScope**
2730+ @ApplicationScope
27312731 @Component
27322732 public class AppPreferences {
27332733 // ...
@@ -4615,7 +4615,7 @@ primary `MovieCatalog`:
46154615 public class MovieConfiguration {
46164616
46174617 @Bean
4618- ** @Primary**
4618+ @Primary
46194619 public MovieCatalog firstMovieCatalog() { ... }
46204620
46214621 @Bean
@@ -4656,7 +4656,7 @@ The corresponding bean definitions follow:
46564656
46574657 <context:annotation-config/>
46584658
4659- <bean class="example.SimpleMovieCatalog" ** primary="true"** >
4659+ <bean class="example.SimpleMovieCatalog" primary="true">
46604660 <!-- inject any dependencies required by this bean -->
46614661 </bean>
46624662
@@ -4687,7 +4687,7 @@ shown in the following example:
46874687 public class MovieRecommender {
46884688
46894689 @Autowired
4690- ** @Qualifier("main")**
4690+ @Qualifier("main")
46914691 private MovieCatalog movieCatalog;
46924692
46934693 // ...
@@ -4707,7 +4707,7 @@ method parameters, as shown in the following example:
47074707 private CustomerPreferenceDao customerPreferenceDao;
47084708
47094709 @Autowired
4710- public void prepare(** @Qualifier("main")** MovieCatalog movieCatalog,
4710+ public void prepare(@Qualifier("main") MovieCatalog movieCatalog,
47114711 CustomerPreferenceDao customerPreferenceDao) {
47124712 this.movieCatalog = movieCatalog;
47134713 this.customerPreferenceDao = customerPreferenceDao;
@@ -4823,7 +4823,7 @@ provide the `@Qualifier` annotation within your definition, as the following exa
48234823----
48244824 @Target({ElementType.FIELD, ElementType.PARAMETER})
48254825 @Retention(RetentionPolicy.RUNTIME)
4826- ** @Qualifier**
4826+ @Qualifier
48274827 public @interface Genre {
48284828
48294829 String value();
@@ -4839,13 +4839,13 @@ following example shows:
48394839 public class MovieRecommender {
48404840
48414841 @Autowired
4842- ** @Genre("Action")**
4842+ @Genre("Action")
48434843 private MovieCatalog actionCatalog;
48444844
48454845 private MovieCatalog comedyCatalog;
48464846
48474847 @Autowired
4848- public void setComedyCatalog(** @Genre("Comedy")** MovieCatalog comedyCatalog) {
4848+ public void setComedyCatalog(@Genre("Comedy") MovieCatalog comedyCatalog) {
48494849 this.comedyCatalog = comedyCatalog;
48504850 }
48514851
@@ -4875,12 +4875,12 @@ demonstrates both approaches:
48754875 <context:annotation-config/>
48764876
48774877 <bean class="example.SimpleMovieCatalog">
4878- ** <qualifier type="Genre" value="Action"/>**
4878+ <qualifier type="Genre" value="Action"/>
48794879 <!-- inject any dependencies required by this bean -->
48804880 </bean>
48814881
48824882 <bean class="example.SimpleMovieCatalog">
4883- ** <qualifier type="example.Genre" value="Comedy"/>**
4883+ <qualifier type="example.Genre" value="Comedy"/>
48844884 <!-- inject any dependencies required by this bean -->
48854885 </bean>
48864886
@@ -5179,7 +5179,7 @@ named `movieFinder` injected into its setter method:
51795179
51805180 private MovieFinder movieFinder;
51815181
5182- ** @Resource**
5182+ @Resource
51835183 public void setMovieFinder(MovieFinder movieFinder) {
51845184 this.movieFinder = movieFinder;
51855185 }
@@ -5381,7 +5381,7 @@ You can then use `@SessionScope` without declaring the `proxyMode` as follows:
53815381[subs="verbatim,quotes"]
53825382----
53835383 @Service
5384- ** @SessionScope**
5384+ @SessionScope
53855385 public class SessionScopedService {
53865386 // ...
53875387 }
@@ -5393,7 +5393,7 @@ You can also override the value for the `proxyMode`, as the following example sh
53935393[subs="verbatim,quotes"]
53945394----
53955395 @Service
5396- ** @SessionScope(proxyMode = ScopedProxyMode.INTERFACES)**
5396+ @SessionScope(proxyMode = ScopedProxyMode.INTERFACES)
53975397 public class SessionScopedUserService implements UserService {
53985398 // ...
53995399 }
@@ -5896,7 +5896,7 @@ technique:
58965896[subs="verbatim,quotes"]
58975897----
58985898 @Component
5899- ** @Qualifier("Action")**
5899+ @Qualifier("Action")
59005900 public class ActionMovieCatalog implements MovieCatalog {
59015901 // ...
59025902 }
@@ -5906,7 +5906,7 @@ technique:
59065906[subs="verbatim,quotes"]
59075907----
59085908 @Component
5909- ** @Genre("Action")**
5909+ @Genre("Action")
59105910 public class ActionMovieCatalog implements MovieCatalog {
59115911 // ...
59125912 }
@@ -5916,7 +5916,7 @@ technique:
59165916[subs="verbatim,quotes"]
59175917----
59185918 @Component
5919- ** @Offline**
5919+ @Offline
59205920 public class CachingMovieCatalog implements MovieCatalog {
59215921 // ...
59225922 }
@@ -6782,7 +6782,7 @@ as the following example shows:
67826782 public class MyConfiguration {
67836783
67846784 @Bean
6785- ** @Scope("prototype")**
6785+ @Scope("prototype")
67866786 public Encryptor encryptor() {
67876787 // ...
67886788 }
@@ -6808,7 +6808,7 @@ it resembles the following:
68086808----
68096809 // an HTTP Session-scoped bean exposed as a proxy
68106810 @Bean
6811- ** @SessionScope**
6811+ @SessionScope
68126812 public UserPreferences userPreferences() {
68136813 return new UserPreferences();
68146814 }
@@ -6883,7 +6883,7 @@ annotation, as the following example shows:
68836883 public class AppConfig {
68846884
68856885 @Bean
6886- ** @Description("Provides a basic example of a bean")**
6886+ @Description("Provides a basic example of a bean")
68876887 public Thing thing() {
68886888 return new Thing();
68896889 }
@@ -7674,7 +7674,7 @@ can rewrite the `dataSource` configuration as follows:
76747674[subs="verbatim,quotes"]
76757675----
76767676 @Configuration
7677- ** @Profile("development")**
7677+ @Profile("development")
76787678 public class StandaloneDataConfig {
76797679
76807680 @Bean
@@ -7692,7 +7692,7 @@ can rewrite the `dataSource` configuration as follows:
76927692[subs="verbatim,quotes"]
76937693----
76947694 @Configuration
7695- ** @Profile("production")**
7695+ @Profile("production")
76967696 public class JndiDataConfig {
76977697
76987698 @Bean(destroyMethod="")
@@ -7731,7 +7731,7 @@ of creating a custom composed annotation. The following example defines a custom
77317731----
77327732 @Target(ElementType.TYPE)
77337733 @Retention(RetentionPolicy.RUNTIME)
7734- ** @Profile("production")**
7734+ @Profile("production")
77357735 public @interface Production {
77367736 }
77377737----
@@ -7952,7 +7952,7 @@ following example:
79527952[subs="verbatim,quotes"]
79537953----
79547954 @Configuration
7955- ** @Profile("default")**
7955+ @Profile("default")
79567956 public class DefaultDataConfig {
79577957
79587958 @Bean
@@ -8063,7 +8063,7 @@ a call to `testBean.getName()` returns `myTestBean`:
80638063[subs="verbatim,quotes"]
80648064----
80658065 @Configuration
8066- ** @PropertySource("classpath:/com/myco/app.properties")**
8066+ @PropertySource("classpath:/com/myco/app.properties")
80678067 public class AppConfig {
80688068
80698069 @Autowired
0 commit comments