Commit Graph

5131 Commits

Author SHA1 Message Date
Lucas Saldanha 0ce7be4413 Add AMQP section to the documetation
Closes gh-3348
2015-07-07 16:31:20 +02:00
Stephane Nicoll 61c5258246 Merge pull request #3429 from izeye/patch-32
* pr/3429:
  Fix deployment title section
2015-07-07 04:54:14 +02:00
izeye 8c9f7247d9 Fix deployment title section
Closes gh-3429
2015-07-07 04:53:21 +02:00
Stephane Nicoll 6f25884ef7 Merge pull request #3428 from izeye/patch-31
* pr/3428:
  Fix typo
2015-07-07 04:46:20 +02:00
izeye dd77ab90a0 Fix typo
Closes gh-3428
2015-07-07 04:45:48 +02:00
Phillip Webb 5fd947027e Merge pull request #3370 from izeye/patch-29
* pr/3370:
  Fix Restarter.setEnabled() to use parameter
2015-07-06 14:48:04 -07:00
izeye 7e49a02356 Fix Restarter.setEnabled() to use parameter
Closes gh-3370
2015-07-06 14:47:08 -07:00
Phillip Webb 36faae95f9 Merge pull request #3374 from mdeinum/boot-3365
* pr/3374:
  Extend TemplateViewResolverProperties for Groovy
2015-07-06 14:46:35 -07:00
Marten Deinum a3e62676af Extend TemplateViewResolverProperties for Groovy
Use AbstractTemplateViewResolverProperties as the base class for
GroovyTemplateProperties since the Spring GroovyMarkupViewResolver is
an AbstractTemplateViewResolver.

The auto-configuration for Groovy is now more aligned with the existing
Freemarker and Velocity auto-configuration, with a `resourceLoaderPath`
property being used instead of `prefix`.

Fixes gh-3365
Closes gh-3374
2015-07-06 14:45:28 -07:00
Phillip Webb 098392d77a Merge pull request #3414 from JamieFarrelly/patch-1
* pr/3414:
  Clarify MultipartConfigFactory javadoc
2015-07-06 13:55:55 -07:00
JamieFarrelly 205f6d92e7 Clarify MultipartConfigFactory javadoc
Update MultipartConfigFactory javadoc to make it clear that you are
passing in the size in bytes.

Fixes gh-3414
2015-07-06 13:55:35 -07:00
Phillip Webb 155f04ef30 Switch ConfigFileAppListener to use DeferredLog
Update ConfigFileApplicationListener to use the recently introduced
DeferredLog class rather than storing its own log messages.
2015-07-06 13:14:33 -07:00
Phillip Webb 0cf6efca4f Polish 2015-07-06 13:05:09 -07:00
Stephane Nicoll afd357f45a Reduce ConfigFileApplicationListener logs
Previously, all attempts to log a configuration file were logged at DEBUG
level which lead to a lot of noise as Spring Boot looks in many places by
default.

We now only log the files that are effectively found at DEBUG level and
all failed attempts at TRACE level.

Closes gh-3129
2015-07-06 18:05:36 +02:00
Dave Syer 067c7a295c Extra logging detail if file is empty 2015-07-06 16:47:57 +01:00
Stephane Nicoll e307fe3137 Honor outputDirectory properly
Previously, if the repackaged file was different from the main artifact
of the build, the maven plugin wrongly considered that it should attach
the file with a classifier.

The outputDirectory is honored properly now, regardless of the fact a
classifier is defined or not.

Fixes gh-3177
2015-07-06 15:24:48 +02:00
Stephane Nicoll 17582de439 Merge pull request #3409 from eddumelendez/gh-3408
* pr/3409:
  Polish
  Add mail server connection check
2015-07-06 14:43:53 +02:00
Stephane Nicoll eb10275f5a Polish
Polish 383e94c to validate any `JavaMailSenderImpl` and not only the
one that has been created by auto-configuration.

Closes gh-3409
2015-07-06 14:43:37 +02:00
Eddú Meléndez 6f31080f78 Add mail server connection check
If a `JavaMailSenderImpl` is available, check that the underlying mail
server is available on startup. Add a `spring.mail.test-connection`
property to control this behaviour.

Closes gh-3408
2015-07-06 14:43:37 +02:00
Stephane Nicoll 0eada5df86 Merge branch '1.2.x' 2015-07-06 14:01:56 +02:00
Dave Syer 20091b75c9 Tidy up some oauth2 features and add a test for request-scoped context 2015-07-06 12:21:34 +01:00
Stephane Nicoll 774474f8b7 Add hint providers for core properties
Closes gh-3322
2015-07-06 11:57:32 +02:00
Stephane Nicoll 2da1d37e97 Add profile name provider 2015-07-06 11:55:35 +02:00
Stephane Nicoll 162cbdd5cb Fail the build if the meta-data are invalid
Make sure to fail the build with a proper compilation error message if
the user-defined meta-data are invalid. For now, this takes care of the
JSON format but other checks may be added in the future.

Closes gh-3329
2015-07-06 11:35:57 +02:00
Stephane Nicoll 2126c7774a Add a note about transactional listeners
Clarify how the default JMS listener container factory is created if none
exists with regards to transactions.

