1. 06 Aug, 2014 2 commits
    • Andy Wilkinson's avatar
      Never run data.sql scripts if spring.datasource.initialize is false · 7d213950
      Andy Wilkinson authored
      Previously, the data scripts were always run in response to the
      publication of a DataSourceInitializedEvent, irrespective of
      spring.datasource.initialize. While the event won't be published by
      DataSourceInitializer if spring.datasource.initialize is false, it
      will be published if spring.jpa.hibernate.hbm2ddl.auto has been set.
      
      This commit updates DataSourceInitializer's handling of
      DataSourceInitializedEvent to only run the data scripts if
      spring.datasource.initialize is true.
      
      Fixes #1336
      7d213950
    • Andy Wilkinson's avatar
      Update test to correct name of metric for request that returns a 401 · e1857933
      Andy Wilkinson authored
      The request is being made to '/' and, while the application does have
      a mapping for '/', that mapping is not looked for before Spring
      Security's filter rejects the request with a 401. This means that the
      request is considered to be unmapped and this is reflected in the
      metric's name.
      
      See #1331 and #1333
      e1857933
  2. 05 Aug, 2014 3 commits
  3. 04 Aug, 2014 4 commits
  4. 31 Jul, 2014 3 commits
  5. 30 Jul, 2014 1 commit
    • Andy Wilkinson's avatar
      Prevent a jar from being repackaged more than once · 6f8d4778
      Andy Wilkinson authored
      Previously, Repackager would repackage a jar file as many times as
      it was asked to do so. This lead to problems if a user made a mistake
      when using Maven that led to the package phase being driven twice,
      for example by running "mvn clean install package".
      
      This commit updates Repackager so that a repackage call becomes a
      no-op if the source jar's manifest already contains the
      Spring-Boot-Version attribute which is added by repackaging.
      
      Fixes #1251
      6f8d4778
  6. 29 Jul, 2014 4 commits
    • Andy Wilkinson's avatar
      Upgrade to Spring HATEOAS 0.16.0 · b7299708
      Andy Wilkinson authored
      Closes #1307
      b7299708
    • Andy Wilkinson's avatar
      Upgrade to Spring Data Dijkstra SR3 · b69a5dab
      Andy Wilkinson authored
      Closes #1305
      b69a5dab
    • Andy Wilkinson's avatar
      Avoid RS.getObject(index, Object.class) as it breaks MySQL on Java 7 · 333bc3e8
      Andy Wilkinson authored
      Previously, when running on Java 7+, the JDBC query driven by
      DataSourceHealthIndicator resulted in a call to
      ResultSet.getObject(index, Object.class). When using MySQL's JDBC
      driver this failed with an SQLException with the message "Conversion
      not supported for type java.lang.Object". The problem does not occur
      on Java 6 as the overload of getObject that takes a type does not
      exist; ResultSet.getObject(index) is called instead and MySQL happily
      returns whatever type it deems to be appropriate for the column.
      
      This commit updates DataSourceHealthIndicator so that
      ResultSet.getObject(index) will always be used, irrespective of the
      version of Java that Boot is running on.
      
      Closes #1306
      333bc3e8
    • Andy Wilkinson's avatar
      Upgrade to Groovy 2.3.6 · 86d47f62
      Andy Wilkinson authored
      Closes #1304
      86d47f62
  7. 28 Jul, 2014 7 commits
    • Phillip Webb's avatar
      Polish · f8bf0e20
      Phillip Webb authored
      f8bf0e20
    • Phillip Webb's avatar
      Retain default order in HttpMessageConverters · 5e1552b7
      Phillip Webb authored
      The original fix for gh-1293 (commit 05e6af23) caused test failures due
      to the fact that Spring Boot's MappingJackson2HttpMessageConverter was
      added before Spring's default StringHttpMessageConverter.
      
      This commit changes the HttpMessageConverters logic so that additional
      converts are added just before any default converter of the same type.
      This allows additional converters to be added whilst still retaining
      the sensible ordering of the default converters.
      
      Fixes gh-1293
      5e1552b7
    • Dave Syer's avatar
      Prepend without replacing in HttpMessageConverters · 05e6af23
      Dave Syer authored
      It was incorrect to simply replace existing instances because you can't
      tell from the instance which media types and java types it supports. This
      fix just prepends the custom converters so they get higher priority.
      
      Fixes gh-1293
      05e6af23
    • Dave Syer's avatar
      Update git properties plugin · 702253bc
      Dave Syer authored
      702253bc
    • Andy Wilkinson's avatar
      Enable test that relies on class and groovy script configuration · 32a19f59
      Andy Wilkinson authored
      Since Spring 4.0.4, it's now possible to use both classes and
      locations to provide a test's configuration.
      
      Closes #1300
      32a19f59
    • Andy Wilkinson's avatar
      Upgrade to Groovy 2.3.5 · cba50b8e
      Andy Wilkinson authored
      Closes #1299
      cba50b8e
    • Andy Wilkinson's avatar
      Rework Jetty startup so connectors are only started once · bd577f15
      Andy Wilkinson authored
      Previously the server was started to make the ServletContext
      available, then, to prevent requests from being handled before the
      application context had been started, the connectors were stopped.
      Once application context startup had completed, the connectors were
      then started again. In addition to being somewhat inefficient, this
      caused problems on FreeBSD where stopping the connector didn't free
      up the port quickly enough for the subsequent start to then be able
      to bind to it.
      
      This commit updates the Jetty startup logic to be closer to the logic
      that's used for Tomcat. Before the server is started, the configured
      connectors are cached and then removed. The server is then started
      without any connectors. Once application context startup has
      completed, the connectors are reinstated and started.
      
      Fixes #968
      bd577f15
  8. 25 Jul, 2014 2 commits
    • Dave Syer's avatar
      Change private method name · 8c15b13f
      Dave Syer authored
      8c15b13f
    • Dave Syer's avatar
      Extract property sources from composite when binding · 32ede50d
      Dave Syer authored
      Often this change will not be important because you are binding to
      a bean with strongly typed properties. A bean with a Map property,
      on the other hand, won't oytherwise be able to reason about the
      permitted keys so it will miss any non-enumerable property sources,
      including composites whose nested sources are themselves enumerable.
      
      Fixed gh-1294
      32ede50d
  9. 24 Jul, 2014 3 commits
  10. 23 Jul, 2014 2 commits
  11. 21 Jul, 2014 7 commits
  12. 17 Jul, 2014 2 commits