2013-04-24 17:02:07 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2015-11-16 19:18:54 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2013-04-24 17:02:07 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
2013-07-26 18:50:02 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-07-27 03:30:54 +08:00
|
|
|
<artifactId>spring-boot-parent</artifactId>
|
2016-09-21 04:20:06 +08:00
|
|
|
<version>1.3.9.BUILD-SNAPSHOT</version>
|
2013-08-03 12:48:19 +08:00
|
|
|
<relativePath>../spring-boot-parent</relativePath>
|
2013-04-24 17:02:07 +08:00
|
|
|
</parent>
|
2013-07-31 16:46:34 +08:00
|
|
|
<artifactId>spring-boot-actuator</artifactId>
|
2014-04-01 16:10:51 +08:00
|
|
|
<name>Spring Boot Actuator</name>
|
|
|
|
<description>Spring Boot Actuator</description>
|
|
|
|
<url>http://projects.spring.io/spring-boot/</url>
|
|
|
|
<organization>
|
|
|
|
<name>Pivotal Software, Inc.</name>
|
|
|
|
<url>http://www.spring.io</url>
|
|
|
|
</organization>
|
2013-07-06 01:26:50 +08:00
|
|
|
<properties>
|
|
|
|
<main.basedir>${basedir}/..</main.basedir>
|
|
|
|
</properties>
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependencies>
|
2013-07-06 01:26:50 +08:00
|
|
|
<!-- Compile -->
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependency>
|
2014-04-30 23:42:23 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-07-27 03:30:54 +08:00
|
|
|
<artifactId>spring-boot</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2014-04-30 23:42:23 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-07-27 03:30:54 +08:00
|
|
|
<artifactId>spring-boot-autoconfigure</artifactId>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
2013-07-06 01:26:50 +08:00
|
|
|
<artifactId>spring-core</artifactId>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependency>
|
2013-04-30 20:46:46 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
2013-07-06 01:26:50 +08:00
|
|
|
<artifactId>spring-context</artifactId>
|
2013-04-30 20:46:46 +08:00
|
|
|
</dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<!-- Optional -->
|
2015-07-02 01:36:21 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
<artifactId>jackson-dataformat-xml</artifactId>
|
2015-07-15 00:12:52 +08:00
|
|
|
<optional>true</optional>
|
2015-07-02 01:36:21 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.hateoas</groupId>
|
|
|
|
<artifactId>spring-hateoas</artifactId>
|
2015-07-15 00:12:52 +08:00
|
|
|
<optional>true</optional>
|
2015-07-02 01:36:21 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.plugin</groupId>
|
|
|
|
<artifactId>spring-plugin-core</artifactId>
|
2015-07-15 00:12:52 +08:00
|
|
|
<optional>true</optional>
|
2015-07-02 01:36:21 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.webjars</groupId>
|
|
|
|
<artifactId>hal-browser</artifactId>
|
2015-07-15 00:12:52 +08:00
|
|
|
<optional>true</optional>
|
2015-07-02 01:36:21 +08:00
|
|
|
</dependency>
|
2015-03-21 01:06:54 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.hazelcast</groupId>
|
|
|
|
<artifactId>hazelcast</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.hazelcast</groupId>
|
|
|
|
<artifactId>hazelcast-spring</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-03-09 03:21:13 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.mail</groupId>
|
|
|
|
<artifactId>javax.mail</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-04-23 20:25:57 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.timgroup</groupId>
|
|
|
|
<artifactId>java-statsd-client</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-12-07 00:10:50 +08:00
|
|
|
<dependency>
|
2014-11-01 02:52:42 +08:00
|
|
|
<groupId>io.dropwizard.metrics</groupId>
|
2013-12-07 00:10:50 +08:00
|
|
|
<artifactId>metrics-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-03-21 01:06:54 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.cache</groupId>
|
|
|
|
<artifactId>cache-api</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
2013-07-06 01:26:50 +08:00
|
|
|
<optional>true</optional>
|
2014-05-23 03:32:36 +08:00
|
|
|
</dependency>
|
2015-03-21 01:06:54 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sf.ehcache</groupId>
|
|
|
|
<artifactId>ehcache</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-03-10 20:31:35 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.activemq</groupId>
|
|
|
|
<artifactId>activemq-broker</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-07-07 07:39:20 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.flywaydb</groupId>
|
|
|
|
<artifactId>flyway-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-01-22 01:41:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
|
<artifactId>hibernate-validator</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-06-01 23:41:59 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.infinispan</groupId>
|
|
|
|
<artifactId>infinispan-spring4</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-07-07 07:39:20 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.liquibase</groupId>
|
|
|
|
<artifactId>liquibase-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-01-22 01:41:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-messaging</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<groupId>org.springframework</groupId>
|
2013-11-01 00:49:36 +08:00
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
|
<optional>true</optional>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
|
<optional>true</optional>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependency>
|
2014-12-22 18:06:37 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-cassandra</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-05-22 23:45:14 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-mongodb</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-12-07 00:10:50 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-redis</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-05-08 18:37:37 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
2014-05-22 23:45:14 +08:00
|
|
|
<artifactId>spring-data-solr</artifactId>
|
2014-05-08 18:37:37 +08:00
|
|
|
<optional>true</optional>
|
2015-07-15 00:12:52 +08:00
|
|
|
<exclusions>
|
|
|
|
<!-- the version of solr here is incompatible with jackson-xml because of an old woodstox -->
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>wstx-asl</artifactId>
|
|
|
|
<groupId>org.codehaus.woodstox</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2014-05-08 18:37:37 +08:00
|
|
|
</dependency>
|
2015-05-18 18:21:33 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.integration</groupId>
|
|
|
|
<artifactId>spring-integration-jmx</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.integration</groupId>
|
|
|
|
<artifactId>spring-integration-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-01-23 00:41:28 +08:00
|
|
|
<dependency>
|
2015-04-09 17:08:20 +08:00
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
2015-01-23 00:41:28 +08:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
2013-07-18 20:36:27 +08:00
|
|
|
<artifactId>spring-security-web</artifactId>
|
2013-04-24 17:02:07 +08:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-07-01 22:25:53 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
2013-07-18 20:36:27 +08:00
|
|
|
<artifactId>spring-security-config</artifactId>
|
2013-11-26 09:12:56 +08:00
|
|
|
<optional>true</optional>
|
2013-07-01 22:25:53 +08:00
|
|
|
</dependency>
|
2013-04-24 17:02:07 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
|
|
<artifactId>tomcat-embed-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-10-01 23:22:08 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
|
|
<artifactId>tomcat-embed-el</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-06-26 05:31:41 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.crashub</groupId>
|
|
|
|
<artifactId>crash.shell</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.crashub</groupId>
|
|
|
|
<artifactId>crash.cli</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-11-05 00:16:17 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.crashub</groupId>
|
|
|
|
<artifactId>crash.embed.spring</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-11-23 01:05:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jolokia</groupId>
|
2013-11-26 09:12:56 +08:00
|
|
|
<artifactId>jolokia-core</artifactId>
|
2013-11-23 01:05:27 +08:00
|
|
|
<optional>true</optional>
|
2013-11-26 09:12:56 +08:00
|
|
|
</dependency>
|
2014-04-28 18:49:28 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>redis.clients</groupId>
|
|
|
|
<artifactId>jedis</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-05-10 17:10:29 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.amqp</groupId>
|
|
|
|
<artifactId>spring-rabbit</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-06-13 00:41:13 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
|
<artifactId>tomcat-jdbc</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.zaxxer</groupId>
|
2014-10-16 12:21:06 +08:00
|
|
|
<artifactId>HikariCP-java6</artifactId>
|
2014-06-13 00:41:13 +08:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
|
<artifactId>commons-dbcp</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-10-29 06:04:52 +08:00
|
|
|
<!-- Annotation processing -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<!-- Test -->
|
2015-04-09 17:08:20 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-01-10 00:37:45 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-10-03 06:35:58 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.jayway.jsonpath</groupId>
|
|
|
|
<artifactId>json-path</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-05-12 17:18:09 +08:00
|
|
|
<dependency>
|
2015-04-09 17:08:20 +08:00
|
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
|
|
<artifactId>tomcat-embed-logging-juli</artifactId>
|
2014-05-12 17:18:09 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-03-30 17:39:41 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
<artifactId>aspectjrt</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-11-01 00:49:36 +08:00
|
|
|
<dependency>
|
2015-04-09 17:08:20 +08:00
|
|
|
<groupId>org.crashub</groupId>
|
|
|
|
<artifactId>crash.connectors.telnet</artifactId>
|
2013-11-01 00:49:36 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-11-28 22:20:26 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hsqldb</groupId>
|
|
|
|
<artifactId>hsqldb</artifactId>
|
2014-02-11 21:36:50 +08:00
|
|
|
<scope>test</scope>
|
2013-11-28 22:20:26 +08:00
|
|
|
</dependency>
|
2013-07-08 07:23:32 +08:00
|
|
|
<dependency>
|
2015-04-09 17:08:20 +08:00
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-test</artifactId>
|
2013-07-08 07:23:32 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-06-13 03:12:51 +08:00
|
|
|
<dependency>
|
2015-04-09 17:08:20 +08:00
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-elasticsearch</artifactId>
|
2013-06-13 03:12:51 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
Simplify Jackson-related auto-configuration for HATEOAS and Data REST
This commit simplifies the Jackson-related auto-configuration that’s
applied when Spring HATEOAS and Spring Data REST are on the classpath.
Previously, Boot used Jackson2HalModule to apply the HAL-related
ObjectMapper configuration to the context’s primary ObjectMapper. This
was to allow HAL-formatted responses to be sent for requests accepted
application/json (see gh-2147). This had the unwanted side-effect of
polluting the primary ObjectMapper with HAL-specific functionality.
Furthermore, Jackson2HalModule is an internal of Spring HATEOAS that
@olivergierke has asked us to avoid using.
This commit replaces the use of Jackson2HalModule with a new approach.
Now, the message converters of any RequestMappingHandlerAdapter beans
are examined and any TypeConstrainedMappingJackson2HttpMessageConverter
instances are modified to support application/json in addition to their
default support for application/hal+json. This behaviour can be disabled
by setting spring.hateoas.use-hal-as-default-json-media-type to false.
This property is named after Spring Data REST’s configuration option
which has the same effect when using Spring Data REST. The new property
replaces the old spring.hateoas.apply-to-primary-object-mapper property.
Previously, when Spring Data REST was on the classpath,
JacksonAutoConfiguration would be switched off resulting in the context
containing multiple ObjectMappers, none of which was primary.
This commit configures RepositoryRestMvcAutoConfiguration to run after
JacksonAutoConfiguration. This gives the latter a chance to create its
primary ObjectMapper before the former adds its ObjectMapper beans to
the context.
Previously, the actuator’s hypermedia support assumed that the
HttpMessageConverters bean would contain every HttpMessageConverter
being used by Spring MVC. When Spring HATEOAS is on the classpath this
isn’t the case as it post-processes RequestMappingHandlerAdapter beans
and adds a TypeConstrainedMappingJackson2HttpMessageConverter to them.
This wasn’t a problem in the past as the primary ObjectMapper, used by a
vanilla MappingJackson2HttpMessageConverter, was configured with Spring
HATEOAS’sJackson2HalModule. Now that this pollution has been tidied up
the assumption described above no longer holds true. MvcEndpointAdvice,
which adds links to the actuator’s json responses, has been updated
to look at the HttpMessageConverters of every
RequestMappingHandlerAdapter when it’s trying to find a converter to
use to write a response with additional hypermedia links.
Integration tests have been added to spring-boot-actuator to ensure
that the changes described above have not regressed the ability to
configure its json output using spring.jackson.* properties (see
gh-1729).
Closes gh-3891
2015-09-24 22:50:40 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
|
<artifactId>spring-data-rest-webmvc</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-09-30 17:13:32 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-10-03 06:35:58 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-04-24 17:02:07 +08:00
|
|
|
</dependencies>
|
|
|
|
</project>
|