@@ -2806,7 +2806,7 @@ to do so:
28062806[source,java,indent=0]
28072807[subs="verbatim,quotes"]
28082808----
2809- ** @RequestScope**
2809+ @RequestScope
28102810 @Component
28112811 public class LoginAction {
28122812 // ...
@@ -2846,7 +2846,7 @@ When using annotation-driven components or Java configuration, you can use the
28462846[source,java,indent=0]
28472847[subs="verbatim,quotes"]
28482848----
2849- ** @SessionScope**
2849+ @SessionScope
28502850 @Component
28512851 public class UserPreferences {
28522852 // ...
@@ -2885,7 +2885,7 @@ following example shows how to do so:
28852885[source,java,indent=0]
28862886[subs="verbatim,quotes"]
28872887----
2888- ** @ApplicationScope**
2888+ @ApplicationScope
28892889 @Component
28902890 public class AppPreferences {
28912891 // ...
@@ -4893,7 +4893,7 @@ primary `MovieCatalog`:
48934893 public class MovieConfiguration {
48944894
48954895 @Bean
4896- ** @Primary**
4896+ @Primary
48974897 public MovieCatalog firstMovieCatalog() { ... }
48984898
48994899 @Bean
@@ -4938,7 +4938,7 @@ The corresponding bean definitions follow:
49384938
49394939 <context:annotation-config/>
49404940
4941- <bean class="example.SimpleMovieCatalog" ** primary="true"** >
4941+ <bean class="example.SimpleMovieCatalog" primary="true">
49424942 <!-- inject any dependencies required by this bean -->
49434943 </bean>
49444944
@@ -4971,7 +4971,7 @@ shown in the following example:
49714971 public class MovieRecommender {
49724972
49734973 @Autowired
4974- ** @Qualifier("main")**
4974+ @Qualifier("main")
49754975 private MovieCatalog movieCatalog;
49764976
49774977 // ...
@@ -4993,7 +4993,7 @@ method parameters, as shown in the following example:
49934993 private CustomerPreferenceDao customerPreferenceDao;
49944994
49954995 @Autowired
4996- public void prepare(** @Qualifier("main")** MovieCatalog movieCatalog,
4996+ public void prepare(@Qualifier("main") MovieCatalog movieCatalog,
49974997 CustomerPreferenceDao customerPreferenceDao) {
49984998 this.movieCatalog = movieCatalog;
49994999 this.customerPreferenceDao = customerPreferenceDao;
@@ -5113,7 +5113,7 @@ provide the `@Qualifier` annotation within your definition, as the following exa
51135113----
51145114 @Target({ElementType.FIELD, ElementType.PARAMETER})
51155115 @Retention(RetentionPolicy.RUNTIME)
5116- ** @Qualifier**
5116+ @Qualifier
51175117 public @interface Genre {
51185118
51195119 String value();
@@ -5131,13 +5131,13 @@ following example shows:
51315131 public class MovieRecommender {
51325132
51335133 @Autowired
5134- ** @Genre("Action")**
5134+ @Genre("Action")
51355135 private MovieCatalog actionCatalog;
51365136
51375137 private MovieCatalog comedyCatalog;
51385138
51395139 @Autowired
5140- public void setComedyCatalog(** @Genre("Comedy")** MovieCatalog comedyCatalog) {
5140+ public void setComedyCatalog(@Genre("Comedy") MovieCatalog comedyCatalog) {
51415141 this.comedyCatalog = comedyCatalog;
51425142 }
51435143
@@ -5169,12 +5169,12 @@ demonstrates both approaches:
51695169 <context:annotation-config/>
51705170
51715171 <bean class="example.SimpleMovieCatalog">
5172- ** <qualifier type="Genre" value="Action"/>**
5172+ <qualifier type="Genre" value="Action"/>
51735173 <!-- inject any dependencies required by this bean -->
51745174 </bean>
51755175
51765176 <bean class="example.SimpleMovieCatalog">
5177- ** <qualifier type="example.Genre" value="Comedy"/>**
5177+ <qualifier type="example.Genre" value="Comedy"/>
51785178 <!-- inject any dependencies required by this bean -->
51795179 </bean>
51805180
@@ -5496,7 +5496,7 @@ named `movieFinder` injected into its setter method:
54965496
54975497 private MovieFinder movieFinder;
54985498
5499- ** @Resource**
5499+ @Resource
55005500 public void setMovieFinder(MovieFinder movieFinder) {
55015501 this.movieFinder = movieFinder;
55025502 }
@@ -5705,7 +5705,7 @@ You can then use `@SessionScope` without declaring the `proxyMode` as follows:
57055705[subs="verbatim,quotes"]
57065706----
57075707 @Service
5708- ** @SessionScope**
5708+ @SessionScope
57095709 public class SessionScopedService {
57105710 // ...
57115711 }
@@ -5719,7 +5719,7 @@ You can also override the value for the `proxyMode`, as the following example sh
57195719[subs="verbatim,quotes"]
57205720----
57215721 @Service
5722- ** @SessionScope(proxyMode = ScopedProxyMode.INTERFACES)**
5722+ @SessionScope(proxyMode = ScopedProxyMode.INTERFACES)
57235723 public class SessionScopedUserService implements UserService {
57245724 // ...
57255725 }
@@ -6248,7 +6248,7 @@ technique:
62486248[subs="verbatim,quotes"]
62496249----
62506250 @Component
6251- ** @Qualifier("Action")**
6251+ @Qualifier("Action")
62526252 public class ActionMovieCatalog implements MovieCatalog {
62536253 // ...
62546254 }
@@ -6258,7 +6258,7 @@ technique:
62586258[subs="verbatim,quotes"]
62596259----
62606260 @Component
6261- ** @Genre("Action")**
6261+ @Genre("Action")
62626262 public class ActionMovieCatalog implements MovieCatalog {
62636263 // ...
62646264 }
@@ -6268,7 +6268,7 @@ technique:
62686268[subs="verbatim,quotes"]
62696269----
62706270 @Component
6271- ** @Offline**
6271+ @Offline
62726272 public class CachingMovieCatalog implements MovieCatalog {
62736273 // ...
62746274 }
@@ -7189,7 +7189,7 @@ as the following example shows:
71897189 public class MyConfiguration {
71907190
71917191 @Bean
7192- ** @Scope("prototype")**
7192+ @Scope("prototype")
71937193 public Encryptor encryptor() {
71947194 // ...
71957195 }
@@ -7217,7 +7217,7 @@ it resembles the following:
72177217----
72187218 // an HTTP Session-scoped bean exposed as a proxy
72197219 @Bean
7220- ** @SessionScope**
7220+ @SessionScope
72217221 public UserPreferences userPreferences() {
72227222 return new UserPreferences();
72237223 }
@@ -7298,7 +7298,7 @@ annotation, as the following example shows:
72987298 public class AppConfig {
72997299
73007300 @Bean
7301- ** @Description("Provides a basic example of a bean")**
7301+ @Description("Provides a basic example of a bean")
73027302 public Thing thing() {
73037303 return new Thing();
73047304 }
@@ -8127,7 +8127,7 @@ can rewrite the `dataSource` configuration as follows:
81278127[subs="verbatim,quotes"]
81288128----
81298129 @Configuration
8130- ** @Profile("development")**
8130+ @Profile("development")
81318131 public class StandaloneDataConfig {
81328132
81338133 @Bean
@@ -8145,7 +8145,7 @@ can rewrite the `dataSource` configuration as follows:
81458145[subs="verbatim,quotes"]
81468146----
81478147 @Configuration
8148- ** @Profile("production")**
8148+ @Profile("production")
81498149 public class JndiDataConfig {
81508150
81518151 @Bean(destroyMethod="")
@@ -8186,7 +8186,7 @@ of creating a custom composed annotation. The following example defines a custom
81868186----
81878187 @Target(ElementType.TYPE)
81888188 @Retention(RetentionPolicy.RUNTIME)
8189- ** @Profile("production")**
8189+ @Profile("production")
81908190 public @interface Production {
81918191 }
81928192----
@@ -8423,7 +8423,7 @@ following example:
84238423[subs="verbatim,quotes"]
84248424----
84258425 @Configuration
8426- ** @Profile("default")**
8426+ @Profile("default")
84278427 public class DefaultDataConfig {
84288428
84298429 @Bean
@@ -8540,7 +8540,7 @@ a call to `testBean.getName()` returns `myTestBean`:
85408540[subs="verbatim,quotes"]
85418541----
85428542 @Configuration
8543- ** @PropertySource("classpath:/com/myco/app.properties")**
8543+ @PropertySource("classpath:/com/myco/app.properties")
85448544 public class AppConfig {
85458545
85468546 @Autowired
0 commit comments