Commit Graph

5742 Commits

Author SHA1 Message Date
Andy Wilkinson 30fd66654e Upgrade to Undertow 1.2.10.Final
Closes gh-3677
2015-08-05 16:56:27 +01:00
Andy Wilkinson d496bfedd0 Upgrade to Commons Pool 2 2.4.2
Closes gh-3678
2015-08-05 16:55:58 +01:00
Andy Wilkinson 5659d5bce3 Upgrade to Hibernate Validator 5.2.1.Final
Closes gh-3679
2015-08-05 16:55:19 +01:00
Andy Wilkinson d072cd9149 Upgrade to org.mariadb.jdbc:mariadb-java-client 1.2.0
Closes gh-3680
2015-08-05 16:54:48 +01:00
Andy Wilkinson ea34c709c9 Upgrade to Jedis 2.7.3
Closes gh-3682
2015-08-05 16:54:15 +01:00
Andy Wilkinson cd55771dd7 Upgrade to Spring HATEOAS 0.18.0.RELEASE
Closes gh-3683
2015-08-05 16:53:47 +01:00
Andy Wilkinson 2d57803705 Merge branch '1.2.x' 2015-08-05 16:52:23 +01:00
Andy Wilkinson 890fb9665d Upgrade to Spring Loaded 1.2.4.RELEASE
Closes gh-3681
2015-08-05 16:51:49 +01:00
Andy Wilkinson 6870f17482 Merge branch '1.2.x' 2015-08-05 16:37:20 +01:00
Andy Wilkinson dd4c542e32 Upgrade to Undertow 1.1.8.Final
Closes gh-3674
2015-08-05 16:33:00 +01:00
Andy Wilkinson c4d0f949d4 Upgrade to mysql:mysql-connector-java 5.1.36
Closes gh-3673
2015-08-05 16:32:31 +01:00
Andy Wilkinson 370247f9e4 Upgrade to Jetty 9.2.13.v20150730
Closes gh-3672
2015-08-05 16:31:36 +01:00
Andy Wilkinson 8df4985675 Upgrade to Freemarker 2.3.23
Closes gh-3671
2015-08-05 16:30:43 +01:00
Andy Wilkinson 82212e6271 Upgrade to Spring Integration 4.1.6.RELEASE
Closes gh-3670
2015-08-05 16:30:01 +01:00
Andy Wilkinson 5756195c05 Upgrade to Spring Security 3.2.8.RELEASE
Closes gh-3669
2015-08-05 16:29:29 +01:00
Vladimir Tsanev 632d78b6fb Prettify Log4J 2's default output
This commit updates the default output produced when using Log2J 2 to
be similar to the output produced by Logback. It introduces a new
converter for throwables that adds some whitespace around stacktraces
and a color converter that produces ANSI-colored output when enabled
via spring.output.ansi.enabled.

Closes gh-3548
2015-08-05 15:09:27 +01:00
Stephane Nicoll 65efd1725f Add before modes support for @IntegrationTest
Spring Framework 4.2 introduced support for before modes in
`@DirtiesContext` Make sure that `@IntegrationTest` also support
these new modes.

Closes gh-3642
2015-08-05 15:35:47 +02:00
Stephane Nicoll 89c3d2ea12 Improve MongoDB documentation
Explicitly mention that `spring.data.mongodb.uri` can be used to
customize additional settings such as replica set.

Closes gh-2624
2015-08-05 15:06:12 +02:00
Stephane Nicoll 0822b1ce11 Merge pull request #3667 from ericbottard/patch-1
* pr/3667:
  Polish Javadoc
2015-08-05 14:39:05 +02:00
Eric Bottard 2b15ea65e2 Polish Javadoc
Closes gh-3667
2015-08-05 14:37:55 +02:00
Stephane Nicoll 1e3c0da4bd Merge pull request #3666 from izeye/typo-20150805
* pr/3666:
  Fix typos
2015-08-05 14:36:41 +02:00
izeye 7dc9bddf9a Fix typos
Closes gh-3666
2015-08-05 14:35:32 +02:00
Stephane Nicoll 6c7a5c5077 Harmonize Undertow's access log properties
Harmonize the configuration properties for Undertow to match the changes
made for gh-2491.

Move `spring.undertow.accessLog*` to `spring.undertow.accesslog.*`
2015-08-05 14:34:48 +02:00
Stephane Nicoll 62406546e2 Improve customization of Tomcat's access log
Add `directory`, `prefix` and `suffix` properties to further customize
how access logs are configured on Tomcat. Relocate all properties to the
`server.tomcat.accesslog` namespace.

`server.tomcat.accessLogPattern` and `server.tomcat.accessLogEnabled` are
deprecated and replaced by `server.tomcat.accesslog.pattern` and
`server.tomcat.accesslog.enabled` respectively.

