1. 28 Sep, 2015 1 commit
  2. 26 Sep, 2015 8 commits
  3. 24 Sep, 2015 18 commits
    • Andy Wilkinson's avatar
      Simplify Jackson-related auto-configuration for HATEOAS and Data REST · c55900b4
      Andy Wilkinson authored
      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
      c55900b4
    • Phillip Webb's avatar
      Fix checkstyle errors · 028fc047
      Phillip Webb authored
      028fc047
    • Phillip Webb's avatar
      Make BasicErrorController easier to subclass · b95bb54e
      Phillip Webb authored
      Extract a new AbstractErrorController base class for users to extend
      if they don't like the default BasicErrorController.
      
      Fixes gh-3998
      b95bb54e
    • Phillip Webb's avatar
      Make FlywayMigrationInitializer ordered and public · 764c0a8b
      Phillip Webb authored
      Update `FlywayAutoConfiguration` to allow explicit ordering of the
      `FlywayMigrationInitializer`.
      
      Fixes gh-4011
      764c0a8b
    • Phillip Webb's avatar
      Improve DataSourceProperties exception messages · 06f3202c
      Phillip Webb authored
      Update DataSourceProperties exceptions to include a less misleading
      message. Errors message now note that you may need to add an embedded
      database to the classpath or active a profile to pickup specific
      settings.
      
      Fixes gh-4012
      06f3202c
    • Phillip Webb's avatar
      44c12230
    • Phillip Webb's avatar
      Fixup following package auto-configuration moves · 676efe7a
      Phillip Webb authored
      A string based exclude was missed in commit c6298131.
      
      See gh-4002
      676efe7a
    • Phillip Webb's avatar
      Merge pull request #3719 from sbuettner/master · bf34dc50
      Phillip Webb authored
      * pr/3719:
        Add statsd metric export auto-configuration
      bf34dc50
    • Simon Buettner's avatar
      Add statsd metric export auto-configuration · 70031cca
      Simon Buettner authored
      Update MetricExportAutoConfiguration to auto-configure statsd metrics
      export when a `spring.metrics.export.statsd.host` property is set.
      
      Closes gh-3719
      70031cca
    • Phillip Webb's avatar
      Merge pull request #3915 from fabriciocolombo/liquibase · 9128f2b9
      Phillip Webb authored
      * pr/3915:
        Add Liquibase labels and parameters properties
      9128f2b9
    • Fabricio Colombo's avatar
      Add Liquibase labels and parameters properties · 605eb8a1
      Fabricio Colombo authored
      Update `LiquibaseAutoConfiguration` and `LiquibaseProperties` to add
      support for labels and parameters.
      
      Closes gh-3915
      605eb8a1
    • Phillip Webb's avatar
      Merge pull request #3938 from candrews/patch-2 · d0dbe937
      Phillip Webb authored
      * pr/3938:
        Add `git.properties` to default devtools excludes
      d0dbe937
    • Craig Andrews's avatar
      Add `git.properties` to default devtools excludes · 84da5a26
      Craig Andrews authored
      Update `DevToolsProperties` to exclude `git.properties` files.
      
      Prior to this commit any application configured to write `git.properties`
      could trigger unexpected application restarts. The problem is particularly
      prevalent when using Eclipse M2E in combination with the
      `git-commit-id-plugin`.
      
      Closes gh-3938
      84da5a26
    • Phillip Webb's avatar
      Merge pull request #3962 from izeye/hazelcast · a63ec53d
      Phillip Webb authored
      * pr/3962:
        Remove duplicate `@ConditionalOnMissingBean` checks.
      a63ec53d
    • izeye's avatar
      efb699de
    • Ivan Chen's avatar
      Delete duplicate application.properties · 926b40e4
      Ivan Chen authored
      Closes gh-4004
      926b40e4
    • Phillip Webb's avatar
      Merge pull request #4010 from tbadie/master · 2e6bbd35
      Phillip Webb authored
      * pr/4010:
        Fix synchronization issue in OpenTSDBMetricWriter
      2e6bbd35
    • Thomas Badie's avatar
      Fix synchronization issue in OpenTSDBMetricWriter · 2fd1cacb
      Thomas Badie authored
      Closes gh-4010
      2fd1cacb
  4. 22 Sep, 2015 9 commits
  5. 21 Sep, 2015 4 commits