Commit Graph

5608 Commits (4882f1c3778d26cdbfc15c077619a37a049adca9)
 

Author SHA1 Message Date
Phillip Webb 12b876fbfa Reduce PropertySource access when binding
Update `PropertiesConfigurationFactory` so that when possible fewer
calls are made to the underlying `PropertySource`. The
`PropertySourcesPropertyValues` class now accepts a matcher which is
used to limit the properties that should be adapted. The factory will
create a matcher based on the standard relaxed binding rules.

Fixes gh-3402
See gh-3515
9 years ago
Phillip Webb 1d31d23e29 Add `include` support to @EnableAutoConfiguration
Update the `@EnableAutoConfiguration` annotation to include an `include`
attribute which can be used to specify specific auto-configuration
classes.

Primarily added to so that tests can selectively auto-configure without
needing to worry about class import order.

Fixes gh-3660
9 years ago
Phillip Webb a10bfc153d Restore LoggingSystem 1.2.x compatibility
Restore and deprecate the previous `initialize` method to allow a
migration path.

Fixes gh-3591
9 years ago
Phillip Webb 4279ffeddf Polish formatting 9 years ago
Stephane Nicoll f39e8a25cf Document usage of devtools with build plugins
The `bootRun` gradle task or `spring-boot:run` maven goal can be used to
start a Spring Boot app with DevTools as long as forking is enabled. Add
an explicit note in the documentation to mention that.

Closes gh-3315
9 years ago
Stephane Nicoll bc3c1ebc49 Polish devtools declaration documentation 9 years ago
Stephane Nicoll d9f6238a33 Merge pull request #3649 from josefhernandez/master
* pr/3649:
  Polish
  Customize mail sender protocol
9 years ago
Stephane Nicoll 7669e888cb Polish
Closes gh-3649
9 years ago
jhernan d8bf3a72da Customize mail sender protocol
See gh-3649
9 years ago
Stephane Nicoll ad6fb55958 Add relaxed names for enum test
Add an extra test that demonstrate the use of relaxed binding for Enum
when it is used as a map key.

See gh-2465
9 years ago
Stephane Nicoll f4723efaed Fix typo 9 years ago
Stephane Nicoll d18180e2e4 Add missing package-info 9 years ago
Stephane Nicoll bfe930a873 Auto-configure @EnableConfigurationProperties
Add an auto-configuration that avoid a Spring Boot user to add
`@EnableConfigurationProperties` to its configuration to benefit from
that feature.

As our own auto-configurations are tested independently, such annotation
is still present to avoid a useless reference to this new
auto-configuration.

Closes gh-2457
9 years ago
Andy Wilkinson 0e8812f0e9 Merge branch '1.2.x' 9 years ago
Andy Wilkinson 905346d0cd Consider @Bean methods with args to determine type created by factory
Previously, BeanTypeRegistry would only look for a @Bean method
with no arguments when trying to determine the type that will be
created by a factory bean. This meant that the type produced by a
factory bean declared via a @Bean that has one or more arguments would
be unknown and any on missing bean conditions look for a bean of the
type produced by the factory bean would match in error.

This commit updates BeanTypeRegistry to, where possible, use the
factory method metadata for the bean definition when determining the
type that will be created. This allows it to determine the type for
factory bean created by @Bean methods that take arguments and also
avoids the use reflection to find the factory method. Where factory
method metadata is not available, the existing reflection-based
approach is used as a fallback.

Closes gh-3657
9 years ago
izeye e0ee7c7ffb Polish documentation for actuator-docs
Closes gh-3564
9 years ago
Stephane Nicoll bf0b857357 polish 9 years ago
Rob Winch 91b2c3aee5 Document how to override a dependency version when using Gradle
Closes gh-3651
9 years ago
Stephane Nicoll eb5d92f3f0 Exclude auto-configurations via property
Add `spring.autoconfigure.exclude` to control the list of
auto-configuration classes to exclude via configuration. Merge the
exclusions defined on the `@EnableAutoConfiguration` or
`@SpringBooApplication` if any.

