Skip to content

Commit 61a1c04

Browse files
committed
Merge pull request #42718 from ngocnhan-tran1996
* pr/42718: Fix typos and formatting errors in documentation Closes gh-42718
2 parents 5732782 + 6be4a07 commit 61a1c04

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/io/caching.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In a nutshell, to add caching to an operation of your service add the relevant a
1313
include-code::MyMathService[]
1414

1515
This example demonstrates the use of caching on a potentially costly operation.
16-
Before invoking `computePiDecimal`, the abstraction looks for an entry in the `piDecimals` cache that matches the `i` argument.
16+
Before invoking `computePiDecimal`, the abstraction looks for an entry in the `piDecimals` cache that matches the `precision` argument.
1717
If an entry is found, the content in the cache is immediately returned to the caller, and the method is not invoked.
1818
Otherwise, the method is invoked, and the cache is updated before returning the value.
1919

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/io/jta.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ Spring Boot tries to auto-configure JMS by looking for a `ConnectionFactory` at
2626
When using JTA, the primary JMS `ConnectionFactory` bean is XA-aware and participates in distributed transactions.
2727
You can inject into your bean without needing to use any `@Qualifier`:
2828

29-
include-code::primary/MyBean[tag=*]
29+
include-code::primary/MyBean[]
3030

3131
In some situations, you might want to process certain JMS messages by using a non-XA `ConnectionFactory`.
3232
For example, your JMS processing logic might take longer than the XA timeout.
3333

3434
If you want to use a non-XA `ConnectionFactory`, you can the `nonXaJmsConnectionFactory` bean:
3535

36-
include-code::nonxa/MyBean[tag=*]
36+
include-code::nonxa/MyBean[]
3737

3838
For consistency, the `jmsConnectionFactory` bean is also provided by using the bean alias `xaJmsConnectionFactory`:
3939

40-
include-code::xa/MyBean[tag=*]
40+
include-code::xa/MyBean[]
4141

4242

4343

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/amqp.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The following sample component creates a listener endpoint on the `someQueue` qu
110110

111111
include-code::MyBean[]
112112

113-
TIP: See javadoc:{url-spring-amqp-javadoc}/org.springframework.amqp.rabbit.annotation.EnableRabbit.html[format=annotation] for more details.
113+
TIP: See javadoc:{url-spring-amqp-javadoc}/org.springframework.amqp.rabbit.annotation.EnableRabbit[format=annotation] for more details.
114114

115115
If you need to create more `RabbitListenerContainerFactory` instances or if you want to override the default, Spring Boot provides a `SimpleRabbitListenerContainerFactoryConfigurer` and a `DirectRabbitListenerContainerFactoryConfigurer` that you can use to initialize a `SimpleRabbitListenerContainerFactory` and a `DirectRabbitListenerContainerFactory` with the same settings as the factories used by the auto-configuration.
116116

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/io/jta/mixingxaandnonxaconnections/nonxa/MyBean.java

-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222

2323
public class MyBean {
2424

25-
// tag::code[]
2625
public MyBean(@Qualifier("nonXaJmsConnectionFactory") ConnectionFactory connectionFactory) {
2726
// ...
2827
}
29-
// end::code[]
3028

3129
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/io/jta/mixingxaandnonxaconnections/primary/MyBean.java

-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020

2121
public class MyBean {
2222

23-
// tag::code[]
2423
public MyBean(ConnectionFactory connectionFactory) {
2524
// ...
2625
}
27-
// end::code[]
2826

2927
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/io/jta/mixingxaandnonxaconnections/xa/MyBean.java

-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222

2323
public class MyBean {
2424

25-
// tag::code[]
2625
public MyBean(@Qualifier("xaJmsConnectionFactory") ConnectionFactory connectionFactory) {
2726
// ...
2827
}
29-
// end::code[]
3028

3129
}

0 commit comments

Comments
 (0)