1. 24 Feb, 2014 14 commits
    • Phillip Webb's avatar
      Merge pull request #365 from olivergierke/master · cd3d4b48
      Phillip Webb authored
      * pull365:
        Upgrade to Spring Data Codd GA release.
      cd3d4b48
    • Oliver Gierke's avatar
      Upgrade to Spring Data Codd GA release. · af458cb2
      Oliver Gierke authored
      Adapt auto-configuration code to use the new constructor introduced
      in Spring Data Commons' AnnotationConfigurationSource.
      
      Fixes gh-365
      af458cb2
    • Phillip Webb's avatar
      Revert "Omit jar: prefix from jarFileUrl" · 865c51d7
      Phillip Webb authored
      Restore previous behavior where JarFile URLs are always prefixed with
      "jar:". I believe that the prefix is required in order to remain
      compatible with standard JAR URLs.
      
      This reverts commit 825fc2f7.
      865c51d7
    • Phillip Webb's avatar
      Polish · cf23b519
      Phillip Webb authored
      cf23b519
    • Dave Syer's avatar
      Add retry and parameter increment logic to job runner · 89473077
      Dave Syer authored
      The existing behaviour of JobLauncherCommandLineRunner was really too
      basic. It has now been enhanced (at the expense of duplicating a lot
      of code in Spring Batch it seems) to automatically increment job
      parameters if it can, and to retry a failed or stopped execution
      if it can (without incrementing, but with additional job parameters
      added from command line if they are non-identifying).
      
      The JobLauncherCommandLineRunner is more extendable and exposes
      its DI wiring points now as well, so hopefully users can make
      use of it independently of autoconfig (by providing a @Bean of
      that type).
      
      Not everything from the wishlist in gh-325 is implememented yet,
      but it should be a good platform to work with and to extend.
      89473077
    • Dave Syer's avatar
      Skip unnecessary attempt at executing Job · 09f3ee14
      Dave Syer authored
      ...that was already executed as part of the "local" set.
      
      Also added some howto docs on executing Batch jobs.
      
      See gh-382
      09f3ee14
    • hoserdude's avatar
      3ad6c96c
    • Dave Syer's avatar
      Add /mappings endpoint · 08d8cb8e
      Dave Syer authored
      Lists AbstractUrlMappings and AbstractHandlerMethodMappings
      in a loose Map structure. E.g.
      
      {
        "/**/favicon.ico": {
          "bean": "faviconHandlerMapping"
        },
        "/**": {
          "bean": "resourceHandlerMapping"
        },
        "/webjars/**": {
          "bean": "resourceHandlerMapping"
        },
        "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}":
           {
             "bean": "requestMappingHandlerMapping",
             "method": "public java.util.Map<java.lang.String, java.lang.Object> org.springframework.boot.actuate.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)"
      ...
      }
      
      Fixes gh-378
      08d8cb8e
    • Dave Syer's avatar
      Make sure metricsExecutor is shutdown cleanly · d98bfdea
      Dave Syer authored
      The default executor for publishing metrics was a single
      thread (native JDK) ExecutorService with a non-daemon thread.
      Changed it to a Spring-managed thread pool of size 1, which
      is then shutdown with e ApplicationContext automatically.
      
      Fixes gh-388
      d98bfdea
    • Dave Syer's avatar
      Fail on startup if Thymeleaf template directory missing · f38a36ff
      Dave Syer authored
      Better even than logging would be to fail fast? Surely it's a
      mistake not to have any /templates if Thymeleaf is in use.
      User can disable failfast by exlcuding thymeleaf configuration
      or by providing their own ITemplateResolver.
      
      Fixes gh-294
      f38a36ff
    • Dave Syer's avatar
      Switch default to fail on error in SQL initialization · 8d9c26b2
      Dave Syer authored
      User can switch the behaviour on and off with
      spring.datasource.continueOnError:true|false. I decided
      not to add an extra nested level of property resolution
      because of the existing spring.datasource.schema
      (and other properties relating to initialization) because
      concision seemed like a good thing with those more common
      settings.
      
      Fixes gh-374
      8d9c26b2
    • Dave Syer's avatar
      Fix shade configuration in parent pom · 766da911
      Dave Syer authored
      The Spring resource transformer class name changed
      (at least once) since the parent was originally
      created.
      
      Fixes gh-384
      766da911
    • Dave Syer's avatar
      Check for a mainClass in "run" task if there is one · 511fff05
      Dave Syer authored
      If there is a run task with an explicit main it can be used
      by the repackage task (assuming its own native setting is
      not used).
      
      Fixes gh-389
      511fff05
    • joschs's avatar
      Applying RelaxedNames before filtering PropertySources · b7802f98
      joschs authored
      ... to allow for OS_VAR to be bound to a @ConfigurationPropertes("os")
      class with field "var".
      
      Fixes gh-387, Fixes gh-391
      b7802f98
  2. 20 Feb, 2014 10 commits
  3. 19 Feb, 2014 7 commits
  4. 18 Feb, 2014 6 commits
    • Dave Syer's avatar
      Add JettyServerCustomizer for Jetty container customization · d84a77e4
      Dave Syer authored
      E.g. can be used to add SSL support to a Jetty container, similarly
      to a TomcatConnectorCustomizer.
      
      Fixes gh-345
      d84a77e4
    • Dave Syer's avatar
      Revert change that breaks tests in werid way · c973847d
      Dave Syer authored
      c973847d
    • Dave Syer's avatar
      Investigated JSP support · b088f600
      Dave Syer authored
      Summary: Tomcat works with WARs. Jetty doesn't work.
      
      See gh-367
      b088f600
    • Dave Syer's avatar
      Update YAML refs in docs · da26c614
      Dave Syer authored
      da26c614
    • Dave Syer's avatar
      Add snakeyaml to spring-boot-starter · 8778e827
      Dave Syer authored
      Fixes gh-366
      8778e827
    • Dave Syer's avatar
      Add support for Spring Loaded in Maven and Gradle · 77bac876
      Dave Syer authored
      Requires Loaded 1.1.5 (or better).
      
      For Maven you can just add springloaded to the dependencies of the
      spring-boot plugin (and also set MAVEN_OPTS=-noverify).
      
      For Gradle add springloaded to the build dependencies (-noverify
      can be added by the plugin).
      
      In both cases there is also support for adding an arbitrary java agent
      via configuration. Samples are provided in
      spring-boot-sample-[simple,web-ui].
      
      The ApplicationPlugin is only added if there is no JavaExec task
      already present, and additionally it computes its own man class if
      none is provided. So "gradle run" and "gradle bootRun" look
      superficially similar, but "bootRun" has extra options, including
      the agent and Loaded support.
      
      Fixes gh-251, gh-183
      77bac876
  5. 17 Feb, 2014 3 commits
    • Dave Syer's avatar
      Be defensive about Spring Security dependencies · f888567c
      Dave Syer authored
      In particular don't assume that Spring Security Web is on the
      classpath, just because Spring Security Core is.
      
      Fixes gh-363
      f888567c
    • Jakub Kubrynski's avatar
      Consider FactoryBean classes in OnBeanCondition · 5d591edb
      Jakub Kubrynski authored
      Update OnBeanCondition to attempt to consider FactoryBean classes
      for bean type matches. To ensure early instantiation does not occur, the
      object type from the FactoryBean is deduced by resolving generics on the
      declaration.
      
      Fixes gh-355
      5d591edb
    • Dave Syer's avatar
      Straighten out profile ordering semantics · fa9a506e
      Dave Syer authored
      Here's what I think works best:
      
      * Any profile in the Environment before application.yml
      is processed takes precedence (i.e. it will be last in the
      list of active profiles in the live app)
      
      * Any profile in the Environment before SpringApplication
      starts takes precedence (so any added on the command line or
      with System properties come after ones added using
      the SpringApplication API)
      
      * The order of profiles in application.yml is irrelevant -
      profiles are applied in the order they come out of
      Environment.getActiveProfiles()
      
      Fixes gh-342
      fa9a506e