Commit Graph

12923 Commits

Author SHA1 Message Date
Andy Wilkinson
9687a5041e Add support for making endpoints accessible via HTTP
This commit adds support for exposing endpoint operations over HTTP.
Jersey, Spring MVC, and WebFlux are all supported but the programming
model remains web framework agnostic. When using WebFlux, blocking
operations are automatically performed on a separate thread using
Reactor's scheduler support. Support for web-specific extensions is
provided via a new `@WebEndpointExtension` annotation.

Closes gh-7970
Closes gh-9946
Closes gh-9947
2017-08-03 18:44:11 +01:00
Stephane Nicoll
4592e071db Add support for making endpoints accessible via JMX
This commit adds support to the new endpoint infrastructure for
exposing endpoint operations via JMX. It also introduces support for
JMX-specific extensions to a general-purpose endpoint. Such an
extension is identified by the `@JmxEndpointExtension` annotation.

See gh-9946
2017-08-03 18:33:59 +01:00
Andy Wilkinson
4f2e4ada45 Introduce the foundations of the new endpoint infrastructure
This commit introduces a new annotation-based programming model for
implementing endpoints. An endpoint is identified by a type-level
`@Endpoint` annotation. Method-level `@ReadOperation` and
`@WriteOperation` are used to identify methods on an endpoint class
that implement an operation and should be exposed (via JMX for
exmaple) to remote clients.

See gh-9946
2017-08-03 18:31:51 +01:00
Andy Wilkinson
7bd285dd93 Polish 2017-08-03 14:39:46 +01:00
Andy Wilkinson
53e8ade4d3 Improve diagnostics for delete failures in DevTools integration tests 2017-08-03 12:07:22 +01:00
Madhura Bhave
3d878e642a Remove unused properties from tests 2017-08-01 10:24:47 -07:00
Madhura Bhave
ea087b9bac Move liquibase config properties to spring.liquibase
Closes gh-9897
2017-08-01 10:24:47 -07:00
Madhura Bhave
f9e316306a Move Flyway config properties to spring.flyway
Closes gh-9896
2017-08-01 10:24:47 -07:00
Andy Wilkinson
7cc4410613 Merge branch '1.5.x' 2017-08-01 15:47:23 +01:00
Andy Wilkinson
3b0cb1c4f2 Merge pull request #9641 from Gytis Trikleris
* gh-9641:
  Delay Narayana recovery manager until it's started explicitly
2017-08-01 15:46:59 +01:00
Gytis Trikleris
f43ad00129 Delay Narayana recovery manager until it's started explicitly
Closes gh-9641
2017-08-01 15:42:40 +01:00
Andy Wilkinson
5aae23d8ea Update OAuth Actuator sample tests to adapt to sensitivity removal
See gh-9924
2017-08-01 12:44:08 +01:00
Andy Wilkinson
52536dc291 Update Actuator UI sample test to adapt to sensitivity removal
See gh-9924
2017-08-01 11:12:33 +01:00
Andy Wilkinson
bb55f49396 Remove concept of sensitivity from Actuator's endpoints
Closes gh-9924
2017-08-01 10:05:09 +01:00
Andy Wilkinson
847f6d1b2c Update test in Actuator sample to adapt to changes in env response
See gh-9864
2017-08-01 09:03:23 +01:00
Andy Wilkinson
8f42007aa1 Improve the structure of the response from the env endpoint
Closes gh-9864
2017-08-01 07:39:03 +01:00
Phillip Webb
28b7ec3bed Check POSIX file permissions before writing PID
Update `ApplicationPid` to check POSIX file permissions in addition to
`File.canWrite()` before PID file. This helps to provided consistent
behavior, regardless of if the application is running as root or not.

Fixes gh-9922
2017-07-31 20:56:46 -07:00
Phillip Webb
fd1dfbb247 Add missing TestPropertyValues 'apply' calls
Update a few usages of `TestPropertyValues` so that `apply` is called
consistently.
2017-07-31 20:56:35 -07:00
Phillip Webb
e1602fe59a Polish 2017-07-31 20:46:56 -07:00
Andy Wilkinson
37bef961ea Merge branch '1.5.x' 2017-07-31 15:33:18 +01:00
Andy Wilkinson
5a8a86375d Sanitize individual env entry that is matched exactly
Closes gh-9918
See gh-8282
2017-07-31 15:27:55 +01:00
Stephane Nicoll
0ba63424a7 Enable "-parameters" compiler flag by default with Maven
This commit upgrades to the `maven-compiler-plugin` 3.6.2 that exposes
an additional property to enable the "-parameters" flag. This flag is
enabled for our own build and any project that uses
`spring-boot-starter-parent` as parent.

Closes gh-9323
2017-07-31 10:15:56 +02:00
Andy Wilkinson
4f76a560b8 Fix the Actuator sample 2017-07-31 08:47:16 +01:00
Stephane Nicoll
f7c070938f Merge pull request #9912 from eddumelendez:jackson_2.9.0
* pr/9912:
  Upgrade to Jackson 2.9.0
