1. 14 Jan, 2015 2 commits
  2. 13 Jan, 2015 1 commit
    • Andy Wilkinson's avatar
      Tighten up conditions: a web application may not be using Spring MVC · b875a00e
      Andy Wilkinson authored
      Previously, some classes that were annotatated with
      @ConditionalOnWebApplication assumed that, if the application was a
      web application, Spring MVC (spring-webmvc) would be on the classpath.
      If it was not, the application would fail to start, typically with an
      error relating to WebMvcConfigurerAdapter being unavailable.
      
      This commit updates the affected configuration classes and annotates
      them with @ConditionalOnClass(WebMvcConfigurerAdapter.class) to
      ensure that their auto-configuration only takes effect if its a web
      application and Spring MVC is on the classpath.
      
      Fixes gh-2345
      b875a00e
  3. 07 Jan, 2015 1 commit
    • Andy Wilkinson's avatar
      Prevent Gradle from pulling in groovy-all with the remote shell starter · ac1d0cab
      Andy Wilkinson authored
      Sadly, Gradle handle's exclusions differently to Maven even when it's
      processing a Maven pom.
      
      In this case groovy-all is pulled in via org.crashub:crash.shell where
      we've excluded it. This is enough to prevent Maven from pulling in
      groovy-all when you depend on the remote shell starter.
      org.crashub:crash.shell is also pulled in as a transitive dependency
      of a number of other dependencies and Gradle requires each of these
      to also exclude groovy-all for it to actually be excluded.
      
      This commit adds the additional exclusions that are required to make
      Gradle's behaviour sane.
      
      Fixes gh-2257
      ac1d0cab
  4. 06 Jan, 2015 1 commit
    • Phillip Webb's avatar
      Fix InMemoryAuditEventRepository search by date · bd83aca6
      Phillip Webb authored
      Update InMemoryAuditEventRepository to consider the date when searching
      for events. Also switch to a circular buffer implementation and update
      the capacity to limit the total number of items rather than limiting
      per principal.
      
      Fixes gh-2291
      bd83aca6
  5. 05 Jan, 2015 1 commit
    • Phillip Webb's avatar
      Fix documentation code example error · 0622b3e9
      Phillip Webb authored
      The "Customizing ConfigurableEmbeddedServletContainer directly"
      section should use `HttpStatus.NOT_FOUND` and not `HttpStatus.404` in
      the sample code.
      
      Fixes gh-2258
      0622b3e9
  6. 03 Jan, 2015 2 commits
  7. 02 Jan, 2015 2 commits
    • Phillip Webb's avatar
      Fix ParentAwareNamingStrategy and JMX auto-config · 7e771bb6
      Phillip Webb authored
      Fix ParentAwareNamingStrategy to set ObjectName properties for the
      'identity' and 'context' attributes. Also update JmxAutoConfiguration
      to ensure that the ParentAwareNamingStrategy is created in each context
      and that the `mbeanExporter` bean is created. Prior to this commit the
      nested @EnableMBeanExport class always meant that the mbeanExporter
      condition never matched.
      
      Fixes gh-2243
      7e771bb6
    • Phillip Webb's avatar
      Guard for multiple ContentNegotiatingViewResolvers · c46478f9
      Phillip Webb authored
      Update WebMvcAutoConfiguration to ensure than the viewResolver bean
      is not created if a user defined ContentNegotiatingViewResolver bean
      is defined.
      
      Fixes gh-2269
      c46478f9
  8. 30 Dec, 2014 3 commits
  9. 28 Dec, 2014 2 commits
  10. 27 Dec, 2014 1 commit
  11. 26 Dec, 2014 1 commit
    • Phillip Webb's avatar
      Make RequestMappingHandlerMapping @Primary · 96d479c3
      Phillip Webb authored
      Update WebMvcAutoConfiguration so that the RequestMappingHandlerMapping
      bean is @Primary. Prior to this commit a NoUniqueBeanDefinitionException
      would be thrown then using the MvcUriComponentsBuilder.
      
      Fixes gh-2237
      96d479c3
  12. 23 Dec, 2014 2 commits
  13. 18 Dec, 2014 2 commits
  14. 17 Dec, 2014 1 commit
  15. 15 Dec, 2014 1 commit
  16. 14 Dec, 2014 2 commits
  17. 12 Dec, 2014 2 commits
  18. 11 Dec, 2014 2 commits
  19. 10 Dec, 2014 2 commits
  20. 09 Dec, 2014 1 commit
    • Phillip Webb's avatar
      Fix session timeout default value · 1c031abd
      Phillip Webb authored
      Update DEFAULT_SESSION_TIMEOUT to use TimeUnit.MINUTES.toSeconds(30)
      rather than TimeUnit.SECONDS.toMinutes(30) which would always return
      0.
      
      See gh-2084
      (cherry picked from commit b33bbd56)
      1c031abd
  21. 08 Dec, 2014 5 commits
  22. 05 Dec, 2014 2 commits
  23. 02 Dec, 2014 1 commit
    • Andy Wilkinson's avatar
      Make Security auto-config conditional on spring-security-config · 3b78aa94
      Andy Wilkinson authored
      SecurityAutoConfiguration, via its import of
      AuthenticationManagerConfiguration, requires spring-security-config
      to be on the classpath as AuthenticationManagerConfiguration extends
      GlobalAuthenticationConfigurerAdapter from spring-security-config.
      
      This commit makes SecurityAutoConfiguration conditional on the
      presence of GlobalAuthenticationConfigurerAdapter so that the
      auto-configuration will be disabled in its absence rather than causing
      an app to fail to start.
      
      Closes gh-2046
      3b78aa94