- 25 Mar, 2015 5 commits
-
-
Phillip Webb authored
Update SpringApplicationContextLoader so that the MockServletContext uses FileSystemResourceLoader. This allows `/src/main/webapp` folder to be found. See gh-2654
-
Andy Wilkinson authored
Previously, SpringBootWebSecurityConfiguration required a web application and @EnableWebSecurity to be on the classpath. @EnableWebSecurity is in spring-security-config so this could lead to the configuration being active when spring-security-web isn't on the classpath but the rest of Spring Security is. This commit updates SpringBootWebSecurityConfiguration to also make it conditional on a class in spring-security-web. Fixes gh-2717
-
Phillip Webb authored
-
Phillip Webb authored
Add an additional constructor to ServletRegistrationBean that indicates if a URL mapping is always required. If set to false, the registration will not longer use the default '/*' mapping. Fixes gh-2596
-
Phillip Webb authored
Fixes gh-2598
-
- 24 Mar, 2015 5 commits
-
-
Phillip Webb authored
Update SystemPublicMetrics to silently ignore ManagementFactory NoClassDefFoundErrors which can occur when deploying to Google App Engine. Fixes gh-2701
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
* vcap-service-numbers: Support VcapApplicationListener Number Credentials
-
Ben Hale authored
Update VcapApplicationListener to support Number based credentials. Previously, any service credential value that wasn't a String would be discarded. This was particularly a problem for services that exposed a port as a JSON Number. This change takes numbers in the credential payload into account, converting them to Strings so that they will pass through the properties system properly. There's no real downside to this as Spring will coerce them back into Numbers if needed by an application. Fixes gh-2707
-
- 23 Mar, 2015 4 commits
-
-
Phillip Webb authored
See gh-2702
-
Phillip Webb authored
-
Stephane Nicoll authored
* gh-2698: fix typo in javadoc
-
Raphael Ackermann authored
{@code tomat-embedded.jar} --> {@code tomcat-embedded.jar}
-
- 22 Mar, 2015 1 commit
-
-
Marcel Overdijk authored
Add note about escaping Spring property placeholders when using Gradle automatic expansion. Closes gh-2695
-
- 19 Mar, 2015 2 commits
-
-
Andy Wilkinson authored
See gh-2630
-
Andy Wilkinson authored
Previously, the response from /health was not cached if the request was secure, i.e. the user has authenticated, or the endpoint was configured as not being sensitive. The commit updates HealthMvcEndpoint to apply the caching logic all the time. Users that do not want caching can disable it by configuring the TTL with a value of zero. Closes gh-2630
-
- 18 Mar, 2015 2 commits
-
-
Andy Wilkinson authored
Previously, only a handful of properties could be set when auto-configuring an Elasticsearch client. This commit introduces support for configuring arbitrary properties using the spring.data.elasticsearch.properties prefix. For example, client.transport.sniff can be configured using spring.data.elasticsearch.properties.client.transport.sniff. Closes gh-1838
-
Andy Wilkinson authored
Using a Class reference can cause reflection problems at runtime (see gh-1065). Closes gh-2674
-
- 17 Mar, 2015 8 commits
-
-
Dave Syer authored
-
Andy Wilkinson authored
Previously, a TransportClient sniff property could not be configured while using Spring Boot’s Elasticsearch auto-configuration. This commit adds a new property, spring.data.elasticsearch.client-transport-sniff, that can be used to configure the TransportClient while continuing to use the auto-configuration support. Closes gh-1838
-
Andy Wilkinson authored
Wrap at 90 chars more consistently
-
izeye authored
Closes gh-2570
-
Andy Wilkinson authored
Conflicts: spring-boot-dependencies/pom.xml
-
Andy Wilkinson authored
Closes gh-2582
-
Phillip Webb authored
The actual required Spring Framework version is 4.1.5. See gh-2575
-
Phillip Webb authored
The example `@Value("server.local.port")` should read `@Value("${local.server.port}")`. Fixes gh-2628
-
- 16 Mar, 2015 7 commits
-
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
-
Andy Wilkinson authored
In ActiveMQ 5.11 the signature of PooledConnectionFactory.setConnectionFactory has changed. It now takes an Object rather than a ConnectionFactory. This change is not binary backwards compatible so it causes a NoSuchMethodError as we compile against 5.10. This commit updates ActiveMQConnectionFactoryConfiguration to call the setConnectionFactory method reflectively, looking for both the ConnectionFactory and Object variants. Closes gh-2640
-
Andy Wilkinson authored
Closes gh-2647
-
Andy Wilkinson authored
PropertySourcePropertyValues tries to process a PropertySource first as an EnumerablePropertySource and then as a CompositePropertySource. In Spring 4.1.2 CompositePropertySource was updated to extend EnumerablePropertySource. This change meant that a CompositePropertySource would always be processed as an EnumerablePropertySource. This commit updates PropertySourcePropertyValues to process a PropertySource as a CompositePropertySource first and to then try it is an EnumerablePropertySource. Fixes gh-2608
-
Dave Syer authored
Unfortunately it still has to happen in a @PostConstruct (otherwise JPA never sees the schema in time), but we can delay a bit by not using @Autowired. Appears to fix the Spring Cloud problem (https://github.com/spring-cloud/spring-cloud-config/issues/105). Fixes gh-2658
-
- 10 Mar, 2015 1 commit
-
-
Eric Dahl authored
-
- 05 Mar, 2015 1 commit
-
-
Andy Wilkinson authored
Spring Boot's metrics infrastructure requires a Metric to have a Number value. Coda Hale's ThreadStatesGaugeSet includes a Gauge named deadlocks with a Set<String> value (each entry in the set is a description, including stacktrace, of a deadlocked thread). There's no obvious way to coerce this to a Number, and there's already a deadlocks.count metric in the set. This commit updates MetricRegistryMetricReader to ignore the addition of any Gauge with a non-Number value. Fixes gh-2593
-
- 04 Mar, 2015 4 commits
-
-
Andy Wilkinson authored
Conflicts: spring-boot-dependencies/pom.xml
-
Andy Wilkinson authored
Closes gh-2581
-
Andy Wilkinson authored
We currently officially support Jackson 2.4, but some users wish to use Jackson 2.5. This causes a failure as JacksonAutoConfiguration depends on JacksonJodaFormat which exists in 2.4 but not in 2.5. This commit updates JodaDataTimeJacksonConfiguration to make it conditional on JacksonJodaFormat being on the classpath. This means that Jackson 2.5 users will not have configurable DateTime formatting (added in 201fb5e5) but things will generally work once again. Closes gh-2573
-
Andy Wilkinson authored
Using findAvailableTcpPort is prone to failure when another process starts using the available port before Undertow starts. This commit changes UndertowEmbeddedServletContainerFactory to pass the value of zero down into Undertow where it will ultimately be passed to a ServerSocket which will then use the underlying OS’s support for binding to an available port. Undertow doesn’t provide an API for getting the port(s) on which it’s listening. Previously, reflection was being used to access the listener configuration but, when a random port is used, this configuration would return zero rather than the actual port. The reflective logic has been updated to look at Undertow’s channels from which the underlying ServerSocket can be accessed and the local port retrieved Closes gh-2584
-