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/appendix-configuration-metadata.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ They use a simple JSON format with items categorized under either "`groups`" or
81
81
Each "`property`" is a configuration item that the user specifies with a given value.
82
82
For example, `server.port` and `server.address` might be specified in `application.properties`, as follows:
83
83
84
-
[source,properties,indent=0]
84
+
[source,properties,indent=0,configprops]
85
85
----
86
86
server.port=9090
87
87
server.address=127.0.0.1
@@ -94,7 +94,7 @@ NOTE: It is not required that every "`property`" has a "`group`".
94
94
Some properties might exist in their own right.
95
95
96
96
Finally, "`hints`" are additional information used to assist the user in configuring a given property.
97
-
For example, when a developer is configuring the `spring.jpa.hibernate.ddl-auto` property, a tool can use the hints to offer some auto-completion help for the `none`, `validate`, `update`, `create`, and `create-drop` values.
97
+
For example, when a developer is configuring the configprop:spring.jpa.hibernate.ddl-auto[] property, a tool can use the hints to offer some auto-completion help for the `none`, `validate`, `update`, `create`, and `create-drop` values.
Copy file name to clipboardexpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+20-20
Original file line number
Diff line number
Diff line change
@@ -410,7 +410,7 @@ If you find that specific auto-configuration classes that you do not want are be
410
410
----
411
411
412
412
If the class is not on the classpath, you can use the `excludeName` attribute of the annotation and specify the fully qualified name instead.
413
-
Finally, you can also control the list of auto-configuration classes to exclude by using the `spring.autoconfigure.exclude` property.
413
+
Finally, you can also control the list of auto-configuration classes to exclude by using the configprop:spring.autoconfigure.exclude[] property.
414
414
415
415
TIP: You can define exclusions both at the annotation level and by using the property.
416
416
@@ -685,14 +685,14 @@ While caching is very beneficial in production, it can be counter-productive dur
685
685
For this reason, spring-boot-devtools disables the caching options by default.
686
686
687
687
Cache options are usually configured by settings in your `application.properties` file.
688
-
For example, Thymeleaf offers the `spring.thymeleaf.cache` property.
688
+
For example, Thymeleaf offers the configprop:spring.thymeleaf.cache[] property.
689
689
Rather than needing to set these properties manually, the `spring-boot-devtools` module automatically applies sensible development-time configuration.
690
690
691
691
Because you need more information about web requests while developing Spring MVC and Spring WebFlux applications, developer tools will enable `DEBUG` logging for the `web` logging group.
692
692
This will give you information about the incoming request, which handler is processing it, the response outcome, etc.
693
-
If you wish to log all request details (including potentially sensitive information), you can turn on the `spring.http.log-request-details` configuration property.
693
+
If you wish to log all request details (including potentially sensitive information), you can turn on the configprop:spring.http.log-request-details[] configuration property.
694
694
695
-
NOTE: If you don't want property defaults to be applied you can set `spring.devtools.add-properties` to `false` in your `application.properties`.
695
+
NOTE: If you don't want property defaults to be applied you can set configprop:spring.devtools.add-properties[] to `false` in your `application.properties`.
696
696
697
697
TIP: For a complete list of the properties that are applied by the devtools, see {spring-boot-devtools-module-code}/env/DevToolsPropertyDefaultsPostProcessor.java[DevToolsPropertyDefaultsPostProcessor].
698
698
@@ -763,32 +763,32 @@ To disable the logging of the report, set the following property:
763
763
Certain resources do not necessarily need to trigger a restart when they are changed.
764
764
For example, Thymeleaf templates can be edited in-place.
765
765
By default, changing resources in `/META-INF/maven`, `/META-INF/resources`, `/resources`, `/static`, `/public`, or `/templates` does not trigger a restart but does trigger a <<using-boot-devtools-livereload, live reload>>.
766
-
If you want to customize these exclusions, you can use the `spring.devtools.restart.exclude` property.
766
+
If you want to customize these exclusions, you can use the configprop:spring.devtools.restart.exclude[] property.
767
767
For example, to exclude only `/static` and `/public` you would set the following property:
TIP: If you want to keep those defaults and _add_ additional exclusions, use the `spring.devtools.restart.additional-exclude` property instead.
774
+
TIP: If you want to keep those defaults and _add_ additional exclusions, use the configprop:spring.devtools.restart.additional-exclude[] property instead.
775
775
776
776
777
777
778
778
[[using-boot-devtools-restart-additional-paths]]
779
779
==== Watching Additional Paths
780
780
You may want your application to be restarted or reloaded when you make changes to files that are not on the classpath.
781
-
To do so, use the `spring.devtools.restart.additional-paths` property to configure additional paths to watch for changes.
782
-
You can use the `spring.devtools.restart.exclude` property <<using-boot-devtools-restart-exclude, described earlier>> to control whether changes beneath the additional paths trigger a full restart or a <<using-boot-devtools-livereload, live reload>>.
781
+
To do so, use the configprop:spring.devtools.restart.additional-paths[] property to configure additional paths to watch for changes.
782
+
You can use the configprop:spring.devtools.restart.exclude[] property <<using-boot-devtools-restart-exclude, described earlier>> to control whether changes beneath the additional paths trigger a full restart or a <<using-boot-devtools-livereload, live reload>>.
783
783
784
784
785
785
786
786
[[using-boot-devtools-restart-disable]]
787
787
==== Disabling Restart
788
-
If you do not want to use the restart feature, you can disable it by using the `spring.devtools.restart.enabled` property.
788
+
If you do not want to use the restart feature, you can disable it by using the configprop:spring.devtools.restart.enabled[] property.
789
789
In most cases, you can set this property in your `application.properties` (doing so still initializes the restart classloader, but it does not watch for file changes).
790
790
791
-
If you need to _completely_ disable restart support (for example, because it does not work with a specific library), you need to set the `spring.devtools.restart.enabled` `System` property to `false` before calling `SpringApplication.run(...)`, as shown in the following example:
791
+
If you need to _completely_ disable restart support (for example, because it does not work with a specific library), you need to set the configprop:spring.devtools.restart.enabled[] `System` property to `false` before calling `SpringApplication.run(...)`, as shown in the following example:
792
792
793
793
[source,java,indent=0]
794
794
----
@@ -807,7 +807,7 @@ To do so, you can use a "`trigger file`", which is a special file that must be m
807
807
808
808
NOTE: Any update to the file will trigger a check, but restart only actually occurs if Devtools has detected it has something to do.
809
809
810
-
To use a trigger file, set the `spring.devtools.restart.trigger-file` property to the name (excluding any path) of your trigger file.
810
+
To use a trigger file, set the configprop:spring.devtools.restart.trigger-file[] property to the name (excluding any path) of your trigger file.
811
811
The trigger file must appear somewhere on your classpath.
812
812
813
813
For example, if you have a project with the following structure:
@@ -822,7 +822,7 @@ For example, if you have a project with the following structure:
@@ -881,7 +881,7 @@ If you find such a problem, you need to request a fix with the original authors.
881
881
The `spring-boot-devtools` module includes an embedded LiveReload server that can be used to trigger a browser refresh when a resource is changed.
882
882
LiveReload browser extensions are freely available for Chrome, Firefox and Safari from http://livereload.com/extensions/[livereload.com].
883
883
884
-
If you do not want to start the LiveReload server when your application runs, you can set the `spring.devtools.livereload.enabled` property to `false`.
884
+
If you do not want to start the LiveReload server when your application runs, you can set the configprop:spring.devtools.livereload.enabled[] property to `false`.
885
885
886
886
NOTE: You can only run one LiveReload server at a time.
887
887
Before starting your application, ensure that no other LiveReload servers are running.
@@ -901,9 +901,9 @@ Any properties added to these file apply to _all_ Spring Boot applications on yo
901
901
For example, to configure restart to always use a <<using-boot-devtools-restart-triggerfile, trigger file>>, you would add the following property:
NOTE: If devtools configuration files are not found in `$HOME/.config/spring-boot`, the root of the `$HOME` folder is searched for the presence of a `.spring-boot-devtools.properties` file.
@@ -935,9 +935,9 @@ To enable it, you need to make sure that `devtools` is included in the repackage
935
935
</build>
936
936
----
937
937
938
-
Then you need to set a `spring.devtools.remote.secret` property, as shown in the following example:
938
+
Then you need to set a configprop:spring.devtools.remote.secret[] property, as shown in the following example:
939
939
940
-
[source,properties,indent=0]
940
+
[source,properties,indent=0,configprops]
941
941
----
942
942
spring.devtools.remote.secret=mysecret
943
943
----
@@ -946,7 +946,7 @@ WARNING: Enabling `spring-boot-devtools` on a remote application is a security r
946
946
You should never enable support on a production deployment.
947
947
948
948
Remote devtools support is provided in two parts: a server-side endpoint that accepts connections and a client application that you run in your IDE.
949
-
The server component is automatically enabled when the `spring.devtools.remote.secret` property is set.
949
+
The server component is automatically enabled when the configprop:spring.devtools.remote.secret[] property is set.
950
950
The client component must be launched manually.
951
951
952
952
@@ -984,7 +984,7 @@ A running remote client might resemble the following listing:
984
984
----
985
985
986
986
NOTE: Because the remote client is using the same classpath as the real application it can directly read application properties.
987
-
This is how the `spring.devtools.remote.secret` property is read and passed to the server for authentication.
987
+
This is how the configprop:spring.devtools.remote.secret[] property is read and passed to the server for authentication.
988
988
989
989
TIP: It is always advisable to use `https://` as the connection protocol, so that traffic is encrypted and passwords cannot be intercepted.
990
990
@@ -1017,7 +1017,7 @@ But it may also lead to application code inconsistency and failure to restart af
1017
1017
1018
1018
If you observe such problems constantly, try increasing the `spring.devtools.restart.poll-interval` and `spring.devtools.restart.quiet-period` parameters to the values that fit your development environment:
0 commit comments