Skip to content

Commit ed451c1

Browse files
committed
Polishing
1 parent 452257e commit ed451c1

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

framework-docs/modules/ROOT/pages/data-access/jdbc/simple.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ configuration options. You should instantiate the `SimpleJdbcInsert` in the data
1515
layer's initialization method. For this example, the initializing method is the
1616
`setDataSource` method. You do not need to subclass the `SimpleJdbcInsert` class. Instead,
1717
you can create a new instance and set the table name by using the `withTableName` method.
18-
Configuration methods for this class follow the `fluid` style that returns the instance
18+
Configuration methods for this class follow the `fluent` style that returns the instance
1919
of the `SimpleJdbcInsert`, which lets you chain all configuration methods. The following
2020
example uses only one configuration method (we show examples of multiple methods later):
2121

framework-docs/modules/ROOT/pages/integration/aot-cache.adoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
:page-aliases: integration/class-data-sharing.adoc
44
:page-aliases: integration/cds.adoc
55

6-
The ahead-of-time cache is a JVM feature introduced in Java 24 via the
6+
The ahead-of-time cache is a JVM feature introduced in Java 24 via
77
https://openjdk.org/jeps/483[JEP 483] that can help reduce the startup time and memory
8-
footprint of Java applications. AOT cache is a natural evolution of https://docs.oracle.com/en/java/javase/17/vm/class-data-sharing.html[Class Data Sharing (CDS)].
8+
footprint of Java applications. AOT cache is a natural evolution of
9+
https://docs.oracle.com/en/java/javase/17/vm/class-data-sharing.html[Class Data Sharing (CDS)].
910
Spring Framework supports both CDS and AOT cache, and it is recommended that you use the
1011
latter if available in the JVM version you are using (Java 24+).
1112

1213
To use this feature, an AOT cache should be created for the particular classpath of the
1314
application. It is possible to create this cache on the deployed instance, or during a
14-
training run performed for example when packaging the application thanks to an hook-point
15+
training run performed for example when packaging the application thanks to a hook-point
1516
provided by the Spring Framework to ease such use case. Once the cache is available, users
1617
should opt in to use it via a JVM flag.
1718

1819
NOTE: If you are using Spring Boot, it is highly recommended to leverage its
1920
{spring-boot-docs-ref}/packaging/efficient.html#packaging.efficient.unpacking[executable JAR unpacking support]
20-
which is designed to fulfill the class loading requirements of both AOT cache and CDS.
21+
which is designed to fulfill the class loading requirements of both the AOT cache and CDS.
2122

2223
== Creating the cache
2324

@@ -29,7 +30,7 @@ invoked; but the lifecycle has not started, and the `ContextRefreshedEvent` has
2930
been published.
3031

3132
To create the cache during the training run, it is possible to specify the `-Dspring.context.exit=onRefresh`
32-
JVM flag to start then exit your Spring application once the
33+
JVM flag to start and then exit your Spring application once the
3334
`ApplicationContext` has refreshed:
3435

3536

@@ -82,7 +83,7 @@ java -XX:SharedArchiveFile=app.jsa ...
8283

8384
Pay attention to the logs and the startup time to check if the AOT cache is used successfully.
8485
To figure out how effective the cache is, you can enable class loading logs by adding
85-
an extra attribute: `-Xlog:class+load:file=aot-cache.log`. This creates a `aot-cache.log` with
86+
an extra attribute: `-Xlog:class+load:file=aot-cache.log`. This creates an `aot-cache.log` with
8687
every attempt to load a class and its source. Classes that are loaded from the cache should have
8788
a "shared objects file" source, as shown in the following example:
8889

@@ -95,11 +96,11 @@ a "shared objects file" source, as shown in the following example:
9596
[0.151s][info][class,load] org.springframework.context.MessageSource source: shared objects file
9697
----
9798

98-
If the AOT cache can't be enabled or if you have a large number of classes that are not loaded from
99+
If the AOT cache cannot be enabled or if you have a large number of classes that are not loaded from
99100
the cache, make sure that the following conditions are fulfilled when creating and using the cache:
100101

101102
- The very same JVM must be used.
102103
- The classpath must be specified as a JAR or a list of JARs, and avoid the usage of directories and `*` wildcard characters.
103104
- The timestamps of the JARs must be preserved.
104-
- When using the cache, the classpath must be the same than the one used to create it, in the same order.
105-
Additional JARs or directories can be specified *at the end* (but won't be cached).
105+
- When using the cache, the classpath must be the same as the one used to create it, in the same order.
106+
Additional JARs or directories can be specified *at the end* (but will not be cached).

framework-docs/modules/ROOT/pages/integration/appendix.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
[[appendix]]
22
= Appendix
33

4-
5-
6-
74
[[appendix.xsd-schemas]]
85
== XML Schemas
96

107
This part of the appendix lists XML schemas related to integration technologies.
118

12-
13-
149
[[appendix.xsd-schemas-jee]]
1510
=== The `jee` Schema
1611

0 commit comments

Comments
 (0)