- 24 Feb, 2014 14 commits
-
-
Phillip Webb authored
* pull365: Upgrade to Spring Data Codd GA release.
-
Oliver Gierke authored
Adapt auto-configuration code to use the new constructor introduced in Spring Data Commons' AnnotationConfigurationSource. Fixes gh-365
-
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.
-
Phillip Webb authored
-
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.
-
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
-
hoserdude authored
-
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
-
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
-
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
-
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
-
Dave Syer authored
The Spring resource transformer class name changed (at least once) since the parent was originally created. Fixes gh-384
-
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
-
joschs authored
... to allow for OS_VAR to be bound to a @ConfigurationPropertes("os") class with field "var". Fixes gh-387, Fixes gh-391
-
- 20 Feb, 2014 10 commits
-
-
Dave Syer authored
-
Christian Dupuis authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
Mapping is exposed via server.servletPath. Fixes gh-379
-
Dave Syer authored
Stacktrace is then obviously about DataSource, not EntityManager. Fixes gh-375
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-377
-
- 19 Feb, 2014 7 commits
-
-
Dave Syer authored
Fixes gh-364
-
Dave Syer authored
Added basic-* log configuration files that are loaded in the beforeInitialization() phase. They don't contain any file logger so no empty spring.log is ever created. Fixes gh-303
-
Dave Syer authored
-
Dave Syer authored
Jetty apparently does it differently (different version of Jasper maybe), so you need a unique jarFileURL for each nested JAR (previously they were all set to the parent archive URL). Also added the root of the main archive as a valid document root. For gh-367
-
Dave Syer authored
The DispatcherServletAutoConfiguration had a condition on it that meant it wasn't used at all if there was no EmbeddedServletContainerFactory. It's amazing that any WAR ever deployed. Also added some info logging to servlet and filter registrations.
-
Phillip Webb authored
Restore the order that `ConfigFileApplicationListener` attempts to load application.properties so that local files always have a higher precedence than bundled classpath files. This fixes a regression introduced with 1.0.0.RC2. Fixes gh-370
-
Phillip Webb authored
-
- 18 Feb, 2014 6 commits
-
-
Dave Syer authored
E.g. can be used to add SSL support to a Jetty container, similarly to a TomcatConnectorCustomizer. Fixes gh-345
-
Dave Syer authored
-
Dave Syer authored
Summary: Tomcat works with WARs. Jetty doesn't work. See gh-367
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-366
-
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
-
- 17 Feb, 2014 3 commits
-
-
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
-
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
-
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
-