1. 28 Jul, 2015 6 commits
  2. 27 Jul, 2015 10 commits
  3. 26 Jul, 2015 1 commit
  4. 24 Jul, 2015 5 commits
  5. 23 Jul, 2015 17 commits
    • Stephane Nicoll's avatar
      Merge pull request #3588 from justingarrick/fix-web-ui-sample · 8ea6b99e
      Stephane Nicoll authored
      * pr/3588:
        Remove unnecessary mainClassName
        Fix package name of web-ui sample
      8ea6b99e
    • Stephane Nicoll's avatar
      Remove unnecessary mainClassName · 7c3cdead
      Stephane Nicoll authored
      Since each sample has (supposedly) only one application class and not
      a lot of the code, the `mainClassName` attribute in the gradle build is
      not really useful and can lead to inconsistency if the application class
      is moved.
      
      See gh-3588
      7c3cdead
    • Justin Garrick's avatar
      Fix package name of web-ui sample · 8960b880
      Justin Garrick authored
      Closes gh-3588
      8960b880
    • Stephane Nicoll's avatar
      Clean server.context-path if necessary · 3b5fa5a6
      Stephane Nicoll authored
      While the doc states that the default value is '/', setting that value
      explicitly will lead to an error since we enforce that the default root
      is the empty string.
      
      Changing the doc will probably be more confusing than anything else so
      we're now cleaning the user's provided value if necessary
      
      Closes gh-3554
      3b5fa5a6
    • Andy Wilkinson's avatar
      List classes with no class-level conditions in the auto-config report · 37edee4f
      Andy Wilkinson authored
      This commit adds a new "Unconditional classes" section to the
      auto-configuration report. It lists any auto-configuration classes
      that do not have any class-level conditions, i.e. the class will be
      always be part of the application's configuration.
      
      Closes gh-2209
      37edee4f
    • Andy Wilkinson's avatar
      Merge branch '1.2.x' · c0c98b02
      Andy Wilkinson authored
      c0c98b02
    • Andy Wilkinson's avatar
      6d366053
    • Andy Wilkinson's avatar
      Adopt RepositoryRestConfigurer and discourage subclassing · 24c63c9b
      Andy Wilkinson authored
      A RepositoryRestMvcConfiguration subclass provided by a user is
      problematic in a Spring Boot application as it causes
      RepositoryRestMvcConfiguration's bean declarations to be processed
      before any auto-configuration runs.
      
      One problem that this causes is that it switches off Boot's Jackson
      auto-configuration due to RepositoryRestMvcConfiguration having
      already declared multiple ObjectMapper beans. Unlike Boot's
      auto-configured ObjectMapper, none of these ObjectMappers are marked
      as @Primary. This then leads to wiring failures due to multiple
      candidates being available.
      
      To address this problem a new RepositoryRestConfigurer abstract has been
      introduced in Spring Data Gosling. Its use is now strongly preferred
      over subclassing RepositoryRestMvcConfiguration. Note that our own
      RepositoryRestMvcConfiguration subclass remains. It is imported as part
      of auto-configuration (avoiding the ordering problems described above),
      and provides configuration properties binding for
      RepositoryRestConfiguration. However, the Jackson ObjectMapper
      configuration has been moved out into a new RepositoryRestConfigurer
      implementation.
      
      While SpringBootRepositoryRestMvcConfiguration remains, this commit
      makes it package private to discourage users from subclassing it. While
      this may break existing applications, it, coupled with the documentation
      updates, will hopefully guide them toward using
      RepositoryRestConfigurer.
      
      Closes gh-3439
      24c63c9b
    • Stephane Nicoll's avatar
      Merge pull request #3566 from drumonii/gh-3510-doc · 9cd3b20a
      Stephane Nicoll authored
      * pr/3566:
        Polish
        Document validation of nested components
      9cd3b20a
    • Stephane Nicoll's avatar
      Polish · 34891c27
      Stephane Nicoll authored
      Closes gh-3566
      34891c27
    • drumonii's avatar
      Document validation of nested components · fbf6574b
      drumonii authored
      See gh-3566
      fbf6574b
    • Stephane Nicoll's avatar
      Merge pull request #3534 from lucassaldanha/issue-#3513 · 92447814
      Stephane Nicoll authored
      * pr/3534:
        Polish
        Add configuration properties validation sample
      92447814
    • Stephane Nicoll's avatar
      Polish · 80754d5c
      Stephane Nicoll authored
      Closes gh-3534
      80754d5c
    • Lucas Saldanha's avatar
      Add configuration properties validation sample · bf303b02
      Lucas Saldanha authored
      Create a new project sample that demonstrate the usage of
      @ConfigurationProperties with configurationPropertiesValidator.
      
      Fixes gh-3513
      bf303b02
    • Stephane Nicoll's avatar
      Merge branch '1.2.x' · 4596844b
      Stephane Nicoll authored
      4596844b
    • Stephane Nicoll's avatar
      Use custom validator on supported classes only · fbfbec11
      Stephane Nicoll authored
      Previously, a customer was set regardless of the fact that it is
      supported on the target bean. DataBinder has an actual assertion check
      that would fail in such a case.
      
      We now associate the custom validator only if it supports the target
      bean.
      
      Fixes gh-3581
      fbfbec11
    • izeye's avatar
      Remove default paths in HAL and Links endpoints as value varies · cb0c6843
      izeye authored
      The default values of fields in @ConfigurationProperties classes are,
      where possible, included in the configuration metadata. The default
      values for the HAL and Links endpoints vary depending on other
      configuration settings. As a result, including a default in the
      metadata is misleading.
      
      This commit removes the default assignment of "" to the path fields so
      that no default value will be included in the metadata.
      
      Closes gh-3567
      cb0c6843
  6. 22 Jul, 2015 1 commit