- 18 Feb, 2015 1 commit
-
-
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
-
- 09 Feb, 2015 6 commits
-
-
Andy Wilkinson authored
Update ConditionEvaluationReport so that, whenever a negative outcome is added for a source, any existing outcomes for inner classes of that source are updated with a non-matching outcome that indicates that the outer configuration did not match. Conditions are evaluated in two phases; PARSE_CONFIGURATION first and REGISTER_BEAN second. If a parent class’s conditions match in PARSE_CONFIGURATION then its inner classes will have their PARSE_CONFIGURATION conditions evaluated. If they all match, the inner class will be reported as a positive match in the auto-configuration report even if the outer class does not match as a result of the subsequent evaluation of a REGISTER_BEAN condition. Fixes gh-2122
-
Phillip Webb authored
-
Andy Wilkinson authored
Closes gh-2397
-
Andy Wilkinson authored
Tomcat 8's default DataSource implemention is an MBean. Previously, when such a DataSource was consumed from JNDI and an MBeanExporter had been auto-configured an attempt would be made to export this MBean to the MBean server. This would fail due to Tomcat having already registered the MBean. This commit updates JndiDataSourceAutoConfiguration to instruct the MBeanExporter (if there is one) not to export a DataSource MBean that's been retrieved from JNDI. The assumption is that any MBean in JNDI will have already been registered with the MBean server by the same infrastructure that registered it with JNDI. Fixes gh-2397
-
Andy Wilkinson authored
Conflicts: spring-boot-dependencies/pom.xml
-
Andy Wilkinson authored
Closes gh-2425
-
- 08 Feb, 2015 2 commits
-
-
Stephane Nicoll authored
* application-properties: Improve doc for application.properties.
-
izeye authored
-
- 05 Feb, 2015 3 commits
-
-
Andy Wilkinson authored
See gh-2247
-
Andy Wilkinson authored
preferred-mapper has been renamed to preferred-json-mapper to make it clear that it only affects the JSON mapper and that the XML mapper that will be used (if any) is unaffected See gh-2247
-
Andy Wilkinson authored
This commit rewords the changes made in d718a803 so that simply adding Gson to the classpath isn't sufficient to stop Jackson being used for HTTP JSON mapping. To use Gson, the user must now either remove Jackson from the classpath (not an option if they also wish to use the Actuator) or configure the spring.http.converters.preferred-mapper property with a value gson. Closes gh-2247
-
- 04 Feb, 2015 2 commits
-
-
Andy Wilkinson authored
Closes gh-2452
-
Andy Wilkinson authored
-