You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ To build a war file that is both executable and deployable into an external cont
151
151
</project>
152
152
----
153
153
154
-
TIP: See the "`<<howto-create-a-deployable-war-file>>`" section for more details on how to create a deployable war file.
154
+
TIP: See the "`<<howto.adoc#howto-create-a-deployable-war-file>>`" section for more details on how to create a deployable war file.
155
155
156
156
Advanced configuration options and examples are available in the {spring-boot-maven-plugin-docs}[plugin info page].
157
157
@@ -350,7 +350,7 @@ If your archive already includes libraries, you can use `Libraries.NONE`.
350
350
351
351
[[build-tool-plugins-find-a-main-class]]
352
352
=== Finding a Main Class
353
-
If you do not use `Repackager.setMainClass()` to specify a main class, the repackager uses https://asm.ow2.org/[ASM] to read class files and tries to find a suitable class with a `public static void main(String[] args)` method.
353
+
If you do not use `Repackager.setMainClass()` to specify a main class, the repackager uses https://asm.ow2.io/[ASM] to read class files and tries to find a suitable class with a `public static void main(String[] args)` method.
354
354
An exception is thrown if more than one candidate is found.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -342,7 +342,7 @@ Google Cloud has several options that can be used to launch Spring Boot applicat
342
342
The easiest to get started with is probably App Engine, but you could also find ways to run Spring Boot in a container with Container Engine or on a virtual machine with Compute Engine.
343
343
344
344
To run in App Engine, you can create a project in the UI first, which sets up a unique identifier for you and also sets up HTTP routes.
345
-
Add a Java app to the project and leave it empty and then use the https://cloud.google.com/sdk/downloads[Google Cloud SDK] to push your Spring Boot app into that slot from the command line or CI build.
345
+
Add a Java app to the project and leave it empty and then use the https://cloud.google.com/sdk/install[Google Cloud SDK] to push your Spring Boot app into that slot from the command line or CI build.
346
346
347
347
App Engine Standard requires you to use WAR packaging.
348
348
Follow https://github.com/GoogleCloudPlatform/getting-started-java/blob/master/appengine-standard-java8/springboot-appengine-standard/README.md[these steps] to deploy App Engine Standard application to Google Cloud.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/documentation-overview.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,9 @@ Need more details about Spring Boot's core features?
77
77
== Moving to Production
78
78
When you are ready to push your Spring Boot application to production, we have <<production-ready-features.adoc#production-ready, some tricks>> that you might like:
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The Spring Boot auto-configuration tries its best to "`do the right thing`", but
48
48
49
49
There is a really useful `ConditionEvaluationReport` available in any Spring Boot `ApplicationContext`.
50
50
You can see it if you enable `DEBUG` logging output.
51
-
If you use the `spring-boot-actuator` (see <<production-ready-features.adoc,the Actuator chapter>>), there is also a `conditions` endpoint that renders the report in JSON.
51
+
If you use the `spring-boot-actuator` (see <<production-ready-features.adoc#production-ready,the Actuator chapter>>), there is also a `conditions` endpoint that renders the report in JSON.
52
52
Use that endpoint to debug the application and see what features have been added (and which have not been added) by Spring Boot at runtime.
53
53
54
54
Many more questions can be answered by looking at the source code and the Javadoc.
@@ -80,7 +80,7 @@ There is more than one way to register additional customizations:
80
80
* Declaratively, for all applications, by adding a `META-INF/spring.factories` and packaging a jar file that the applications all use as a library.
81
81
82
82
The `SpringApplication` sends some special `ApplicationEvents` to the listeners (some even before the context is created) and then registers the listeners for events published by the `ApplicationContext` as well.
83
-
See "`<<spring-boot-features.adoc#boot-features-application-events-and-listeners>>`" in the '`Spring Boot features`' section for a complete list.
83
+
See "`<<spring-boot-features.adoc#boot-features-application-events-and-listeners,Application Events and Listeners>>`" in the '`Spring Boot features`' section for a complete list.
84
84
85
85
It is also possible to customize the `Environment` before the application context is refreshed by using `EnvironmentPostProcessor`.
86
86
Each implementation should be registered in `META-INF/spring.factories`, as shown in the following example:
@@ -397,7 +397,7 @@ There is not (and technically cannot be) an exhaustive list of all supported pro
397
397
398
398
A running application with the Actuator features has a `configprops` endpoint that shows all the bound and bindable properties available through `@ConfigurationProperties`.
399
399
400
-
The appendix includes an <<application-properties.adoc#common-application-properties, `application.properties`>> example with a list of the most common properties supported by Spring Boot.
400
+
The appendix includes an <<appendix-application-properties.adoc#common-application-properties, `application.properties`>> example with a list of the most common properties supported by Spring Boot.
401
401
The definitive list comes from searching the source code for `@ConfigurationProperties` and `@Value` annotations as well as the occasional use of `Binder`.
402
402
For more about the exact ordering of loading properties, see "<<spring-boot-features#boot-features-external-config>>".
403
403
@@ -643,7 +643,7 @@ Developers can choose to import only the required dependencies using a classifie
643
643
=== Configure the Web Server
644
644
Generally, you should first consider using one of the many available configuration keys and customize your web server by adding new entries in your `application.properties` (or `application.yml`, or environment, etc. see "`<<howto-discover-build-in-options-for-external-properties>>`").
645
645
The `server.{asterisk}` namespace is quite useful here, and it includes namespaces like `server.tomcat.{asterisk}`, `server.jetty.{asterisk}` and others, for server-specific features.
646
-
See the list of <<common-application-properties>>.
646
+
See the list of <<appendix-application-properties.adoc#common-application-properties>>.
647
647
648
648
The previous sections covered already many common use cases, such as compression, SSL or HTTP/2.
649
649
However, if a configuration key doesn't exist for your use case, you should then look at {spring-boot-module-api}/web/server/WebServerFactoryCustomizer.html[`WebServerFactoryCustomizer`].
@@ -1059,7 +1059,7 @@ These features are described in six enums (in Jackson) that map onto properties
1059
1059
|===
1060
1060
1061
1061
For example, to enable pretty print, set `spring.jackson.serialization.indent_output=true`.
1062
-
Note that, thanks to the use of <<boot-features-external-config-relaxed-binding, relaxed binding>>, the case of `indent_output` does not have to match the case of the corresponding enum constant, which is `INDENT_OUTPUT`.
1062
+
Note that, thanks to the use of <<spring-boot-features.adoc#boot-features-external-config-relaxed-binding, relaxed binding>>, the case of `indent_output` does not have to match the case of the corresponding enum constant, which is `INDENT_OUTPUT`.
1063
1063
1064
1064
This environment-based configuration is applied to the auto-configured `Jackson2ObjectMapperBuilder` bean and applies to any mappers created by using the builder, including the auto-configured `ObjectMapper` bean.
1065
1065
@@ -1373,7 +1373,7 @@ You also need to add `logging.file.name` to your `application.properties`, as sh
1373
1373
1374
1374
[[howto-configure-log4j-for-logging]]
1375
1375
=== Configure Log4j for Logging
1376
-
Spring Boot supports https://logging.apache.org/log4j/2.x[Log4j 2] for logging configuration if it is on the classpath.
1376
+
Spring Boot supports https://logging.apache.org/log4j/2.x/[Log4j 2] for logging configuration if it is on the classpath.
1377
1377
If you use the starters for assembling dependencies, you have to exclude Logback and then include log4j 2 instead.
1378
1378
If you do not use the starters, you need to provide (at least) `spring-jcl` in addition to Log4j 2.
1379
1379
@@ -1898,7 +1898,7 @@ Be careful when switching from in-memory to a '`real`' database that you do not
1898
1898
You either have to set `ddl-auto` explicitly or use one of the other mechanisms to initialize the database.
1899
1899
1900
1900
NOTE: You can output the schema creation by enabling the `org.hibernate.SQL` logger.
1901
-
This is done for you automatically if you enable the <<boot-features-logging-console-output,debug mode>>.
1901
+
This is done for you automatically if you enable the <<spring-boot-features.adoc#boot-features-logging-console-output,debug mode>>.
1902
1902
1903
1903
In addition, a file named `import.sql` in the root of the classpath is executed on startup if Hibernate creates the schema from scratch (that is, if the `ddl-auto` property is set to `create` or `create-drop`).
1904
1904
This can be useful for demos and for testing if you are careful but is probably not something you want to be on the classpath in production.
@@ -2136,7 +2136,7 @@ In general, you need a `View` that resolves with a name of `error` or a `@Contro
2136
2136
Unless you replaced some of the default configuration, you should find a `BeanNameViewResolver` in your `ApplicationContext`, so a `@Bean` named `error` would be a simple way of doing that.
2137
2137
See {spring-boot-autoconfigure-module-code}/web/servlet/error/ErrorMvcAutoConfiguration.java[`ErrorMvcAutoConfiguration`] for more options.
2138
2138
2139
-
See also the section on "`<<boot-features-error-handling, Error Handling>>`" for details of how to register handlers in the servlet container.
2139
+
See also the section on "`<<spring-boot-features.adoc#boot-features-error-handling, Error Handling>>`" for details of how to register handlers in the servlet container.
2140
2140
2141
2141
2142
2142
@@ -2263,7 +2263,7 @@ See {spring-boot-autoconfigure-module-code}/groovy/template/GroovyTemplateAutoCo
2263
2263
[[howto-reload-fast-restart]]
2264
2264
=== Fast Application Restarts
2265
2265
The `spring-boot-devtools` module includes support for automatic application restarts.
2266
-
While not as fast as technologies such as https://zeroturnaround.com/software/jrebel/[JRebel] it is usually significantly faster than a "`cold start`".
2266
+
While not as fast as technologies such as https://jrebel.com/software/jrebel/[JRebel] it is usually significantly faster than a "`cold start`".
2267
2267
You should probably give it a try before investigating some of the more complex reload options discussed later in this document.
2268
2268
2269
2269
For more details, see the <<using-spring-boot.adoc#using-boot-devtools>> section.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/index.htmladoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,4 +25,4 @@ The reference documentation has the following appendices:
25
25
<<appendix-auto-configuration-classes.adoc#auto-configuration-classes,Auto-configuration Classes>> :: Auto-configuration classes provided by Spring Boot.
26
26
<<appendix-test-auto-configuration.adoc#test-auto-configuration,Test Auto-configuration Annotations>> :: Test-autoconfiguration annotations used to test slices of your application.
27
27
<<appendix-executable-jar-format.adoc#executable-jar,Executable Jars>> :: Spring Boot's executable jars, their launchers, and their format.
28
-
<<appendix-dependency-versions.adoc#appendex-dependency-versions,Dependency Versions>> :: Details of the dependencies that are managed by Spring Boot.
28
+
<<appendix-dependency-versions.adoc#appendix-dependency-versions,Dependency Versions>> :: Details of the dependencies that are managed by Spring Boot.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ If your application is a web application (Spring MVC, Spring WebFlux, or Jersey)
162
162
| Yes
163
163
|===
164
164
165
-
To learn more about the Actuator's endpoints and their request and response formats, please refer to the separate API documentation ({spring-boot-actuator-restapi}/html[HTML] or {spring-boot-actuator-restapi}/pdf/spring-boot-actuator-web-api.pdf[PDF]).
165
+
To learn more about the Actuator's endpoints and their request and response formats, please refer to the separate API documentation ({spring-boot-actuator-restapi}/html/[HTML] or {spring-boot-actuator-restapi}/pdf/spring-boot-actuator-web-api.pdf[PDF]).
166
166
167
167
168
168
@@ -1562,7 +1562,7 @@ For advanced configuration, you can also provide your own `PrometheusPushGateway
1562
1562
[[production-ready-metrics-export-signalfx]]
1563
1563
==== SignalFx
1564
1564
SignalFx registry pushes metrics to {micrometer-registry-docs}/signalfx[SignalFx] periodically.
1565
-
To export metrics to https://signalfx.com[SignalFx], your access token must be provided:
1565
+
To export metrics to https://www.signalfx.com[SignalFx], your access token must be provided:
1566
1566
1567
1567
[source,properties,indent=0]
1568
1568
----
@@ -1658,7 +1658,7 @@ Spring Boot registers the following core metrics when applicable:
1658
1658
* Logback metrics: record the number of events logged to Logback at each level
1659
1659
* Uptime metrics: report a gauge for uptime and a fixed gauge representing the application's absolute start time
1660
1660
* Tomcat metrics (`server.tomcat.mbeanregistry.enabled` must be set to `true` for all Tomcat metrics to be registered)
If you want to explore some of the concepts discussed in this chapter, you can take a look at the actuator {spring-boot-code}/spring-boot-samples[sample applications].
2141
-
You also might want to read about graphing tools such as https://graphite.wikidot.com/[Graphite].
2141
+
You also might want to read about graphing tools such as https://graphiteapp.org[Graphite].
2142
2142
2143
2143
Otherwise, you can continue on, to read about <<deployment.adoc#deployment, '`deployment options`'>> or jump ahead for some in-depth information about Spring Boot's _<<build-tool-plugins.adoc#build-tool-plugins, build tool plugins>>_.
0 commit comments