2017-07-31 09:39:44 +02:00
Eddú Meléndez
87ba8d2e14 Upgrade to Jackson 2.9.0
Closes gh-9912
2017-07-31 09:39:23 +02:00
Andy Wilkinson
9f75da9a8f Simplify the Actuator's hypermedia support
This commit replaces the Acuator's support for hypermedia with a
single endpoint that returns HAL-formatted links to all of the
available endpoints. This is done without requiring Spring HATEOAS
to be on the classpath in a similar manner to the existing
CloudFoundry discovery endpoint.

Closes gh-9901
2017-07-30 22:43:05 +01:00
Andy Wilkinson
4a61e45644 Require separate management port to use management context path of /
Closes gh-9898
2017-07-30 22:42:01 +01:00
Andy Wilkinson
fb3d79c750 Drop support for self-hosted Actuator docs
Closes gh-9899
2017-07-29 09:19:53 +01:00
Madhura Bhave
e64090838c Revert "Nested Map should not bind to null"
This reverts commit 5406567783.
2017-07-28 13:40:31 -07:00
Madhura Bhave
5406567783 Nested Map should not bind to null
Fixes gh-9801
2017-07-28 10:16:14 -07:00
Phillip Webb
c81106b5e4 Increase JVM memory for Maven 2017-07-28 10:14:47 -07:00
Phillip Webb
2b846ad7b4 Fix typo in Maven plugin integration test 2017-07-28 10:13:49 -07:00
Phillip Webb
30ff329e3d Polish 2017-07-28 10:11:49 -07:00
Andy Wilkinson
71ade559d5 Merge branch '1.5.x' 2017-07-28 15:44:05 +01:00
Andy Wilkinson
362a8ea9bc Merge pull request #9893 from Rostyslav Dudka
* gh-9893:
  Polish "Make JarURLConnection return entry's last modified time"
  Make JarURLConnection return entry's last modified time
2017-07-28 15:42:44 +01:00
Andy Wilkinson
b7ac5f2eb2 Polish "Make JarURLConnection return entry's last modified time"
Closes gh-9893
2017-07-28 15:41:34 +01:00
rostislav.dudka
7c7259beec Make JarURLConnection return entry's last modified time
See gh-9893
2017-07-28 15:41:29 +01:00
Andy Wilkinson
fb510043a2 Look in the right place for plugin's classes during integration tests
See gh-9516
2017-07-28 14:57:49 +01:00
Andy Wilkinson
36120d729a Ignore mainClassName property when its value is null
Closes gh-9892
2017-07-28 14:44:32 +01:00
Andy Wilkinson
c2459fce47 Raise the minimum version of Gradle to 4.0
Closes gh-9516
2017-07-28 14:35:33 +01:00
Stephane Nicoll
32a40673bb Merge pull request #9890 from vpavic:fix-config-metadata
* pr/9890:
  Fix `additional-spring-configuration-metadata.json`
2017-07-28 13:53:07 +02:00
Vedran Pavic
f84d90dbe7 Fix additional-spring-configuration-metadata.json
This commit fixes invalid references to `LoggingApplicationListener` in
`additional-spring-configuration-metadata.json`.

Closes gh-9890
2017-07-28 13:52:39 +02:00
Stephane Nicoll
92e48f6ee2 Fix build failure
This test definitely doesn't need Aspect processing since the project
doesn't have a dependency on `aspectjweaver`

Closes gh-9880
2017-07-28 13:43:58 +02:00
Stephane Nicoll
b9b284d3d0 Merge branch '1.5.x' 2017-07-28 12:02:54 +02:00
Stephane Nicoll
5c13b8bf50 Separate custom schema configuration for Liquibase test
Unfortunately, creating the schema in code did not offer the right
condition to reproduce the error scenario. This commit restore the
initial intent, but separating the configuration and cleaning the
created context properly.

See gh-9862
2017-07-28 11:59:15 +02:00
Stephane Nicoll
7736cb1dc5 Fix test so that it doesn't leave a datasource hanging around
Closes gh-9862
2017-07-28 11:43:28 +02:00
Stephane Nicoll
ebbe29cc85 Migrate HazelcastJpaDependencyAutoConfigurationTests to context runner
This commit also makes sure to generate unique embedded data source and
disable datasource initialization as this is not required by those
tests.

See gh-9889
2017-07-28 11:05:09 +02:00
Stephane Nicoll
49d249bdf4 Disable Aop auto-config if aspectjweaver is not present
This commit adds an additional class check to AopAutoConfiguration as
it is main role is to configure `@EnableAspectJAutoProxy` which won't
work properly if `aspectjweaver` is not present.

Closes gh-9880
2017-07-28 10:43:08 +02:00
Stephane Nicoll
edee342d80 Merge branch '1.5.x' 2017-07-28 10:24:11 +02:00
Stephane Nicoll
3bc9718cc4 Merge pull request #9862 from candrews:patch-6
* pr/9862:
  Polish "Use configured schema in Liquibase endpoint"
  Use configured schema in Liquibase endpoint
2017-07-28 10:21:41 +02:00