- 02 Jul, 2015 6 commits
-
-
Spring Buildmaster authored
-
Phillip Webb authored
Update RelaxedDataBinder to so that property ordering is respected even if relaxed names are used. Prior to this commit a System property named `FOO_BAR` would never get bound to a `fooBar` field if `foo-bar` was defined in application.properties. Fixes gh-3385
-
Phillip Webb authored
-
Phillip Webb authored
Update MetricWriterMessageHandler to deal with 'reset' messages and to log unsupported payload types. Fixes gh-3378
-
sopov.ivan authored
Fixes gh-3384
-
Phillip Webb authored
See gh-3392
-
- 01 Jul, 2015 8 commits
-
-
Stephane Nicoll authored
If a JtaTransactionManager is present, it is associated with the auto-created JmsListenerContainerFactory. However, if no such transaction manager is present, local transaction support is not enabled. This gives a default situation where the message is acknowledged even before the listener is invoked. We now make sure to turn on local JMS transactions if no JtaTransactionManager is present. Fixes gh-3393
-
Andy Wilkinson authored
Closes gh-3382
-
Andy Wilkinson authored
Closes gh-3381 Closes gh-3383
-
Andy Wilkinson authored
Closes gh-3380
-
Andy Wilkinson authored
Closes gh-3379
-
Andy Wilkinson authored
Previously, JacksonHttpMessageConvertersConfiguration would configure a general-purpose MappingJackson2HttpMessageConverter only if there was no existing MappingJackson2HttpMessageConverter in the application context. This was problematic when a TypeConstrainedMappingJackson2HttpMessageConverter bean was present. Such a bean is only capable of performing conversion for a specific type, and therefore is no substitute for a general purpose converter, yet its presence was causing the auto-configuration of a general purpose converters to be turned off. This would leave Spring MVC’s default converter being used for application/json requests which would not honour the user’s Jackson configuration. This commit enhances @ConditionalOnMissingBean so that the annotation can be used to specify one or more types that should be ignored when searching for beans. This allows the TypeConstrainedMappingJackson2HttpMessageConverter beans that are published by Spring Data REST to be ignored such that the general-purpose MappingJackson2HttpMessageConverter is still auto-configured. Fixes gh-2914
-
Andy Wilkinson authored
Closes gh-3369
-
sopov.ivan authored
Closes gh-3375
-
- 30 Jun, 2015 6 commits
-
-
Phillip Webb authored
Update MustacheViewResolver so that buildView() is called to create the MustacheView. This sets fields such as `contentType` and allows us to remove explicit setApplicationContext() and setServletContext() calls. Fixes gh-3265
-
Phillip Webb authored
Fixes gh-3276
-
Phillip Webb authored
Fixes gh-3356
-
Andy Wilkinson authored
GzipFilterProperties uses HttpMethod so GzipFilterAutoConfiguration, which uses GzipFilterProperties, needs to be conditional on HttpMethod being on the classpath. Closes gh-3362
-
Phillip Webb authored
* pr/3324: Fixup sample Ant build
-
Matt Benson authored
Fixes gh-3324
-
- 24 Jun, 2015 2 commits
-
-
Andy Wilkinson authored
If java.io.tmpdir is configured to a directory that does not exist, calls to File.createTempFile will fail with an IOException with the message "The system cannot find the path specified". Unfortunately, the path the was specified is not included in the message. Rather than trying to automatically create the directory in what may be a misconfigured location, we now include the value of java.io.tmpdir in our own exception's message. Hopefully this will help users to figure out what they've done wrong. Closes gh-3307
-
Stephane Nicoll authored
The maximum and minimum number of connections are no metrics so these are not exposed. Fix the doc that stated the contrary. Fixes gh-3319
-
- 23 Jun, 2015 3 commits
-
-
Phillip Webb authored
-
Onur Kağan Özcan authored
Closes gh-3308
-
Matt Benson authored
Closes gh-3299
-
- 22 Jun, 2015 6 commits
-
-
Andy Wilkinson authored
Previously, when an exception was thrown by a Controller in an application deployed to a servlet container the exception that was handled would be Spring Framework’s NestedServletException rather than the exception thrown by the application. Furthermore, when an exception was thrown or the response was used to send an error, the javax.servlet.error.request_uri request attribute would not be set. This differed from the behaviour in an executable jar/war where the exception would be the one thrown by the application, and the request_uri attribute would be set. This commit updates ErrorPageFilter, which is only involved in a servlet container, to unwrap a NestedServletException so that it’s the application’s exception that’s handled, and to set the request_uri attribute in the event of an exception being thrown or an error being sent. Closes gh-3249
-
olivier bourgain authored
Closes gh-3027
-
Andy Wilkinson authored
Previously, an address that ended in a "/" would result in the virtual host being an empty string. This was inconsistent with setVirtualHost which would map an empty string to "/". This commit updates the address parsing logic to call setVirtualHost rather than assigning the value directly to this.virtualHost. This ensures that the special handling for an empty string is applied consistently. Closes gh-3304
-
Andy Wilkinson authored
By default, SpringApplication attempts to deduce the application class by looking for a main method in the stack. This does not work when the application is launched by a servlet container via SpringBootServletInitializer as there's either no main method in the stack, or the main method is that of the servlet container, rather than the application. This commit updates SpringBootServletInitializer to configure the main class of the SpringApplication that it creates to be the application's SpringBootServletInitializer subclass. This is done prior to calling configure, so the main class can still be specified by the application if required. Closes gh-3061
-
Andy Wilkinson authored
Closes gh-3289
-
Stephane Nicoll authored
Closes gh-3302
-
- 21 Jun, 2015 1 commit
-
-
Josh Thornhill authored
Closes gh-3298
-
- 19 Jun, 2015 2 commits
-
-
Phillip Webb authored
* gh-3255: Ignore failures when closing war files in tests
-
Matt Benson authored
Update WarPackagingTests to ignore any IOExceptions when closing created war files. Exceptions were sometimes thrown when running on a Linux NTFS mount. Fixes gh-3255
-
- 18 Jun, 2015 6 commits
-
-
Phillip Webb authored
-
Andy Wilkinson authored
See gh-3274
-
Andy Wilkinson authored
See gh-3276
-
Andy Wilkinson authored
See gh-3274
-
Andy Wilkinson authored
Previously, DefaultRepositorySystemSessionAutoConfiguration would read the local repository configuration from settings.xml, but did not perform any property interpolation. This would leave placeholders such as ${user.home} as-is and result in the use of the wrong location. To address this, the code that reads settings.xml has been updated to provide the current System properties as a property interpolation source. RepositoryConfigurationFactory configures the local repository as a "remote" repository when the local repository location has been overridden. This allows spring grab to copy dependencies from the local repository into the grab output location (configured via the grape.root system property) rather than having to download them again. This logic did not consider the customization of the local repository location via settings.xml so the dependencies would be downloaded again. To address this, RepositoryConfigurationFactory has been updated to attempt to use the location configured in settings.xml, before falling back to the default location. The logic that reads settings.xml has deliberately been duplicated. It could have been extracted into a separate class, but this is only a temporary measure until gh-3275 is tackled. Duplication was deemed preferable to adding a new public class in 1.2.x that we’d then want to remove in 1.3. Closes gh-3274
-
Stephane Nicoll authored
Closes gh-3273
-