1. 18 Feb, 2015 14 commits
  2. 17 Feb, 2015 10 commits
  3. 16 Feb, 2015 1 commit
    • Stephane Nicoll's avatar
      Add Version and VersionRange utilities · 34ede2f3
      Stephane Nicoll authored
      Parse a version using our version format or any version that complies
      with Major.Minor.Patch. Also add a VersionRange utility that can
      determine if a given version is withing that range.
      
      Closes gh-2494
      34ede2f3
  4. 13 Feb, 2015 5 commits
  5. 12 Feb, 2015 7 commits
    • Andy Wilkinson's avatar
      Merge branch '1.1.x' · a8726c4a
      Andy Wilkinson authored
      a8726c4a
    • Andy Wilkinson's avatar
      Ensure that management endpoints with nested paths are secured · d7ae0f3b
      Andy Wilkinson authored
      Previously each endpoint was secured for path, path/, and path.*.
      This meant that a request to path/foo was not secured. This commit
      secures path/** to ensure that requests to a nested endpoint path are
      also secured.
      
      Fixes gh-2476
      d7ae0f3b
    • Andy Wilkinson's avatar
      Remove duplicate deployment tests · a4b4b850
      Andy Wilkinson authored
      Closes gh-2472
      a4b4b850
    • Andy Wilkinson's avatar
      Make Joda DateTime serialization format configurable · 201fb5e5
      Andy Wilkinson authored
      We allow the serialization format of dates to be configured using
      spring.jackson.date-format. However, this property only applies to
      java.util.Date instances and has no effect on a Joda DateTime.
      
      This commit updates our auto-configuration for Jackson to allow
      the format string that is used to  serialize a Joda DateTime to be
      configured. A new property, spring.jackson.joda-date-time-format has
      been introduced. When configured, it is used to configure the
      serialization format for a Joda DateTime. When it is not configured,
      we fall back to using spring.jackson.date-format. If this fails,
      either because the format string is incompatible (unlikely) or because
      the user's configured the fully-qualified name of a DateFormat class,
      a warning is logged encouraging the use of
      spring.jackson.joda-date-time-format.
      
      Fixes gh-2225
      201fb5e5
    • Andy Wilkinson's avatar
      Register Module beans with Jackson2ObjectMapperBuilder · f11bcb94
      Andy Wilkinson authored
      Prior to this commit, Module beans were registered with all
      ObjectMapper beans, but were not registered with the auto-configured
      Jackson2ObjectMapperBuilder. This meant that any ObjectMapper created
      with the builder but not exposed as a bean would not have the Module
      beans registered with it. One such ObjectMapper is the one used by the
      auto-configured MappingJackson2XmlHttpMessageConverter. This caused
      XML (de)serialization to be different to JSON (de)serialization.
      
      This commit updates JacksonAutoConfiguration to register all of the
      application context's Module beans with the auto-configured
      Jackson2ObjectMapperBuilder. This ensures consistent configuration
      of any ObjectMapper that's created using the builder, irrespective of
      whether or not that ObjectMapper is also exposed as a bean, and
      also ensures that (de)serialization of JSON and XML is consistent.
      
      See gh-2327
      f11bcb94
    • Dave Syer's avatar
      Add realm name to 401 responses from basic auth · 0899ffda
      Dave Syer authored
      Since the BasicAuthenticationEntryPoint does its own
      challenge when authentication fails, we need to add that
      entry point in the SpringBootWebSecurityConfiguration
      explicitly.
      
      Fixes gh-2483
      0899ffda
    • Dave Syer's avatar
      Fix ordering of keys in PropertySourcesPropertyValues · 12724bf3
      Dave Syer authored
      Since @ConfigurationProperties binding uses a single instance of
      PropertySourcesPropertyValues per bean, there doesn't seem to be
      any issue with using a normal LinkedHashMap. Then the order
      passed in as PropertySources will be preserved.
      
      Fixes gh-2487
      12724bf3
  6. 11 Feb, 2015 1 commit
  7. 10 Feb, 2015 2 commits
    • Andy Wilkinson's avatar
      Stop a BeanPostProcessor from preventing config of packages to scan · b1833097
      Andy Wilkinson authored
      Previously, if a BeanPostProcessor bean was declared in a configuration
      class that depended on the persistence context, packages to scan would
      not be configured on the LocalContainerEntityManagerFactoryBean. This
      was due to the BeanPostProcessor bean triggering the early instantiation
      of the LCEMFB before EntityScanBeanPostProcessor, the BeanPostProcessor,
      that applies the @EntityScan configuration, had been given a chance to
      configure it.
      
      This commit updates EntityScanBeanPostProcessor to implement Ordered
      with an order of zero. This ensures that its ordering is predictable
      and that it will be driven before any unordered BeanPostProcessor. This
      means that, unless the user has specifically ordered their
      BeanPostProcessor to run before EntityScanBeanPostProcessor, 
      LCEMFB’s packages to scan will be configured as expected.
      
      Fixes gh-2478
      b1833097
    • Stephane Nicoll's avatar
      Expose RepositoryRestMvcBootConfiguration · 1035e5b0
      Stephane Nicoll authored
      If an application defines a custom RepositoryRestMvcConfiguration, all
      Spring Boot defaults are lots. While this sounds sensible, it can be
      confusing as Spring Boot exposes properties (`spring.data.rest.*`) that
      are no longer honored.
      
      RepositoryRestMvcBootConfiguration is now public and can be used as an
      extension point for those who need to customize the Spring Data REST
      configuration and keep boot's specific defaults.
      
      Fixes gh-2392
      1035e5b0