1. 03 Jun, 2014 9 commits
  2. 02 Jun, 2014 4 commits
    • Dave Syer's avatar
      Defensive on startup with Multipart config · 77eaa9b2
      Dave Syer authored
      77eaa9b2
    • Dave Syer's avatar
      Ensure JPA/Security are not fighting with each other on startup · 1f82ef4d
      Dave Syer authored
      This is *really* nasty (and led me to discover a related bug
      https://jira.spring.io/browse/SPR-11844), but fortunately easy to
      hide from users once you have a test case.
      
      The problem is that Spring Security registers a `BeanPostProcessor`
      to handle `GlobalAuthenticationConfigurerAdapters`, and Boot
      registers a `BeanPostProcessor` to handle injecting the packages
      to scan into an `EntityManagerFactory` from `@EntityScan`. The
      clash comes because the `EntityScanBeanPostProcessor` wants to be
      postprocessed by the Security postprocessor, but if the Security
      configuration depends on JPA it won't be ready in time.
      
      The fix (or workaround) depending on how you look at it is to
      prevent the other bean post processors from taking an interest in
      `EntityScanBeanPostProcessor` at all (mark it as synthetic).
      
      Fixes gh-1008
      1f82ef4d
    • Dave Syer's avatar
      Defer SQL initialization to fit with JPA better · 49a09c80
      Dave Syer authored
      Added 2 new spring.datasource.* properties ("data" like
      "schema", and "deferDdl" like the "spring.jpa.hibernate.*"
      flag). The SQL scripts are then run separately and the "data"
      ones are triggered by a new DataSourceInitializedEvent,
      which is also published by the Hibernate DDL schema export.
      
      Fixes gh-1006
      49a09c80
    • Dave Syer's avatar
      Remove some compiler warnings · efcbb327
      Dave Syer authored
      efcbb327
  3. 01 Jun, 2014 14 commits
  4. 31 May, 2014 1 commit
    • Phillip Webb's avatar
      Exclude commons-logging from starter POMs · c719ab7a
      Phillip Webb authored
      Update all relevant starter POMs to include a `spring-core` dependency
      with an exclusion on `commons-logging`. This prevents `commons-logging`
      and `jcl-over-slf4j` from both being on the classpath.
      
      Also add enforcer rules to ensure that commons-logging doesn't sneak
      back in, and that there is no dependency convergence. (some additional
      libraries were required in spring-boot-dependencies)
      
      Tested with a sample maven project as well as using the `spring jar`
      command.
      
      Fixes gh-985
      c719ab7a
  5. 30 May, 2014 12 commits