- 18 Feb, 2015 14 commits
-
-
Andy Wilkinson authored
Fixes gh-2212
-
Andy Wilkinson authored
Closes gh-2429
-
Andy Wilkinson authored
-
Stephane Nicoll authored
Update the `init` command to support the latest meta-data format. Recent Spring Initializr version also supports Spring Boot CLI now and generates a textual service capabilities when requested. The command no longer generates the capabilities of the service unless said service does not support it. Closes gh-2515
-
Andy Wilkinson authored
Closes gh-2512
-
Andy Wilkinson authored
Closes gh-2511
-
Andy Wilkinson authored
Closes gh-2510
-
Andy Wilkinson authored
Closes gh-2508
-
Andy Wilkinson authored
Closes gh-2507
-
Andy Wilkinson authored
Closes gh-2506
-
Dave Syer authored
Fixes gh-2493
-
Dave Syer authored
Fixes gh-2518
-
Rob Winch authored
Fixes gh-2473
-
Rob Winch authored
Fixes gh-2474
-
- 17 Feb, 2015 10 commits
-
-
Andy Wilkinson authored
- Correct typo (coercable -> coercible) - Update description to reflect that Spring 4.1.5 supports the expansion of array properties and and a test that verifies the behaviour
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-2304
-
Andy Wilkinson authored
Closes gh-2503
-
Andy Wilkinson authored
Closes gh-2502
-
Andy Wilkinson authored
Closes gh-2501
-
Andy Wilkinson authored
Closes gh-2500
-
Andy Wilkinson authored
Closes gh-2499
-
Andy Wilkinson authored
Closes gh-2498
-
Andy Wilkinson authored
Closes gh-2497
-
- 16 Feb, 2015 1 commit
-
-
Stephane Nicoll authored
Parse a version using our version format or any version that complies with Major.Minor.Patch. Also add a VersionRange utility that can determine if a given version is withing that range. Closes gh-2494
-
- 13 Feb, 2015 5 commits
-
-
Stephane Nicoll authored
-
Dave Syer authored
-
Dave Syer authored
Apparently some users are unclear that setters and getters are mandatory for @ConfigurationProperties. This should clear it up.
-
Stephane Nicoll authored
* datasourceMetrics-fix: Fix for empty datasource-name in metrics
-
Johannes Stelzer authored
If there is more than one DataSource and the non-primary bean-name is 'datasource' an incorrect metric name is chosen. The metrics are named datasource.active and not datasource.xxx.active. To avoid this, the shortening of the bean-name only occurs if the bean-name is longer than 'datasource'. See gh-2320
-
- 12 Feb, 2015 7 commits
-
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Previously each endpoint was secured for path, path/, and path.*. This meant that a request to path/foo was not secured. This commit secures path/** to ensure that requests to a nested endpoint path are also secured. Fixes gh-2476
-
Andy Wilkinson authored
Closes gh-2472
-
Andy Wilkinson authored
We allow the serialization format of dates to be configured using spring.jackson.date-format. However, this property only applies to java.util.Date instances and has no effect on a Joda DateTime. This commit updates our auto-configuration for Jackson to allow the format string that is used to serialize a Joda DateTime to be configured. A new property, spring.jackson.joda-date-time-format has been introduced. When configured, it is used to configure the serialization format for a Joda DateTime. When it is not configured, we fall back to using spring.jackson.date-format. If this fails, either because the format string is incompatible (unlikely) or because the user's configured the fully-qualified name of a DateFormat class, a warning is logged encouraging the use of spring.jackson.joda-date-time-format. Fixes gh-2225
-
Andy Wilkinson authored
Prior to this commit, Module beans were registered with all ObjectMapper beans, but were not registered with the auto-configured Jackson2ObjectMapperBuilder. This meant that any ObjectMapper created with the builder but not exposed as a bean would not have the Module beans registered with it. One such ObjectMapper is the one used by the auto-configured MappingJackson2XmlHttpMessageConverter. This caused XML (de)serialization to be different to JSON (de)serialization. This commit updates JacksonAutoConfiguration to register all of the application context's Module beans with the auto-configured Jackson2ObjectMapperBuilder. This ensures consistent configuration of any ObjectMapper that's created using the builder, irrespective of whether or not that ObjectMapper is also exposed as a bean, and also ensures that (de)serialization of JSON and XML is consistent. See gh-2327
-
Dave Syer authored
Since the BasicAuthenticationEntryPoint does its own challenge when authentication fails, we need to add that entry point in the SpringBootWebSecurityConfiguration explicitly. Fixes gh-2483
-
Dave Syer authored
Since @ConfigurationProperties binding uses a single instance of PropertySourcesPropertyValues per bean, there doesn't seem to be any issue with using a normal LinkedHashMap. Then the order passed in as PropertySources will be preserved. Fixes gh-2487
-
- 11 Feb, 2015 1 commit
-
-
Andy Wilkinson authored
Closes gh-2173
-
- 10 Feb, 2015 2 commits
-
-
Andy Wilkinson authored
Previously, if a BeanPostProcessor bean was declared in a configuration class that depended on the persistence context, packages to scan would not be configured on the LocalContainerEntityManagerFactoryBean. This was due to the BeanPostProcessor bean triggering the early instantiation of the LCEMFB before EntityScanBeanPostProcessor, the BeanPostProcessor, that applies the @EntityScan configuration, had been given a chance to configure it. This commit updates EntityScanBeanPostProcessor to implement Ordered with an order of zero. This ensures that its ordering is predictable and that it will be driven before any unordered BeanPostProcessor. This means that, unless the user has specifically ordered their BeanPostProcessor to run before EntityScanBeanPostProcessor, LCEMFB’s packages to scan will be configured as expected. Fixes gh-2478
-
Stephane Nicoll authored
If an application defines a custom RepositoryRestMvcConfiguration, all Spring Boot defaults are lots. While this sounds sensible, it can be confusing as Spring Boot exposes properties (`spring.data.rest.*`) that are no longer honored. RepositoryRestMvcBootConfiguration is now public and can be used as an extension point for those who need to customize the Spring Data REST configuration and keep boot's specific defaults. Fixes gh-2392
-