Commit Graph

2296 Commits (9234801c0adda3b24657bfaa1b6a00d4c468ff73)

Author SHA1 Message Date
Brian Clozel 9dd3fb70e2 Remove Servlet-specific static locations
This commit removes the Servlet root context from the default values for
the `spring.resources.static-locations` configuration property. Servlet
and non-Servlet applications are sharing this property.

The Servlet root context is automatically configured as a resource
location for Spring MVC based applications.

Closes gh-9240
7 years ago
Stephane Nicoll 82fd18cee3 Polish 7 years ago
Johnny Lim d12a86bcab Use Java 8 Javadoc URL
Closes gh-10276
7 years ago
Stephane Nicoll 40e6f004da Enable info and status endpoints by default
Closes gh-10161
7 years ago
Stephane Nicoll 222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
7 years ago
Phillip Webb 2e51b48cd9 Refactor actuator package locations
Restructure actuator packages to improve structure. The following
changes have been made:

 - Separate actuator and actuator auto-configuration into different
   modules.
 - Move endpoint code into `spring-boot-actuator`.
 - Move `Endpoint` implementations from a single package into
   technology specific packages.
 - Move `HealthIndicator` implementations from a single package into
   technology specific packages.
 - As much as possible attempt to mirror the `spring-boot` package
   structure and class naming in `spring-boot-actuator` and
   `spring-boot-actuator-autoconfigure`.
 - Move `DataSourceBuilder` and DataSource meta-data support from
   `spring-boot-actuator` to `spring-boot`.

Fixes gh-10261
7 years ago
Stephane Nicoll e6811de4ac Merge branch '1.5.x' 7 years ago
Alexander Constantin 281a93a0c4 Use underline instead of dash in tomcat properties
Closes gh-10256
7 years ago
Stephane Nicoll 1cd3b0cabe Remove auto-configuration for MapSessionRepository
This commit removes auto-configuration for Spring Session's simple in
memory support.

Closes gh-10253
7 years ago
Andy Wilkinson dad7357b89 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 5b1a4a0430 Note that management.context-path is relative to server.context-path
Closes gh-10200
7 years ago
Stephane Nicoll 46470b5196 Remove outdated additional metadata 7 years ago
Stephane Nicoll 2b2eb73cb0 Remove security properties 7 years ago
Stephane Nicoll 9e366f0fde Fix typo 7 years ago
Andy Wilkinson c06de245d9 Allow endpoints to be mapped to /
This commit removes the restriction that was added in 4a61e45 to
prevent / from being used as the management context path when the
management context was not using a different port

The management context path can now be set to / irrespective of the
configuration of the management port. To avoid a possible clash
with the application's welcome page or similar, the links "endpoint"
that is mapping to the management context path is disabled when
the management context path is /.

As part of allowing / to be used as the management context path again,
the handling of endpoint mappings and the creation of paths for
individual operations has been consolidated into a new EndpointMapping
class that is used across the three (MVC, WebFlux, and Jersey)
implementations.

See gh-9898
7 years ago
Johnny Lim 024c23cedb Fix broken links
Closes gh-10229
7 years ago
Stephane Nicoll ab43237c90 Polish 7 years ago
Stephane Nicoll 96399395ae Polish liquibase doc
Closes gh-10139
7 years ago
Stephane Nicoll afda0ec129 Default Hibernate DDL auto to none with Flyway/Liquibase
This commit adds a strategy interface to specific if a given DataSource
has its schema managed. The Hibernate auto-configuration uses it to set
it to "none" if a mechanism to initialize the DataSource is
found and "create-drop" otherwise.

Both Flyway and Liquibase implements that strategy interface and
register it in the context accordingly.

Closes gh-9262
7 years ago
Stephane Nicoll b91ceef621 Polish "Polish"
Closes gh-10109
7 years ago
Johnny Lim db76112700 Polish
See gh-10109
7 years ago
Madhura Bhave b02edd2e81 Merge branch '1.5.x' 7 years ago
Madhura Bhave 64ffcfc83f Document JWK property
Closes gh-10022
7 years ago
Stephane Nicoll 441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
7 years ago
Stephane Nicoll 54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
7 years ago
Stephane Nicoll 98455e30dc Rename default endpoint settings to "default"
Closes gh-10098
7 years ago
Stephane Nicoll edd7cea1c3 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 36722510c5 Clarify that only production resources are filtered by Maven
See gh-10088
7 years ago
Stephane Nicoll da65158eae Disable Jolokia by default
To be consistent with Actuator web endpoints, Jolokia is now disabled
by default.