Closes gh-2491
2015-08-05 14:34:48 +02:00
Andy Wilkinson 4a25bae143 Allow additional paths that trigger a reload/restart to be configured
Previously, only folders on the classpath would be watched and used
to trigger a restart/reload of the application. This commit adds a
new property spring.devtools.restart.additional-paths that can be
used to configure additional paths that should be watched for
changes. When a change occurs in one of those paths a restart or
reload will be triggered, depending on the full restart exclude
patterns configured via the existing spring.devtools.restart.exclude
property.

Closes gh-3469
2015-08-05 12:43:09 +01:00
Andy Wilkinson 2a5a32b603 Add auto-configuration for H2’s web console
Three conditions must be met for the console to be enabled:

 - H2 is on the classpath
 - The application is a web application
 - spring.h2.console.enabled is set to true

If spring-boot-devtools is on the classpath, spring.h2.console.enabled
will be set to true automatically. Without the dev tools, the enabled
property will have to be set to true in application.properties.

By default, the console is available at /h2-console. This can be
configured via the spring.h2.console.path property. The value of this
property must begin with a '/'.

When Spring Security is on the classpath the console will be secured
based on the user's security.* configuration. When the console is
secured, CSRF protection is disabled and frame options is set to
SAMEORIGIN for its path. Both settings are required in order for the
console to function.

Closes gh-766
2015-08-05 10:54:03 +01:00
Stephane Nicoll f95c95a1f1 Add reference to mongeez-spring-boot-starter 2015-08-05 10:48:23 +02:00
Stephane Nicoll 1cb0deed5e Upgrade to Spring Security 4.0.2.RELEASE
Closes gh-3422
2015-08-05 10:30:53 +02:00
Stephane Nicoll cd32960b57 Upgrade to Spring Data Gosling RC1
Closes gh-3288
2015-08-05 10:03:08 +02:00
Stephane Nicoll c25c07dfdd Remove dead code
ConfigurationPropertiesReportEndpoint parses the meta-data to inspect
entities that have potential cycles in them. The whole logic is based on
the lookup of `META-INF/spring-configuration-metadata.json` files on the
classpath. Unfortunately, the lookup instruction had a typo and did not
retrieve any file.

Surely that code was written with a clear intention in mind but it was
effectively dead code outside tests so it has been removed.

Closes gh-3310
2015-08-05 09:53:51 +02:00
Stephane Nicoll 6da6f430eb Refined policy on naming Spring Boot starters
See gh-2040
2015-08-05 04:03:38 +02:00
Stephane Nicoll a44c7883dd Merge pull request #3555 from kaliy/adding_firebird_to_health_checking
* pr/3555:
  Polish
  Add firebird specific health query
2015-08-05 03:53:27 +02:00
Stephane Nicoll 7c9f2ae19c Polish
See gh-3555
2015-08-05 03:53:13 +02:00
Arthur Kalimullin b7b6e84d4b Add firebird specific health query
Closes gh-3555
2015-08-05 03:53:03 +02:00
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
2015-08-04 16:45:38 -07:00
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
2015-08-04 16:43:05 -07:00
Phillip Webb a10bfc153d Restore LoggingSystem 1.2.x compatibility
Restore and deprecate the previous `initialize` method to allow a
migration path.

Fixes gh-3591
2015-08-04 15:23:36 -07:00
Phillip Webb 4279ffeddf Polish formatting 2015-08-04 15:07:42 -07:00
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
2015-08-04 17:42:53 +02:00
Stephane Nicoll bc3c1ebc49 Polish devtools declaration documentation 2015-08-04 17:36:56 +02:00
Stephane Nicoll d9f6238a33 Merge pull request #3649 from josefhernandez/master
* pr/3649:
  Polish
  Customize mail sender protocol
2015-08-04 15:11:44 +02:00
Stephane Nicoll 7669e888cb Polish
Closes gh-3649
2015-08-04 15:11:11 +02:00
jhernan d8bf3a72da Customize mail sender protocol
See gh-3649
2015-08-04 15:08:49 +02:00
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
2015-08-04 14:48:38 +02:00
Stephane Nicoll f4723efaed Fix typo 2015-08-04 14:30:09 +02:00
Stephane Nicoll d18180e2e4 Add missing package-info 2015-08-04 14:00:38 +02:00
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
2015-08-04 13:59:57 +02:00
Andy Wilkinson 0e8812f0e9 Merge branch '1.2.x' 2015-08-04 11:43:45 +01:00
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
2015-08-04 11:34:53 +01:00
izeye e0ee7c7ffb Polish documentation for actuator-docs
Closes gh-3564
2015-08-04 10:01:28 +01:00