Issue: SPR-3407
2015-07-06 11:03:44 +02:00
Andy Wilkinson 4ad23166ea Use a Java 7-compatible version of org.json:json and remove duplicate
Closes gh-3412
2015-07-06 10:00:46 +01:00
Andy Wilkinson 8be13f92de Use a property for the version of the WebJars HAL Browser dependency
See gh-1390
2015-07-06 09:38:40 +01:00
Stephane Nicoll ecbe4da251 Add reference to HA JDBC starter 2015-07-06 09:46:45 +02:00
Stephane Nicoll 63bec75cc9 Remove reference to SNAPSHOT doc 2015-07-06 09:44:29 +02:00
Phillip Webb ca56fbbcf0 Fix malformed RandomValuePropertySource javadoc
See gh-3391
2015-07-05 23:10:34 -07:00
Matt Benson 36d36f97bd Improve RandomValuePropertySource
Rework RandomValuePropertySource class javadoc, particularly the
description of the `random.int` range suffix.

Also add support for range based random longs.

Fixes gh-3391
2015-07-05 23:00:40 -07:00
Phillip Webb 35379f627a Polish 2015-07-05 22:34:36 -07:00
Phillip Webb e8085016ba Polish Actuator hypermedia support 2015-07-05 22:28:04 -07:00
Phillip Webb 67dd164dc3 Add actuator-docs to the full build 2015-07-05 20:36:28 -07:00
Stephane Nicoll bcb9ad8f64 Merge pull request #3416 from izeye/typo-20150705
* pr/3416:
  Fix typo
2015-07-05 16:42:49 +02:00
izeye 99cd9bdc31 Fix typo
Closes gh-3416
2015-07-05 16:40:41 +02:00
Stephane Nicoll b81c6398d7 Merge pull request #3395 from izeye/patch-30
* pr/3395:
  Remove System.out.println()
2015-07-03 18:26:36 -07:00
izeye e98b2a1a33 Remove System.out.println()
Closes gh-3395
2015-07-03 18:26:14 -07:00
Dave Syer eb49f4bfec Documentation for default profiles 2015-07-03 15:52:37 +01:00
Dave Syer dc8ba2c535 Load configuration from default profiles if no others active
Before this change if no profile is active yaml documents with
spring.profiles=default were loaded, but they are also loaded
if there *is* an active profile which is more of a problem. In
addition if the user chanes the default profile in the
Environmemt Spring Boot ignore that value ("default" is a magic
String).

After this change:

* If no profile is explicitly active, the default profiles from
the Environment are used explicitly
* The default profiles cause properties to be loaded just like
other profiles, so from YAML documents with spring.profiles and
from files in application-default.properties for instance
* The default profiles are not active when any other profile is
* Properties defined in "top-level" YAML documents with no
specific spring.profiles still act as defaults for *all* profiles

Fixes gh-1219, fixes gh-2623
2015-07-03 15:11:55 +01:00
Stephane Nicoll dfbabefcd2 Merge pull request #3411 from izeye/typo
* pr/3411:
  Fix typo
2015-07-03 02:20:57 -07:00
izeye b4f636b33f Fix typo
Closes gh-3411
2015-07-03 02:19:47 -07:00
Stephane Nicoll 6aefd20c55 Merge pull request #3401 from sbrannen/3400
* pr/3401:
  Use @AliasFor in @SpringApplicationConfiguration
2015-07-02 18:09:43 -07:00
Sam Brannen 9cea8925a8 Use @AliasFor in @SpringApplicationConfiguration
Spring Framework 4.2 introduces first-class support for explicit
annotation attribute overrides via a new @AliasFor annotation.

In order to avoid potential naming conflicts in the future and to make
the current, implicit attribute overrides explicit (as well as
documented), this commit retrofits @SpringApplicationConfiguration with
@AliasFor.

Closes gh-3400
Closes gh-3401
2015-07-02 18:05:26 -07:00
Stephane Nicoll 1b1ce6b79f Merge pull request #3403 from izeye/docs-20150702
* pr/3403:
  Fix typo
2015-07-02 07:03:32 -07:00
izeye 631a02b8bc Fix typo
Closes gh-3403
2015-07-02 07:02:54 -07:00
Dave Syer 74e9e0749b Add support for Spring HATEOAS hypermedia in Actuator endpoints
If spring-hateoas is on the classpath and an MvcEndpoint returns a
@ResponseBody it will be extended and wrapped into a Resource with links.
All the existing endpoints that return sensible JSON data can be extended
this way (i.e. not /logfile). The HAL browser will also be added as an
endpoint if available on the classpath. Finally, asciidocs for the
Actuator endpoints are available as a separate jar file, which if
included in an app will also generate a new (HTTP) endpoint.

Fixes gh-1390
2015-07-02 13:26:02 +01:00
Dave Syer 82fdb87a8c Merge branch '1.2.x' 2015-07-02 13:19:34 +01:00
Dave Syer 1abd0879ca Add and fix tests for overridden bindings
The order of property values is only preserved if we check carefully
that each property is actually present in the source being inspected.

Fixes gh-3385
2015-07-02 13:16:13 +01:00
Phillip Webb c25586b760 Merge branch '1.2.x' 2015-07-01 23:28:23 -07:00