Closes gh-10090
7 years ago
Stephane Nicoll def094b844 Advertize web endpoints as disabled by default
Following the rework on Security that expects web endpoints to be
disabled by default, this commit updates the metadata (including the
automatic generation) to reflect this decision.
7 years ago
Stephane Nicoll f8e08f79ed Add DispatcherType enum for configuration purpose
This commit creates our own version of javax.servlet.DispatcherType for
configuration purpose as we can use the other one now the servlet api
is optional.

Closes gh-9856
7 years ago
Johnny Lim 14c9f91aab Polish
Closes gh-10054
7 years ago
Stephane Nicoll ac4219b1d8 Move management.jmx to management.endpoints.jmx
For consistency with #10053, this commit moves the JMX specific endpoint
properties to `management.endpoints.jmx`.
7 years ago
Stephane Nicoll 68fcea7b9a Migrate endpoints.cors to management.endpoints.cors
This commit moves CORS properties out of the endpoints namespace as they
do not refer to a "cors" endpoint but rather to the CORS configuration
of all endpoints.

Closes gh-10053
7 years ago
Stephane Nicoll 3087514b79 Move endpoints.health.mapping to management.health.status.http-mapping
Closes gh-10052
7 years ago
Stephane Nicoll f2a74946af Polish 7 years ago
Stephane Nicoll f801c12a69 Merge branch '1.5.x' 7 years ago
Johnny Lim 2c897385d9 Document default values for compression properties
Closes gh-10050
7 years ago
Stephane Nicoll 394371eb73 Polish "Harmonize database initializers"
Closes gh-9752
7 years ago
Vedran Pavic 14b7be8325 Harmonize database initializers
This commit updates database initializers configuration to enable them
automatically only when an embedded `DataSource` is used. Related
configuration properties have been updated to use a more expressive
`DatabaseInitializerMode` enum rather than `Boolean` flag.

See gh-9752
7 years ago
Stephane Nicoll 74c5e48715 Polish 7 years ago
Stephane Nicoll ad3a14141f Polish endpoints metadata
This commit introduces manual metadata for the endpoints.all.* namespace
and polish the appendix following the work that happened in #9692
7 years ago
Stephane Nicoll 19e211a1c2 Add Status endpoint
This commit adds a new `/application/status` endpoint that provides only
the Health's status of an application.

Previously, `/application/health` was returning full health details or
only the status depending on configuration. Those two use cases are now
separate in two endpoints that can be configured, secured and enabled
separately.

Closes gh-9721
7 years ago
Stephane Nicoll 74b552826b Remove EndpointProperties
`EndpointProperties` is a left over of the infrastructure in 1.x and is
no longer used. Besides the `endpoints.enabled` property is now
`endpoints.all.enabled`.

Closes gh-10016
7 years ago
Stephane Nicoll 151f7ef325 Reinstate JMX customizations of Endpoints ObjectName
This commit restores the configuration properties used to configure how
the ObjectName of an endpoint is generated. For consistency, those
properties have been renamed to `management.jmx`

Closes gh-10005
7 years ago
Stephane Nicoll 35cf0c56a8 Merge branch '1.5.x' 7 years ago
Stephane Nicoll cabd798353 Polish NestedConfigurationProperty documentation
Closes gh-9895
7 years ago
Andy Wilkinson ee16332745 Update Actuator to use the new endpoint infrastructure
This commit migrates the Actuator onto the new endpoint infrastruture.
In addition to the existing support for accessing the endpoints via
JMX and HTTP using Spring MVC, support for access via HTTP using
Jersey and WebFlux has been added. This includes using a separate
management port where we now spin up an additional, appropriately
configured servlet or reactive web server to expose the management
context on a different HTTP port to the main application.

Closes gh-2921
Closes gh-5389
Closes gh-9796
7 years ago
Andy Wilkinson a3f5aaafef Update the documentation following changes to Jolokia's auto-config
See gh-9843
7 years ago
Andy Wilkinson b817dc1e04 Merge branch '1.5.x' 7 years ago