1. 16 Sep, 2016 6 commits
    • Stephane Nicoll's avatar
      Improve startup error message · 50c68a49
      Stephane Nicoll authored
      This commit improves the startup error message so that it does not
      reference  `--debug` anymore. Such command-line switch only works when
      the application is started using `java -jar`.
      
      The error message now refers directly to a section of the documentation
      that provides more details and links to more useful examples.
      
      Closes gh-6593
      50c68a49
    • Stephane Nicoll's avatar
      Polish · 78bb04f2
      Stephane Nicoll authored
      78bb04f2
    • Stephane Nicoll's avatar
      Clarify SpringBootWebSecurityConfiguration scope · 284988f0
      Stephane Nicoll authored
      This commit fixes the documentation that wrongly states that
      SpringBootWebSecurityConfiguration is an auto-configuration. Rather than
      excluding this class, we should exclude SecurityAutoConfiguration that
      imports it.
      
      Closes gh-6861
      284988f0
    • Stephane Nicoll's avatar
      Support Qualifiers on MockBean and SpyBean · 3f236dc9
      Stephane Nicoll authored
      Previously, if an injection point used a qualifier, `MockBean` and
      `SpyBean` couldn't be used to mock/spy it as there was no way to
      specify that qualifier information.
      
      This commit now detects qualifier information on the injection point
      and associate it with the created `BeanDefintion`. If one wants to
      mock a bean that is qualified with `@Qualifier("foo")`, the definition
      of the mock should be as follows:
      
      ```
      public class MyTest {
      
      	@MockBean
      	@Qualifier("foo")
      	private ExampleService service;
      }
      ```
      
      As a side effect, it is now possible to mock a service by type even if
      there are multiple instances of that type in the application context. The
      provided qualifier information is used to determine the right candidate
      and the proper bean definition is replaced accordingly.
      
      Closes gh-6753
      3f236dc9
    • Phillip Webb's avatar
      Relax TestEntityManager @ID restriction · 3e19f8aa
      Phillip Webb authored
      Change TestEntityManager so that entities with an ID can be persisted.
      
      Fixes gh-6546
      3e19f8aa
    • Phillip Webb's avatar
      Fix failing tests · 25c4e261
      Phillip Webb authored
      See gh-6897
      25c4e261
  2. 15 Sep, 2016 21 commits
    • Phillip Webb's avatar
      Refine inner-class test @Configuration detection · 5f7897ba
      Phillip Webb authored
      Update detection logic to also consider `@Rules` classes. Also make the
      documentation a little clearer.
      
      Fixes gh-6768
      5f7897ba
    • Phillip Webb's avatar
      Fix potential @AutoConfigureTestDatabase NPE · 46815fc4
      Phillip Webb authored
      Protect against the situation where no DataSource beans can be found
      at all.
      
      Fixes gh-6897
      46815fc4
    • Phillip Webb's avatar
      Merge pull request #6882 from olivergierke/issue/6881 · fe7bbbe8
      Phillip Webb authored
      * pr/6882:
        Use default simple types with MongoMappingContext
      fe7bbbe8
    • Oliver Gierke's avatar
      Use default simple types with MongoMappingContext · 0860ad4f
      Oliver Gierke authored
      Change the auto-configure MongoMappingContext to use the
      SimpleTypesHolder instance `Set` that's produced by a CustomConversions
      bean, which we in turn now default, too.
      
      This update is necessary as `CustomConversions` registers converters by
      inspecting the classpath (to automatically detect Java 8, JodaTime etc.)
      and by that rendering the types for which we find converters for as
      simple ones, i.e. non-entities.
      
      Fixes gh-6881
      Closes gh-6882
      0860ad4f
    • Phillip Webb's avatar
      Merge pull request #6891 from kazuki43zoo/externalized-configuration-in-doc · f38deada
      Phillip Webb authored
      * pr/6891:
        Document devtools properties in config load order
      f38deada
    • Kazuki Shimizu's avatar
      Document devtools properties in config load order · 2cedb45c
      Kazuki Shimizu authored
      Add reference to `~/spring-boot-devtools.properties` in
      "Externalized Configuration" section.
      
      Closes gh-6891
      2cedb45c
    • Phillip Webb's avatar
      Generate property meta-data for test projects · ebb08c36
      Phillip Webb authored
      Add annotation processor to `spring-boot-test` and
      `spring-boot-test-autoconfigure`.
      
      Fixes gh-6893
      ebb08c36
    • Andy Wilkinson's avatar
      Upgrade Elasticsearch to 2.4 and restore use of Jackson 2.8 · 045f3571
      Andy Wilkinson authored
      In 1.4.0 we used Elasticsearch 2.3.5 and Jackson 2.8. This
      combination was incompatible in some circumstances due to a change
      in Jackson (gh-6508). With Elasticsearch 2.4 yet to be released at the
      time, the only way to restore compatibility was to downgrade Jackson.
      
      With the release of Elasticsearch 2.4 we have another option: revert
      the Jackson downgrade and upgrade Elasticsearch instead. While we
      normally wouldn't consider upgrading to a new minor version of a
      dependency in a maintenance release we have to do something to restore
      compatibility. The alternative is to downgrade Jackson but that will
      affect more people (Jackson is more widely used than Elasticsearch)
      and will lose some functionality that was new in Jackson 2.8 that
      people may already be relying upon.
      
      This commit restores the use of Jackson 2.8 – including the
      2.8-specific dependency management – and upgrades to Elasticsearch 2.4
      
      Closes gh-6868
      045f3571
    • Andy Wilkinson's avatar
      Fix LegacyCookieProcessor configuration example and test it · 28ea6fd3
      Andy Wilkinson authored
      Closes gh-6827
      28ea6fd3
    • Andy Wilkinson's avatar
      Merge branch '1.3.x · 5c632dfc
      Andy Wilkinson authored
      5c632dfc
    • Andy Wilkinson's avatar
      Update docs to note that Gradle 3 is not supported · 30cb15a0
      Andy Wilkinson authored
      Breaking API changes in Gradle 3.0 make it impossible to support
      it reliably alongside Gradle 1 and 2 without mainintaining multiple
      versions of our Gradle plugin. This commit updates the documentation
      to note that Gradle 3 is not supported.
      
      Closes gh-6880
      30cb15a0
    • Andy Wilkinson's avatar
      Merge branch '1.3.x · 4d2e557f
      Andy Wilkinson authored
      4d2e557f
    • Andy Wilkinson's avatar
      Allow spring.config.location to be configured via servlet context · b8833c40
      Andy Wilkinson authored
      Previously, in a war deployment, the web environment’s property sources
      were initialized using the servlet context after the application’s
      configuration had been read by ConfigFileApplicationListener. This
      meant that spring.config.location configured via the servlet context
      had no effect.
      
      This commit adds a new ApplicationListener,
      ServletContextApplicationListener, that initialises the configurable
      web environment’s property sources using the servlet context. It’s
      ordered with higher precedence than ConfigFileApplicationListener to
      ensure that any properties defined in the servlet context are available
      when loading the application’s configuration.
      
      Closes gh-6801
      b8833c40
    • Andy Wilkinson's avatar
    • Stephane Nicoll's avatar
      Polish cache doc · 7e263d89
      Stephane Nicoll authored
      Closes gh-6892
      7e263d89
    • Andy Wilkinson's avatar
      Fail fast if @WebAppConfiguration is used with a non-mock web environement · 7b3382e3
      Andy Wilkinson authored
      @WebAppConfiguration expects a mock web environment. If it is used
      in conjuction with @SpringBootTest configured with a RANDOM_PORT or
      DEFINED_PORT web environment a null pointer exception occurs as an
      assumption that's made by MockServerContainerContextCustomizer doesn't
      hold true in a non-mock web environment.
      
      This commit updates SpringBootTestContextBootstrap to detect the
      illegal configuration combination and fail fast, advising the user
      to remove @WebAppConfiguration or reconfigure @SpringBootTest.
      
      Closes gh-6795
      7b3382e3
    • Stephane Nicoll's avatar
      Polish · 8470ecb4
      Stephane Nicoll authored
      8470ecb4
    • Phillip Webb's avatar
      Ensure test @PostConstructs are only called once · 71345863
      Phillip Webb authored
      Rename AutoConfigureReportTestExecutionListener to
      SpringBootDependencyInjectionTestExecutionListener and ensure that it
      replaces any existing DependencyInjectionTestExecutionListener.
      
      Prior to this commit the registration of two DependencyInjection
      listeners would cause @PostConstruct methods on tests to be called
      twice.
      
      In order to allow the standard DependencyInjectionTestExecutionListener
      to be removed a new DefaultTestExecutionListenersPostProcessor interface
      has been introduced.
      
      Fixes gh-6874
      71345863
    • Phillip Webb's avatar
      Document how to use LegacyCookieProcessor · 3d89dabb
      Phillip Webb authored
      Closes gh-6827
      3d89dabb
    • Phillip Webb's avatar
      Allow default profile to also be set in properties · 06064286
      Phillip Webb authored
      Update `ConfigFileApplicationListener` so that active profiles set in
      properties files that overlap with `spring.profiles.default` can still
      be set.
      
      Prior to this commit if `spring.profiles.active` happened to specify
      a profile name that was also in `spring.profiles.default` it would
      not get applied.
      
      Fixes gh-6833
      06064286
    • Phillip Webb's avatar
      Fix failing test following Tomcat upgrade · dcfe2673
      Phillip Webb authored
      Tomcat 8.5.5 has change the default value of `validationInterval` to
      3000. See https://bz.apache.org/bugzilla/show_bug.cgi?id=59923 for
      details.
      
      See gh-6703
      See gh-6657
      dcfe2673
  3. 14 Sep, 2016 5 commits
  4. 13 Sep, 2016 2 commits
  5. 12 Sep, 2016 6 commits