Commit Graph

5154 Commits

Author SHA1 Message Date
Stephane Nicoll 54619bec3f Clarify javadoc
This might just be me but when I read the original javadoc it made me
think that caching worked only if the endpoint is accessed anonymously.
2015-07-08 15:05:50 +02:00
Phillip Webb ef39634e30 Polish 2015-07-07 23:59:35 -07:00
Phillip Webb 7dcb79b3b3 Support more lenient DB2 product lookups
Update DataSourceHealthIndicator to support pattern based matching for
DB2 products. Prior to this commit product identifiers of the form
`DB2/LINUXX8664` were not supported.

Fixes gh-3377
2015-07-07 23:18:21 -07:00
Phillip Webb 85535f0882 Disable DB migrations in ApplicationHierarchyTests 2015-07-07 22:17:10 -07:00
Phillip Webb 52643529a3 Merge pull request #3435 from eddumelendez/gh-3434
* pr/3435:
  Add flyway and liquibase endpoint documentation
  Add 'flyway' and 'liquibase' actuator endpoints
  Add serialization endpoint tests
2015-07-07 19:05:37 -07:00
Phillip Webb a087dbc9c3 Add flyway and liquibase endpoint documentation
See gh-3434
2015-07-07 18:58:25 -07:00
Eddú Meléndez 3995c16ba6 Add 'flyway' and 'liquibase' actuator endpoints
Add `/flyway` and `/liquibase` actuator endpoints to provide details of
any database migrations that have been applied.

Fixes gh-3434
Closes gh-3435
2015-07-07 18:58:18 -07:00
Phillip Webb 7e58483ead Add serialization endpoint tests
Test basic serialization in Endpoint tests to ensure that JSON
can always be produced.
2015-07-07 18:31:43 -07:00
Phillip Webb 223a6bd062 Merge branch '1.2.x' 2015-07-07 18:21:25 -07:00
Phillip Webb 7da808918f Fix Flyway and Liquibase JPA 'depends-on' setup
Ensure that FlywayAutoConfiguration and LiquibaseAutoConfiguration occur
after HibernateJpaAutoConfiguration so that the DependsOnPostProcessor
condition can correctly check for a LocalContainerEntityManagerFactory
bean.

Fixes gh-3437
2015-07-07 18:19:13 -07:00
Phillip Webb 7c84e4fe07 Revert "Use Spring Data Gosling snapshots"
This reverts commit 8f16ebd059.
2015-07-07 17:07:00 -07:00
Phillip Webb 9b78f5d52e Replace @ConditionalOnExpression conditions
Replace @ConditionalOnExpression usage in auto-configuration in favor
of faster direct Environment access.
2015-07-07 16:27:30 -07:00
Phillip Webb 71dbec381a Create @ManagementContextConfiguration annotation
Replace the previously used `EndpointWebMvcConfiguration`
`spring.factories` key with a dedicated ManagementContextConfiguration
annotation.

Also renamed the EndpointWebMvcHypermediaConfiguration and
EndpointWebMvcConfiguration classes to make it clearer that they are
for the management context.

See gh-3345
2015-07-07 15:17:11 -07:00
Phillip Webb b2fcd77d93 Rework EndpointWebMvcAutoConfiguration port logic
Update the `ManagementServerPort` detection logic to attempt direct
property resolution before looking for a local property bean
definition. Bean definitions provided by auto-configuration classes
are ignored.

This change allow `OnManagementMvcCondition` to use the
`ManagementServerPort` to determine when `EndpointWebMvcConfiguration`
should apply (removing the need to create a temporary context).

See gh-3345
2015-07-07 15:17:11 -07:00
Phillip Webb e885dab752 Polish 2015-07-07 15:17:03 -07:00
Phillip Webb 4c8c376829 Refactor EndpointPathRequestMatcher
Refactor `EndpointPathRequestMatcher` so that the side effect of setting
`endpointHandlerMapping` in the parent class is a little more obvious.
2015-07-07 15:03:21 -07:00
Phillip Webb c8137ef3f8 Remove `data` from .gitignore
Not sure why it's there but it's far too broad.
2015-07-07 15:03:21 -07:00
Andy Wilkinson 2263095bbb Update launch.script to match chkconfig start levels with defaults
Closes gh-3419
2015-07-07 17:57:47 +01:00
Andy Wilkinson 5fc781e7e2 Upgrade to Spring Integration 4.2.0.M2
Closes gh-3286
2015-07-07 17:52:15 +01:00
Dave Syer 4581c5a273 Rationalize AMQP sample 2015-07-07 17:13:56 +01:00
Stephane Nicoll 406d4ea771 Polish 2015-07-07 17:19:00 +02:00
Stephane Nicoll fa9bb21a0e Merge pull request #3431 from lucassaldanha/master
* pr/3431:
  Polish AMQP doc
  Add AMQP section to the documetation
2015-07-07 17:14:35 +02:00
Stephane Nicoll 4602558a73 Polish AMQP doc
Closes gh-3431
2015-07-07 17:14:20 +02:00
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