Closes gh-2435
9 years ago
Andy Wilkinson da60c94d57 Upgrade to Spring Session 1.0.2.RELEASE
Closes gh-3655
9 years ago
Rob Winch f543e3259e Add Test that HiddenHttpMethodFilter before FilterChainProxy
Fixes gh-3447
9 years ago
Phillip Webb 8e114e3e2a Merge branch '1.2.x' 9 years ago
Phillip Webb 2c0ec1b428 Polish 9 years ago
Phillip Webb 199a3c1535 Fix type in DefaultPropertyNamePatternsMatcher 9 years ago
Phillip Webb 891dd5a0f6 Polish 9 years ago
Andy Wilkinson 5c1f700c3a Merge branch '1.2.x' 9 years ago
Andy Wilkinson acfb07bdd6 Merge branch 'gh-3628' into 1.2.x 9 years ago
Andy Wilkinson 838e0ef33e Polish contribution
- Extract the logic that coerces the string into a LogLevel into a
  separate method.
- Add a test that verifies that false is mapped to LogLevel.OFF

Closes gh-3628
9 years ago
shanman190 cbd37b583f Make it easier to use YAML configuration to turn off a logger
A level named off is used to disable logging for a particular logger.
YAML interprets off as false, leading to a failed attempt to get the
LogLevel for FALSE. A workaround is to quote the level, i.e. use "off"
rather than off.

This commit updates LoggingApplicationListener to coerce the string
false back to the level off.

Closes gh-3631
See gh-3628
9 years ago
Roy Clarkson 4cd95f4223 Upgrade to Spring Cloud Connectors 1.2.0.RELEASE
Closes gh-3609
9 years ago
Andy Wilkinson 4660a3ed4d Merge branch '1.2.x' 9 years ago
Stephane Nicoll 4b58d753ab Explain how to build the reference documentation 9 years ago
Andy Wilkinson d241171fff Use fast exceptions in hasMoreElements in LaunchedURLClassLoader
When nested jars are being used, hasMoreElements requires opening a
connection for an entry in every nested jar. If that entry doesn't
exist, a FileNotFoundException is thrown to indicate that a particular
jar doesn't contain the requested entry. This exception is used to
indicate the lack of an entry and is then swallowed, i.e. its stack
trace is of no importance. This means that the performance of
hasMoreElements can be improved by switching on fast exceptions while
it's being called. When fast exceptions are switched on a general
purpose pre-initialized FileNotFoundException is thrown rather than
creating a new FileNotFoundException instance each time.

In certain situations, the use of fast exceptions as described above
can improve performance fairly significantly. The JRE's default SAAJ
implementation uses META-INF/services-based discovery for _every_
request that's handled by Spring Web Services. Each discovery attempt
results in hasMoreElements being called making its performance
critical to throughput.

See gh-3640
9 years ago
Stephane Nicoll fac04c1228 Add test
#3386 was actually fixed as part of #2387. Add the test that used to
reproduce the issue.
9 years ago
Stephane Nicoll 051dd4da98 Add missing health indicators in docs 9 years ago
Stephane Nicoll 42253ea8bc Polish 9 years ago
Stephane Nicoll b569918db1 Add property to disable default health indicators
Add a "management.health.defaults.enabled" property that controls whether
the default health indicators are enabled. This allow to disable them all
by default and still enable individual ones using their respective
specific property.

Closes gh-2298
9 years ago
Stephane Nicoll 15442b9667 Avoid wrong meta-data
Make `getFaviconLocations` package private so that it's not (wrongly)
exposed in the meta-data.

Closes gh-3647
9 years ago
Stephane Nicoll b17809b4e7 Add missing metrics export keys 9 years ago
Stephane Nicoll 3cae8e4d20 Remove outdated key 9 years ago
Stephane Nicoll c0500d6d62 Add documentation for Hypermedia endpoints 9 years ago
Stephane Nicoll d3e15805b4 Polish 9 years ago
Stephane Nicoll cd53297fed Add missing logging.pattern meta-data
See gh-3405
9 years ago
Stephane Nicoll a4e5ee0b32 Fix typo 9 years ago
Dave Syer 6d2af95d59 Allow path with / in JolokiaMvcEndpoint
See gh-3629
9 years ago
Dave Syer ff7717932a Weed out duplicate links if there are 2 endpoints with the same path
Fixes gh-3570
9 years ago
Dave Syer 38d80bb8c0 Use link names instead of paths to index docs
Fixes gh-3570
9 years ago
Stephane Nicoll 9b84465edc Upgrade to Hazelcast 3.5.1
Closes gh-3634
9 years ago
Stephane Nicoll e7b1dce5b5 Upgrade to Spring Framework 4.2.0.RELEASE
Closes gh-2575
9 years ago
Stephane Nicoll bee7be9f4c Merge pull request #3632 from arghya88/patch-1
* pr/3632:
  Fix copyright date
9 years ago