- 09 Apr, 2015 11 commits
-
-
Phillip Webb authored
Update the Maven and Gradle plugin to generate fully executable jar files on Unix like machines. A launcher bash script is added to the front of the jar file which handles execution. The default execution script will either launch the application or handle init.d service operations (start/stop/restart) depending on if the application is executed directly, or via a symlink to init.d. See gh-1117
-
Phillip Webb authored
-
Phillip Webb authored
-
Andy Wilkinson authored
This commit updates Spring Boot to use Spring Security 4. As a result of this, the coordinates of Thmyeleaf's Spring Security extra, for which dependency management and auto-configuration is provided, have been updated to the Spring Security 4 variant. Closes gh-2727
-
Andy Wilkinson authored
-
Dave Syer authored
When reverse==false we have to be careful to remove the right element when capacity is reached.
-
Andy Wilkinson authored
The versions in the dependency management for the various datastore dependencies have been aligned with those used by Spring Data Fowler. The Data REST tests and sample application has been updated to configure the base path in favour of the deprecated base uri property Closes gh-2673
-
Dave Syer authored
-
Dave Syer authored
Default to true (so existing apps change their behaviour, but that seems to be the majority vote). Fixes gh-2794
-
Andy Wilkinson authored
-
Andy Wilkinson authored
- Nest the configuration class in HealthIndicatorAutoConfiguration, bringing it into line with the other health indicator configuration classes - Include the statistics from the response in the health’s details - Map YELLOW to UP rather than UNKNOWN as it indicates that the cluster is running but that “the primary shard is allocated but replicas are not” [1]. The details can be used to determine the precise state of the cluster. - Add a property to configure the time that the health indicator will wait to receive a response from the cluster - Document the configuration properties - Update the tests to cover the updated functionality See gh-2399 [1] http://www.elastic.co/guide/en/elasticsearch/reference/1.x/cluster-health.html
-
- 08 Apr, 2015 11 commits
-
-
Binwei Yang authored
Closes gh-2399
-
Andy Wilkinson authored
This commit adds support for configuring an ObjectMapper's serialization inclusion using the environment via the spring.jackson.serialization-inclusion property. The property's value should be one of the values on the JsonInclude.Include enumeration. Relaxed binding of the property value to the enum is supported. For example: spring.jackson.serialization-inclusion: non_null Closes gh-2532
-
izeye authored
Closes gh-2615
-
Andy Wilkinson authored
-
izeye authored
Previously GsonHttpMessageConvertersConfiguration was unconditional with its nested configuration class being @ConditionalOnClass(Gson.class). This led to the unnecessary registration of the GsonHttpMessageConvertersConfiguration bean when Gson isn't on the classpath. This commit moves the condition up onto the outer class so that no Gson-related beans are created when Gson is not on the classpath. Closes gh-2778
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-2788
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-2787 (I hope)
-
Andy Wilkinson authored
-
Andy Wilkinson authored
This commit improves upon the changes made in a8bf9d34 by adding support for relaxed binding of the endpoints.enabled and endpoints.<name>.enabled properties. This is achieved by replacing use of @ConditionalOnExpression (which does not support relaxed binding) with a custom condition implementation that uses RelaxedPropertyResolver. Closes gh-2767
-
- 07 Apr, 2015 18 commits
-
-
Phillip Webb authored
-
Andy Wilkinson authored
Closes gh-2712
-
Andy Wilkinson authored
-
izeye authored
Closes gh-2779
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Previously, only invocations of /metricName/ would honour the enabled property and return a not found (404) response. For endpoints which support nested paths, access to /metricName/foo would ignore the enabled flag and return an OK (200) response. Furthermore, there was a comment in EndpointMvcAdapter that suggested that an endpoint shouldn’t be called when it is disabled, however this was not the case. This commit updates EndpointWebMvcAutoConfiguration and JolokiaAutoConfiguration to only register their MvcEndpoint beans if the underlying endpoint is enabled. This means that an EndpointMvcAdapter should not be called if its delegate is disabled, making the comment described above accurate. The check for the delegate being enabled has been retained so as not to rely upon the auto-configurations’ behaviour. The methods which handle nested paths (MetricsMvcEndpoint.value() and EnvironmentMvcEndpoint.value()) have been updated to add the same check for the enablement of their delegate. Fixes gh-2767
-
Stephane Nicoll authored
Add a new ConditionalOnSingleCandidate condition that determines if the condition should match only if autowiring by type is guaranteed to succeed. Used by auto-configuration that relies on a single candidate of a given type (for instance, the JdbcTemplate auto-configuration relies on the presence of a DataSource). Such wiring by type will succeed if only one bean of that type is present or if one matching instance is flagged "primary" amongst the candidates. ConditionalOnSingleCandidate is a basic version of ConditionalOnBean that only accepts a single type and does not determine a defaut based on its presence on a bean definition. Closes gh-1702
-
Andy Wilkinson authored
-
Andy Wilkinson authored
See gh-2776
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Conflicts: spring-boot-dependencies/pom.xml
-
Andy Wilkinson authored
Closes gh-2776
-
Andy Wilkinson authored
Closes gh-2782
-
Andy Wilkinson authored
Closes gh-2781
-
Andy Wilkinson authored
Closes gh-2775
-
Phillip Webb authored
Update SpringBootMockServletContextTests to URL escape file paths. Fixes gh-2771
-
Phillip Webb authored
-