Commit Graph

1655 Commits

Author SHA1 Message Date
Phillip Webb 3d89dabb4b Document how to use LegacyCookieProcessor
Closes gh-6827
2016-09-14 20:18:49 -07:00
Stephane Nicoll 5d3ac53da9 Polish
See gh-6870
2016-09-14 16:34:01 +02:00
Stephane Nicoll 878a052567 Add reference to `SpringBootTest#properties`
Closes gh-6870
2016-09-14 14:16:12 +02:00
Stephane Nicoll ee668e6782 Polish contribution
Closes gh-6651
2016-09-12 14:53:02 +02:00
Stephane Nicoll a347a780e7 Polish contribution
Closes gh-6649
2016-09-12 14:34:40 +02:00
Brian Clozel 274734e787 Add `spring.thymeleaf.check-template` property
This commit adds a new `spring.thymeleaf.check-template` property which
is only used for Thymeleaf 3.0+.

Since thymeleaf/thymeleaf#419, the Thymeleaf template resolver
implementations can implement the `setCheckExistence` method - this
enables the template existence verification at **resolution** time,
which means the resolver can return null as a `TemplateResolution`
and let other template resolvers in the chain try.

This new property is set to `true` by default and can be disabled if the
application only has a single resolver and the template existence check
is considered as a performance penalty with the configured resolver.

Fixes gh-6500
2016-09-09 16:35:57 +02:00
making 8a5c026a9d Add spring.http.multipart.resolve-lazily
This commit adds the `spring.http.multipart.resolve-lazily`
property, in order to configure whether the multipart request
should be resolved lazily, as the parameters are accessed.
2016-09-09 10:34:49 +02:00
Brian Clozel f0259c82de Fix documentation on extending Spring MVC
When extending `WebMvcConfigurerAdapter`, developers should always
declare those as `@Configuration` classes rather than `@Bean`s, which
can lead to dependency issues as described in #6853.

Fixes gh-6853
2016-09-09 09:45:54 +02:00
Stephane Nicoll 0233455612 Merge branch '1.3.x' 2016-09-09 07:43:41 +02:00
Huang YunKun 9cb269d14d Trace endpoint defaults to 100
Closes gh-6847
2016-09-09 07:42:56 +02:00
Zoltan Altfatter 2ed479fdc4 Fix description for max-interval property
Closes gh-6836
2016-09-08 07:55:10 +02:00
Phillip Webb 41dc53f5dd Polish 2016-09-07 08:34:45 -07:00
Stephane Nicoll 6f70d53285 Add documentation for `FailureAnalyzer`
Closes gh-6775
2016-09-02 13:11:50 +02:00
Stephane Nicoll 52d7282f5e Auto-configure JdbcTemplate with DataJpaTest
This commit adds `JdbcTemplateAutoConfiguration` to the list of auto-
configurations that are applied with `DataJpaTest`. This effectively
allows to inject a `JdbcTemplate` in any `@DataJpaTest` test.

Closes gh-6802
2016-09-02 09:38:07 +02:00
Phillip Webb 2a22a7af12 Remove ApplicationInfo
Rework commit 4a69755b to remove the need for the ApplicationInfo class.
The updated code now uses the auto-configuration class to compute a
default persistence unit root location

Closes gh-6635
2016-08-31 14:49:15 +02:00
Stephane Nicoll 7765d31edd Merge branch '1.3.x' 2016-08-31 10:47:54 +02:00
Stephane Nicoll c8632f12f6 Clarify scope of Guava's CacheLoader
Closes gh-6778
2016-08-31 10:47:41 +02:00
Stephane Nicoll f93775ec12 Clarify scope of Caffeine's CacheLoader
Closes gh-6770
2016-08-31 10:43:52 +02:00
Stephane Nicoll c4cb831770 Polish 2016-08-28 11:02:19 +02:00
Stephane Nicoll b9104c9337 Restore support for empty persistence unit with fat jars
Due to the layout format change in 1.4, Spring Framework is no longer
able to compute a default persistence unit root URL. If a Spring Boot 1.4
application has JPA but does not have any entity, the application started
from a fat jar now fails with a quite cryptic exception.

This commit introduces `ApplicationInfo` as a general replacement for
the `ApplicationArguments` and `Banner` singleton beans that
`SpringApplication` registers on startup. `ApplicationInfo` also defines
the detected "main" `Class` that can be used to compute a last resort
URL that makes sense.

If such bean is available, `EntityManagerFactoryBuilder` now sets the
default persistence unit root location, preventing Spring Framework to
attempt to resolve an unknown location. Note that in our case the
persistence unit root location is actually useless: given the way the
persistence unit is created, nothing actually uses it but Hibernate, as a
compliant JPA provider, has to make sure this setting is set to a valid
URL nevertheless.

Closes gh-6635
2016-08-26 13:38:17 +02:00
Andy Wilkinson 5a1741e2e8 Improve documentation of when TestRestTemplate is auto-configured
Closes gh-6729
2016-08-23 15:48:40 +01:00
Johnny Lim 524edaea51 Polish
Closes gh-6728
2016-08-23 15:13:33 +02:00
Stephane Nicoll c9a3880f27 Remove hard-coded property values
As of Spring Boot 1.4, IDEs are supposed to provide auto-completion for
hints and enum values. This commit removes the hard-coded copy of
allowed values for enum-based properties. This was mostly the case
already and this commit fixes the few ones remaining.

Closes gh-6654
2016-08-22 15:39:41 +02:00
Stephane Nicoll 54a3ce8827 Restore support for spring.datasource.type
This commit restores the support of "spring.datasource.type". If this
property is set to an unsupported `DataSource` implementation, we now
properly create it again, rather than ignoring it because its value did
not match any value we support.

Since Spring Boot 1.4 now redirects `DataSource` implementation settings
to dedicated namespaces, the documentation has been updated to explicitly
mention how one can create such arrangement for an unsupported
implementation.

As a convenience, `DataSourceProperties` can initialize a
`DataSourceBuilder` based on its internal state, making it very easy for
anyone to create a `DataSource` from a `DataSourceProperties` instance.

Closes gh-6695
2016-08-22 11:49:32 +02:00
Stephane Nicoll a6ef3741ef Configure Undertow's access log prefix and suffix
This commit adds two properties that can be used to customize the prefix
and suffix of the Undertow's access log.

Closes gh-6652
2016-08-22 10:12:26 +02:00
Andy Wilkinson 9ba12f1ad9 Update Jackson customization docs to mention new builder customizer
Closes gh-6678
2016-08-18 21:35:40 +01:00
Stephane Nicoll 62867685ed Fix reference to `@EntityScan` in the doc
Closes gh-6687
2016-08-18 17:00:12 +02:00
Johnny Lim 37c8c3669b Polish
Closes gh-6671
2016-08-17 10:49:04 +02:00
Andy Wilkinson a1e3dcebd4 Polish “Improve documentation for testing with Spock”
Closes gh-6539
2016-08-16 16:07:02 +01:00
Ben Ooms 894d86de12 Improve documentation for testing with Spock 2016-08-16 16:06:52 +01:00
Andy Wilkinson 49202570e9 Update SpringApplicationBuilder example in the docs and test it
Closes gh-6488
2016-08-16 13:14:56 +01:00
Andy Wilkinson 8c106af384 Allow default value for CONF_FOLDER to be set at build time
Closes gh-6549
2016-08-11 20:25:59 +01:00
Stephane Nicoll 5fcadcee6e Polish documentation
Closes gh-6576
2016-08-10 10:27:10 +02:00
drumonii 80b5789d46 Document webjar-locator usage with JBoss
Closes gh-6589
2016-08-10 09:48:47 +02:00
Stephane Nicoll 2a94e05775 Add a note about Jackson and Java6
See gh-6536
2016-08-09 18:37:20 +02:00
Andy Wilkinson 1b42e1aaa3 Recommend setting spring.thymeleaf.mode: HTML when using Thymeleaf 3
Closes gh-6552
2016-08-08 10:40:01 +01:00
zhanhb 8d84123762 Fix `spring-boot-legacy` version
Closes gh-6492
2016-08-02 14:22:06 -07:00
Spring Buildmaster 334baaeffd Next development version 2016-07-28 19:54:01 +00:00
Phillip Webb 405299a95a Generate empty spring-boot-docs jar
Update spring-boot-docs so that an empty jar file is produced. The
code is only needed for documentation includes and if included in the
deployed jar seems to prevent promotion to Maven Central.

Fixes gh-6495
2016-07-28 10:40:17 -07:00
Spring Buildmaster a89ef5df6e Next Development Version 2016-07-28 09:18:40 +00:00
Andy Wilkinson 2469f0ba28 Clarify effect of @EnableWebSecurity when Actuator's being used
Closes gh-6490
2016-07-27 16:17:25 +01:00
Johnny Lim 9627d0ed66 Polish
Closes gh-6487
2016-07-27 12:29:33 +01:00
Stephane Nicoll eb444f547f Fix typo 2016-07-27 09:20:19 +02:00
Biju Kunjummen d7a1730b50 Update Gradle remote debug documentation
Update the documentation to reference the `bootRun` command rather
than `run`.

Closes gh-6461
2016-07-26 22:17:20 -07:00
Phillip Webb 753a7e1d33 Document how to to customize the TestRestTemplate
Update the reference documentation and add some additional Javadoc to
provide hints on how to customize the `TestRestTemplate`.

Fixes gh-6465
2016-07-26 22:08:53 -07:00
Phillip Webb 296dc7132b Allow JSON Testers to be `@Autowired`
Switch `@AutoConfigureJsonTesters` to use regular `@Autowired` injection
for JSON testers. Prior to this commit JSON Tester fields were
initialized directly which caused IDE issues and was also a little
confusing.

Fixes gh-6451
2016-07-26 21:41:37 -07:00
Vedran Pavic 7669c3c468 Move "Using jOOQ" section under "Working with SQL databases" section
Closes gh-6462
2016-07-26 09:48:35 +02:00
Andy Wilkinson 595902703b Fix level of section in build tool plugins documentation 2016-07-20 20:56:50 +01:00
Andy Wilkinson 2e5d189299 Merge branch '1.3.x' 2016-07-20 07:05:54 +01:00
Andy Wilkinson 197f67c867 Correct OpenShift instructions to use action_hooks not action_scripts
Closes gh-6419
2016-07-20 07:05:38 +01:00
Andy Wilkinson 93ceb980bc Recommend against using compileOnly in favour of providedRuntime
Closes gh-5461
2016-07-19 15:40:57 +01:00
Andy Wilkinson 409f160150 Merge branch '1.3.x' 2016-07-19 12:08:06 +01:00
Andy Wilkinson a22071724a Make it clearer that unconfigured WebSecConfigAdapter matches any path
Closes gh-5046
2016-07-19 12:07:45 +01:00
Stephane Nicoll d5441d27f6 Polish doc 2016-07-19 09:31:03 +02:00
Phillip Webb 05ff4ed4e0 Upgrade to Tomcat 8.5.4 & remove tomcat-juli
Upgrade the managed Tomcat dependency to 8.5.4 and remove `tomcat-juli`
since it's now included in `tomcat-embed-core`.

Fixes gh-6192
2016-07-18 17:52:35 -07:00
Andy Wilkinson 48596dfbde Document workaround for CRaSH's limited class path scanning
Closes gh-6384
2016-07-18 12:11:45 +01:00
Phillip Webb 34893eee9d Refine service documentation
See gh-5505
2016-07-17 11:58:19 -07:00
Stephane Nicoll 1f3d9235a8 Fix typo 2016-07-16 18:20:32 +02:00
Phillip Webb db287782a2 Remove duplicate documentation bookmark
See gh-5505
2016-07-15 16:29:33 -07:00
Phillip Webb 291f131e60 Remove `/urandom` references from the docs
Remove a dangling line left after commit 7b641d5d.

Fixes gh-6229
2016-07-15 15:34:24 -07:00
Phillip Webb a1345e17f1 Improve "fully executable jars" documentation
Closes gh-5505
2016-07-15 15:32:13 -07:00
Phillip Webb 51ede0cac6 Document ConfigFile...Initializer limitations
Update the reference documentation with a note about the limitations of
ConfigFileApplicationContextInitializer.

Fixes gh-6120
2016-07-15 13:16:33 -07:00
Phillip Webb 7b641d5d55 Remove `/urandom` references from the docs
Fixes gh-6229
2016-07-15 13:06:57 -07:00
Stephane Nicoll 5a941bb5a5 Polish doc
See gh-4313
2016-07-14 10:00:51 +02:00
Stephane Nicoll 6d33adc5dd Add "Merging YAML lists" documentation
Add a dedicated section to explain how YAML lists are merged.

See gh-4313
2016-07-13 15:34:14 -07:00
Andy Wilkinson 041da3b6cd Document how to configure a component that Hibernate depends upon
Closes gh-6333
2016-07-13 12:19:24 +01:00
Stephane Nicoll 6bd7a2fedd Deprecate HornetQ support
Closes gh-6377
2016-07-13 10:06:19 +02:00
Andy Wilkinson db83e89922 Add support for Thymeleaf 3 while keeping Thymeleaf 2 as the default
Closes gh-4393
2016-07-12 23:02:04 +01:00
Phillip Webb 3e62933096 Polish 2016-07-11 10:40:13 -07:00
Stephane Nicoll fcf535901e Polish doc
Closes gh-6008
2016-07-11 13:31:27 +02:00
Stephane Nicoll 277da462ce Document differences between @Value and @ConfigurationProperties
Closes gh-4892
2016-07-11 12:23:30 +02:00
Stephane Nicoll a72e494896 Merge branch '1.3.x' 2016-07-11 11:08:52 +02:00
Stephane Nicoll 78879f4bdb Fix documentation
Closes gh-6358
2016-07-11 11:08:36 +02:00
Andy Wilkinson ccaa19d51f Document how to configure a RestTemplate to use a proxy
Closes gh-6331
2016-07-07 10:58:09 +01:00
Andy Wilkinson 3286760073 Make it easier to add auto-configuration to a test slice
Previously, an entry had to be added to spring.factories using the
name of one of the @AutoConfigure… meta-annotations on the @…Test
annotation as the key. This indirection was unnecessarily complicated.

This commit simplifies things by allowing the name of the @…Test
annotation itself to be used as the key.

Closes gh-6335
2016-07-06 16:44:26 +01:00
Stephane Nicoll 05dad45172 Add proxy configuration for Jest client
Closes gh-6332
2016-07-06 14:43:30 +02:00
Andy Wilkinson 5c44c77287 Document auto-configuration classes imported by each @…Test annotation
Closes gh-6044
2016-07-06 12:20:51 +01:00
Stephane Nicoll 4b91965dde Fix indent 2016-07-05 11:26:15 +02:00
Stephane Nicoll 78e580c8db Polish 2016-07-05 11:19:11 +02:00
Stephane Nicoll 0545231049 Polish 2016-07-05 10:37:22 +02:00
Spring Buildmaster 2216369348 Next Development Version 2016-07-04 14:15:02 +00:00
Phillip Webb b5df4f8d08 Merge branch '1.3.x' 2016-07-03 21:55:38 -07:00
Phillip Webb e452373c04 Fix imports in health sample documentation
Fixes gh-6312
2016-07-03 21:52:57 -07:00
Stephane Nicoll a71ad73065 Document missing property 2016-07-03 17:10:43 +02:00
Phillip Webb 2583a534e6 Document heapdump endpoint
See gh-5670
2016-07-02 11:15:47 -07:00
Johnny Lim 4d0313f9c0 Remove duplicate property reference
Closes gh-6304
2016-07-01 16:00:38 +02:00
Stephane Nicoll 00a56cdf31 Merge branch '1.3.x' 2016-07-01 14:07:18 +02:00
Stephane Nicoll 49fefdafd8 Fix doc formatting
Closes gh-6275
2016-07-01 14:07:01 +02:00
Stephane Nicoll 0ea2626867 Improve Spring Session documentation
Closes gh-6256
2016-06-30 15:40:45 +02:00
Vedran Pavic a251ea8bc7 Add Spring Session JDBC database initializer
See gh-5879
2016-06-30 15:23:54 +02:00
Andy Wilkinson 2b970f9efc Allow Tomcat context root redirect to be configured via the environment
This commit adds a new property, server.tomcat.redirect-context-root,
that can be used to configure the Tomcat Context’s 
mapperContextRootRedirectEnabled property. The default is to not apply
any configuration and, therefore, to use Tomcat’s default of true.

Closes gh-6248
2016-06-30 12:47:42 +01:00
Johnny Lim 5bc9d5b380 Polish
Closes gh-6244
2016-06-29 08:08:53 +02:00
Stephane Nicoll fc4d8b99d6 Allow to configure Tomcat's renameOnRotate property
Closes gh-5981
2016-06-28 16:38:01 +02:00
Stephane Nicoll 397c64d256 Polish "Add schemaAction property"
Closes gh-5855
2016-06-28 10:21:48 +02:00
Mark Paluch e85cb2c4c5 Add schemaAction property to CassandraProperties
Set schemaAction property in CassandraSessionFactoryBean. Use relaxed
property resolver for enum lookup of the configured schemaAction.

See gh-5855
2016-06-28 10:21:24 +02:00
Andy Wilkinson 94ba6bdae2 Polish “Allow connection timeout to be configured via the environment”
- Preserve default connection timeout when server.connection-timeout
   has not been set
 - Apply standard coding conventions and formatting

See gh-6072
2016-06-27 16:56:16 +01:00
Misagh Moayyed 6007d7efc1 Allow connection timeout to be configured via the environment
Closes gh-6072
2016-06-27 16:56:16 +01:00
Stephane Nicoll 84b2ff5c38 Polish "Add ability to filter cookies in trace data"
Closes gh-6018
2016-06-27 16:41:10 +02:00
Stephane Nicoll 5656e83ba9 Enable logging of resolved exceptions
Previously, if an exception was resolved by a `HandlerExceptionResolver`
nothing the log indicated a failure to process the query.

This commit adds a new property `spring.mvc.log-resolved-exception` that
enables warning logs for supported `HandlerExceptionResolver` instances.

When Devtools is enabled, this flag is enabled by default.

Closes gh-2176
2016-06-27 14:37:44 +02:00
Andy Wilkinson 618535f576 Polish “Allow management server SSL to be configured independently”
This commit polishes b0fbc7e, throwing an exception when an attempt is
made to configure management-specific SSL without also configuring a
custom management port. The testing of management-specific SSL
configuration has also been improved.

See gh-6057
Closes gh-4810
2016-06-27 13:24:42 +01:00
Johnny Lim 301574de09 Polish
Closes gh-6234
2016-06-27 14:19:26 +02:00
Stephane Nicoll cfe1fe8736 Merge branch '1.3.x' 2016-06-23 10:44:55 +02:00
Stephane Nicoll bffcb1aad2 Document available layouts
Closes gh-5524
2016-06-23 10:42:47 +02:00
Stephane Nicoll 2dc6e5b6fa Refactor Jest auto-configuration package space
This commit moves the Jest auto-configuration from `spring.jest` to
`spring.elasticsearch.jest`

Closes gh-6032
2016-06-23 10:39:16 +02:00
Andy Wilkinson 52e8ad4b6b Drop back to Hibernate 5.0.9.Final
The upgrade to Hibernate 5.2.0.Final has provide to be too
problematic to live with. It requires Java 8, is incompatible with
a number of other projects in the Hibernate ecosystem, and it's
unclear for how long it will be maintained. We'd previously used
Hibernate 5.1.0.Final but its maintenance is also unclear with
Hibernate 5.1.1.Final being more than 3 months overdue.

This commit drops back to Hibernate 5.0.9.Final. This has a few
advantages:

- It's Java 7 compatible
- It's had some time to mature and should be reasonably free of
  regressions for those moving from 4.3.x
- It's used in both Wildfly and JBoss EAP so there's a fair chance
  that it will continue to be maintained.

Closes gh-6198
2016-06-21 20:09:21 +01:00
Phillip Webb 7446235ff4 Polish 2016-06-20 20:13:13 -07:00
Phillip Webb c136054e69 Merge branch '1.3.x' 2016-06-20 18:54:01 -07:00
Phillip Webb 5b97981c87 Polish 2016-06-20 18:13:43 -07:00
Brian Clozel fa32ce35fb Document workaround for JSP limitation
See gh-2893
2016-06-20 18:00:31 +02:00
Brian Clozel 714ee45ff9 Merge branch '1.3.x' 2016-06-20 17:59:29 +02:00
Brian Clozel c1fcecb415 Document JSP limitation: error page customization
Closes gh-2893
2016-06-20 17:56:30 +02:00
Andy Wilkinson 2c8eaac78c Update documentation of server.server-header for changes in 3009e51
See gh-4730
2016-06-20 15:25:01 +01:00
Stephane Nicoll 06aa35b9da Clarify usage of EnvironmentPostProcessor
Closes gh-6101
2016-06-20 15:29:38 +02:00
Andy Wilkinson f28e3d54c5 Upgrade to Tomcat 8.5.3
This commit changes the default version of Tomcat to 8.5.3 while
also retaining support for Tomcat 8.0 and 7.0. The main difference
in 8.5 is that the ServerSocketFactory abstraction that allowed the
TrustStore and KeyStore to be configured programatically no longer
exists. This logic has been replaced with the use of a custom URL
protocol (springbootssl) that provides access to the key store and
trust store of an SslStoreProvider. In addition to working with 8.5,
this approach has the advantage of also working with 8.0 and 7.0.

Closes gh-6164
2016-06-20 13:27:47 +01:00
Johnny Lim d47719edbd Fix default value for dispatch-options-request in doc
Closes gh-6185
2016-06-18 12:20:16 +02:00
Stephane Nicoll 2ff9e3cfdc Upgrade to Hibernate 5.2
See gh-6111
2016-06-17 11:14:35 +02:00
Stephane Nicoll a273d8d0c8 Add secured connection support to Artemis
This commit aligns the feature introduced in gh-6071 to Artemis.

Closes gh-6179
2016-06-17 10:30:43 +02:00
Stephane Nicoll 8b79c667a7 Polish "Secured HornetQ" contribution
Closes gh-6071
2016-06-16 19:09:35 +02:00
Stephane Nicoll 6dff1548fa Merge branch '1.3.x' 2016-06-16 15:45:49 +02:00
Stephane Nicoll 6574feea87 Document limitations of logging.pattern.*
Closes gh-5653
2016-06-16 15:44:22 +02:00
Stephane Nicoll d54474b81c Allow locale to be overridden by "Accept-Language"
Previously, when `spring.mvc.locale` was specified, that locale was used
regardless of the client's preferences. This commit adds an extra
`spring.mvc.locale-resolver` property that can control how the locale is
resolved. The default is `ACCEPT_HEADER` but can be set to `FIXED` to
restore the previous behaviour.

Closes gh-6083
2016-06-16 14:48:55 +02:00
Andy Wilkinson 75032c46dc Include Javadoc for devtools, test, and test-autoconfigure in main docs
Closes gh-6149
2016-06-15 15:21:14 +01:00
Andy Wilkinson 6ee6f09503 Fix warnings produced during Javadoc generation 2016-06-15 15:21:14 +01:00
Vladimir Tsanev b303b3fe35 Support JSPs in Embedded Jetty
JSPs are now supported in executable WARs with embedded Jetty.

Fixes gh-367
Closes gh-5290
2016-06-15 16:01:54 +02:00
Andy Wilkinson 9bc3722a1e Correct version of Undertow in table of supported embedded containers 2016-06-15 13:58:48 +01:00
Andy Wilkinson ff602e60a0 Change default version of Jetty to 9.3
Closes gh-5825
2016-06-15 13:58:47 +01:00
Andy Wilkinson f4d197c245 Make Jest available to javadoc generation
See gh-6032
2016-06-14 12:37:10 +01:00
Dave Syer a3b29b0e42 Add /webjars/** to default list of unsecured resources
Fixes gh-2460
2016-06-14 10:31:39 +01:00
Johnny Lim a70a8635f9 Polish
Closes gh-6155
2016-06-14 08:35:22 +02:00
Stephane Nicoll 7afe1d16a6 Add Jest support
This commit adds auto-configuration support for Jest, an HTTP client for
Elasticsearch. If Jest is present, a `JestClient` targeting a local
elasticsearch instance is auto-configured. Several properties from the
`spring.jest.*` namespace allows to tune the client.

Closes gh-6032
2016-06-13 15:25:10 +02:00
Stephane Nicoll 0fd7739ec7 Polish doc
See gh-6147
2016-06-12 09:04:30 +02:00
Brian Clozel 6dc0ecb182 Add WebMvcRegistrations for custom MVC components
Add `WebMvcRegistrations` which can be used to provide custom
instances of `RequestMappingHandlerMapping`,
`RequestMappingHandlerAdapter` and `ExceptionHandlerExceptionResolver`.
Those instances are then used and processed by the Boot MVC
configuration.

Prior to this commit, developers could provide their custom instances
of MVC infrstructure components such as `RequestMappingHandlerMapping`
and `RequestMappingHandlerAdapter` only by using advanced configuration
strategies. Those advanced configurations involved subclassing
`WebMvcConfigurationSupport` which effectively turns off MVC
auto-configuration in Boot.

Fixes gh-5004
Closes gh-6100
2016-06-10 10:40:06 -07:00
Phillip Webb 0a475946a1 Document RestTemplateBuilder and @RestClientTest
See gh-6030
See gh-5507
2016-05-31 10:18:07 -07:00
Phillip Webb bc6f1cfdf3 Polish 2016-05-31 09:22:42 -07:00
Johnny Lim d28c1890a2 Fix default value for `spring.rabbitmq.connection-timeout`
Closes gh-6075
2016-05-31 06:08:39 -04:00
Stephane Nicoll 71917abccf Fix typo
See gh-6004
2016-05-30 12:14:51 +02:00
Stephane Nicoll b6ab929162 Merge branch '1.3.x' 2016-05-26 17:27:39 +02:00
Stephane Nicoll b49c6ca616 Fix link in doc
Closes gh-6033
2016-05-26 17:25:57 +02:00
Johnny Lim 70adefc87b Polish
Closes gh-6046
2016-05-26 14:58:41 +02:00
Stephane Nicoll 44b4df2d3d Deprecate hornetq support
Closes gh-6034
2016-05-26 14:14:59 +02:00
Stephane Nicoll f257b6a0b5 Polish "Add activemq starter" contribution
Closes gh-6010
2016-05-26 11:40:24 +02:00
Stephane Nicoll 50e0bb2d9c Improve DataJpaTest documentation
As `@DataJpaTest` is meta-annotated with `@Transactional`, all data jpa
tests are transactional and rollback at the end of each test. It is
possible to tune that in many ways, including disabling the transaction
per test or per test class.

This commit improves the doc to explain those concepts.

Closes gh-5993
2016-05-25 11:28:16 +02:00
Andy Wilkinson 98a039ea99 Clarify references to Commons Logging in the documentation 2016-05-24 14:43:47 +01:00
Stephane Nicoll 9ab5c09905 Add reference to `@TestPropertySource` in the doc
Closes gh-5899
2016-05-24 09:07:26 +02:00
Stephane Nicoll b02aba4c75 Polish contribution
Closes gh-5074
2016-05-23 17:38:45 +02:00
Vedran Pavic 20fa1b3b48 Support configuration of multiple management roles
Closes gh-5045
2016-05-23 17:15:44 +02:00
Stephane Nicoll 3d0b682f0f Document `none` cache type
Closes gh-6004
2016-05-23 07:09:06 +02:00
Stephane Nicoll 9182ada260 Polish doc
Closes gh-6009
2016-05-23 06:52:28 +02:00
Dave Syer ba824b240b Add uuid generator to RandomValuePropertySource
A well-formed string represenation of a UUID can now be generated
by ${random.uuid}.
2016-05-22 10:36:54 +01:00
Stephane Nicoll 4213c1575a Polish doc
Closes gh-5999
2016-05-20 13:00:08 +02:00
Stephane Nicoll 6698af08df Replace Starter POM to Starter in the documentation
"Starter POM" is a confusing term as it implies the starter may be a
POM while it's actually a jar artifact like any other dependency. To
reduce the confusion (especially in the way such starter should be
declared in the build), the term Starter POM has been renamed to Starter.

Closes gh-5966
2016-05-18 08:55:42 +02:00
Stephane Nicoll 3805fc7455 Polish 2016-05-17 08:55:59 +02:00
Phillip Webb 7f45485e61 Provide explicit force request/response properties
Update HttpEncodingProperties to offer explicit `force-request` and
`force-reponse` properties in additional to the existing `force`
property.

Closes gh-5459
2016-05-16 18:43:57 -07:00
Stephane Nicoll 00f9adafd7 Stop creating a primary `Oauth2RestTemplate`
This commit removes the creation of a `@Primary` `OAuth2RestTemplate`
and updates the documentation accordingly.

Once #5507 is implemented we could revisit this area to provide a way for
users to easily create such a bean.

Closes gh-5202
2016-05-13 17:26:22 +02:00
Stephane Nicoll dcb4fe8304 Add JMX support to the Spring Integration starter
Closes gh-1440
2016-05-13 16:33:35 +02:00
Andy Wilkinson 83573bf2c6 Polish "Set default paths for fixed static version" (gh-5878) 2016-05-12 17:07:23 +01:00
Johnny Lim 7c34dd87c1 Polish
Closes gh-5925
2016-05-12 07:55:19 +02:00
Johnny Lim 38dc9ec441 Polish 2016-05-10 14:48:42 +01:00
Stephane Nicoll 699d083cec Add load-on-startup property to DispatcherServlet
Closes gh-2481
2016-05-10 08:37:23 +02:00
Spring Buildmaster 819a9574a6 Next Development Version 2016-05-10 05:28:34 +00:00
Stephane Nicoll 832d2b7bb2 Rephrased connection pool detection algorithm
Closes gh-5864
2016-05-09 08:15:01 +02:00
Stephane Nicoll b7e7bcf717 Make `spring.session.store-type` mandatory
Previously, Spring Session would be auto-configured by the mere presence
of Spring Session in the classpath. This was fragile as determining a
store type according to the environment could easily change when the
classpath of the project changes.

This commit makes the store-type property mandatory. If it is not set,
Spring Session is no longer auto-configured.

Closes gh-5838
2016-05-09 08:07:25 +02:00
Spring Buildmaster 376bbe68d8 Next Development Version 2016-05-06 11:23:57 +00:00
Stephane Nicoll 21536f64e1 Polish info contributor feature
This commit improves the `InfoContributor` infrastructure as follows:

* `InfoEndpoint` no longer breaks its public API and returns a Map as
before
* `Info` is now immutable
* All properties of the build are now displayed. Since we control the
generation of that file, there is no longer a mode to restrict what's
shown
* Build info is now generated in `META-INF/build-info.properties` by
default

Closes gh-5734
2016-05-06 10:52:26 +02:00
Yunkun Huang 30505d8a5e Fix duplicate entries in Appendix E
Fixes gh-5827
Closes gh-5832
2016-05-02 17:53:08 -07:00
Kirill Gavrilov f889cb4d58 Update getting-started.adoc
Fixed path for bash completions

Closes gh-5831
2016-05-02 17:11:04 -07:00
Stephane Nicoll bf89c8ee46 Polish spring session auto-configuration
This commit improves the initial submission by adding more tests and
more configuration options.

Closes gh-5158
2016-05-02 15:02:53 +02:00
Eddú Meléndez 0be00e2a6d Polish session auto-configuration
See gh-5158
2016-05-02 14:33:24 +02:00
Stephane Nicoll c3e8cc2150 Merge branch '1.3.x' 2016-05-02 14:18:59 +02:00
Stephane Nicoll 42af5ebc2c Fix class name
Closes gh-5823
2016-05-02 14:17:48 +02:00
Stephane Nicoll 248bad34dc Fix `RedisProperties` link in the doc
Closes gh-5811
2016-05-02 14:15:55 +02:00
Stephane Nicoll 373cf83f99 Merge branch '1.3.x' 2016-04-30 10:21:50 +02:00
Cristian Greco 5d55d57f78 Fix doc about running native commands
Closes gh-5829
2016-04-30 10:21:41 +02:00
Phillip Webb 0bf025af7b Add out-of-the-box support for status error pages
Allow convention based status error pages. Static HTML or templates
can be used by placing the appropriately named file under a `/error`
folder. For example:

	/src/main/resource/templates/error/404.ftl
or	/src/main/resource/public/error/404.html

Pages can also be named after the status series (5xx or 4xx).

Fixes gh-2691
2016-04-29 14:02:59 -07:00
Phillip Webb f468aff47f Merge remote-tracking branch '1.3.x' 2016-04-28 09:32:37 -07:00
Phillip Webb ef7b511b0e Polish 2016-04-28 09:29:49 -07:00
Stephane Nicoll 1ef3327441 Move multipart.* properties to spring.http.multipart.*
Closes gh-3044
2016-04-26 08:59:41 +02:00
Johnny Lim db2092e27d Polish
Closes gh-5798
2016-04-26 08:17:13 +02:00
Stephane Nicoll 23f669f8f5 Polish
See gh-5791
2016-04-26 08:11:33 +02:00
Dustin Schultz a3469c5e26 Update docs with Servlet property load ordering
Fixes gh-5752
Closes gh-5752
2016-04-25 14:20:20 -07:00
Eddú Meléndez 99b830ebe7 Support different schema/data DB script users
Allow data and/or schema scripts to be run by different database users.

Fixes gh-5402
Closes gh-5788
2016-04-25 12:37:36 -07:00
Gary Russell 12b9f0262b Add RabbitMQ Connection Timeout Property
Fixes gh-685
Closes gh-5791
2016-04-25 12:13:11 -07:00
Stephane Nicoll 11f763ef89 Polish doc
Closes gh-789
2016-04-24 05:46:26 +02:00
Matt Benson b9aee3678d Polish
See gh-4953
Closes gh-5745
2016-04-21 12:53:43 +02:00
Andy Wilkinson a6bcc6f573 Update Liquibase and Flyway docs and test other changelog formats
Closes gh-5741
2016-04-21 10:22:59 +01:00
Andy Wilkinson e748c5e6a0 Merge branch '1.3.x' 2016-04-20 17:47:45 +01:00
Andy Wilkinson 125483e7aa Add a note in the docs that default launch script only works on Linux
Closes gh-5446
2016-04-20 17:46:36 +01:00
Stephane Nicoll 0ea6fb3261 Improve error page documentation
Closes gh-5722
2016-04-19 13:17:23 +02:00
Johnny Lim 61b47079a4 Remove duplicate words
Closes gh-5731
2016-04-19 08:21:58 +02:00
Andy Wilkinson 1da9e4d80a Merge branch '1.3.x' 2016-04-18 17:42:44 +01:00
Andy Wilkinson 432969e61e Correct documented spring.factories key for management context config
Closes gh-5664
2016-04-18 17:41:44 +01:00
Johnny Lim 6d48ee9593 Polish
Closes gh-5714
2016-04-17 09:26:05 +02:00
Phillip Webb 15dee60049 Restore spring-boot-starter-ws
Rename spring-boot-starter-webservices back to spring-boot-starter-ws.
Unfortunately the starter exists in Spring Boot 1.3 so we can't rename
it without consequence.

See gh-5711
2016-04-16 08:30:56 -07:00
Stephane Nicoll 03fff6df79 Polish
See gh-5706
2016-04-16 10:43:11 +02:00
Phillip Webb 5881c9c74f Polish 2016-04-15 22:39:35 -07:00
Stephane Nicoll cc0fc07c0e Move `shell.*` to `management.shell.*`
This commit moves the `shell` namespace to `management.shell`

Closes gh-5703
2016-04-15 18:12:35 +02:00
Stephane Nicoll 6d11d73cbc Move `shell.auth` to `shell.auth.type`
This commit moves the `shell.auth` property to `shell.auth.type`. The
previous situation was unfortunate since `shell.auth` was both a group
and a particular property.

Closes gh-5139
2016-04-15 18:12:35 +02:00
Stephane Nicoll f561d9d9d8 Polish auto-configuration for Spring Web Services
Closes gh-5645
2016-04-15 11:01:15 +02:00
Stephane Nicoll e4106e592a Polish doc
Closes gh-5675
2016-04-15 08:58:18 +02:00
Stephane Nicoll 5bc290eac6 Improve Hibernate 5 specific documentation
Closes gh-5694
2016-04-15 08:54:35 +02:00
Phillip Webb 99ea724c71 Polish docs 2016-04-12 22:45:43 -07:00
Phillip Webb 296bbbc7bd Polish docs 2016-04-12 21:24:44 -07:00
Phillip Webb 29900b48ea Polish docs 2016-04-12 21:23:22 -07:00
Phillip Webb 2d71b08eef Fix copy/paste error in documentation 2016-04-12 20:06:35 -07:00
Andy Wilkinson 22e1a23d38 Work around bug in crash.shell pom that causes crash.cli to go AWOL
When spring-boot-docs is built on Windows, Maven logs a warning:

[WARNING] The POM for org.crashub:crash.shell🫙1.3.2 is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more details

The build then fails as a class in crash.cli, a dependency of
crash.shell, is unavailable. The failure’s due to a hardcoded path
in the pom that Maven needs to be absolute and isn’t on Windows. See
https://jira.exoplatform.org/browse/CRASH-247 for details.

This commit works around the problem by explicitly declaring
crash.shell’s one dependency directly. The warning is still logged but
it’s now benign.

Closes gh-5633
2016-04-12 16:27:50 +01:00
Johnny Lim 030096c490 Polish
Closes gh-5661
2016-04-12 07:41:09 +02:00
Stephane Nicoll 3156b17f8a Polish 2016-04-12 07:34:29 +02:00
Andy Wilkinson 5677b222d2 Document using @TestConfiguration to customize app's primary config
Closes gh-5566
2016-04-11 21:15:06 +01:00
Venil Noronha 1def64e49e Add Jetty `acceptors` and `selectors` support
Add support for Jetty `acceptors` and `selectors` configuration, either
directly on the `JettyEmbeddedServletContainerFactory` or via
`server.jetty.acceptors`/`server.jetty.selectors` server properties.

Fixes gh-5380
Closes gh-5649
2016-04-11 11:30:55 -07:00
Michael J. Simons aaed87d176 Register printed banner in ApplicationContext
Update SpringApplication to store the banner that was actually printed
as a bean named `springBootBanner`.

Closes gh-5636
2016-04-11 10:54:22 -07:00
Andy Wilkinson f87defe15a Document FlywayMigrationStrategy
Closes gh-5656
2016-04-11 17:30:49 +01:00
Stephane Nicoll 99ae6dac53 Customize Couchbase's socket connect timeout
Our Windows build is failing currently because the couchbase server does
not handle a socket connection within a second (the default). This commit
adds a property to customize this option and set it to 10 sec in the
sample.

While investigating this issue, it turns out that while
`CouchbaseConfiguration` is public, it is not really possible to extend
it in user's configuration. This commit fixes this problem and add a test
that demonstrates how it can be used.

Closes gh-5657
2016-04-11 18:23:27 +02:00
Stephane Nicoll c38bb9657d Polish 2016-04-11 16:11:51 +02:00
Phillip Webb a39d351eed Polish profile negation in YAML sub-documents
Closes gh-4953
2016-04-10 23:23:59 -07:00
Matt Benson bd010494c9 Support profile negation in YAML sub-documents
See gh-4953
2016-04-10 23:22:31 -07:00
Johnny Lim a0c8d1f5b5 Polish 2016-04-10 22:18:28 -07:00
Phillip Webb ea44ae6a35 Polish contribution 2016-04-10 10:27:06 -07:00
Stephane Nicoll 3d9ac6ea57 Polish 2016-04-10 18:06:15 +02:00
Phillip Webb 0c0be1e626 Polish contribution 2016-04-10 07:48:31 -07:00
Stephane Nicoll 725ae2c834 Fix typo 2016-04-09 19:59:15 +02:00
Stephane Nicoll fbe53be6c1 Polish Hibernate 5 support
Closes gh-2763
2016-04-08 14:13:23 +02:00
Stephane Nicoll 99dae09f84 Improve caching documentation
Add a note regarding the use of `@EnableCaching(proxyTargetClass=true)`
for beans that are not interface based.

Closes gh-5527
2016-04-08 13:01:50 +02:00
Phillip Webb d058ddbe3b Add image banner documentation
Closes gh-4647
2016-04-07 23:21:18 -07:00
Andy Wilkinson 436da1d5fd Polish contribution 2016-04-07 15:27:07 +01:00
Johnny Lim 3b5ecbd066 Polish
Closes gh-5627
2016-04-07 14:47:18 +01:00
Phillip Webb 75c76838b5 Add Narayana reference documentation
Closes gh-5552
2016-04-06 19:16:34 -07:00
Phillip Webb ec33c59f6b Polish 2016-04-06 18:15:12 -07:00
Phillip Webb 1abfed2f23 Add Javadoc dependencies 2016-04-06 18:10:11 -07:00
Phillip Webb 48800f1818 Polish contribution 2016-04-06 17:05:01 -07:00
Gytis Trikleris a2adc5a130 Add Narayana JTA support
Add support for JBoss Narayana.

Fixes gh-5552
2016-04-06 17:02:53 -07:00
Andy Wilkinson fc6c57413b Update docs to fully reflect BOOT-INF executable archive layout changes
Closes gh-5195
2016-04-06 10:56:47 +01:00
Johnny Lim a55315b5b5 Polish
Closes gh-5614
2016-04-06 10:25:45 +02:00
sebastiankirsch a15684e67e Allow per-http-method MetricsFilter submissions
Add `endpoints.metrics.filter.gauge-submissions` and
`endpoints.metrics.filter.counter-submissions` properties which can be
used to fine-tune how MetricsFilter submits metrics.

Use `per-http-method` to group by the the HTTP method, `merged` to
combine or both (`merged,per-http-method`) to submit both in forms.

Closes gh-5102
2016-04-05 22:41:45 -07:00
Stephane Nicoll 520448cd9c Add support for publisher confirms/returns
Closes gh-3945
2016-04-05 14:25:18 +02:00
Stephane Nicoll 05ef0818f8 Polish contribution
Closes gh-5511
2016-04-05 12:38:04 +02:00
Andy Wilkinson 487f7310fd Polish contribution 2016-04-05 11:03:03 +01:00
Quinten De Swaef 34eb3695e4 Allow Tomcat's minimum threads to be configured via the environment
Closes gh-5572
2016-04-05 10:56:11 +01:00
Phillip Webb b398b3319c Rename @SpringApplicationTest -> @SpringBootTest
Rename @SpringApplicationTest to SpringBootTest and
@SpringApplicationContextLoader to @SpringBootContextLoader.

Fixes gh-5562
2016-04-04 22:36:58 -07:00
Phillip Webb b0b190b362 Delete @SpringApplicationConfiguration
Remove the @SpringApplicationConfiguration annotation since it offers
little value over @SpringApplicationTest.

See gh-5562
2016-04-04 22:36:58 -07:00
Andy Wilkinson eb3180d581 Provide test auto-configuration for Spring REST Docs
This commit introduces a new annotation, @AutoConfigureRestDocs,
which can be used to enable auto-configuration of Spring REST Docs.
The auto-configuration removes the need to use Spring REST Docs' JUnit
rule and will automatically configure MockMvc. Combined with the new
auto-configuration for MockMvc it allows a test class to be free of
boilerplate configuration:

@RunWith(SpringRunner.class)
@WebMvcTest
@AutoConfigureRestDocs(outputDir = "target/generated-snippets",
        uriScheme = "https", uriHost = "api.example.com",
        uriPort = 443)
public class ExampleDocumentationTests {

    @Autowired
    private MockMvc mvc;

    @Test
    public void documentIndex() {
        // …
    }

}

For more advanced customization a RestDocsMockMvcConfigurationCustomizer
bean can be used.

If a RestDocumentationResultHandler is found in the context, it will
be passed to the ConfigurableMockMvcBuilder's alwaysDo method as part
of its customization.

Closes gh-5563
2016-04-04 17:19:51 +01:00
Johnny Lim f88c583570 Polish
Closes gh-5553
2016-04-01 17:11:17 +02:00
Phillip Webb c167e4fd0e Rework SpringApplicationTest documentation
Closes gh-5477
2016-03-31 21:37:28 -07:00
Andy Wilkinson 491ab3dd31 Fix assembly that collects all of the starter poms
Closes gh-5267
2016-03-30 15:09:56 +01:00
Andy Wilkinson fec53970f7 Auto-generate tables describing the first-party starters
Previously, the documentation included hand-written tables for the
application, production, and technical starters.

This commit replaces the hand-written tables with tables that are
generated automatically from all of the starter poms, thereby ensuring
that the documentation is automatically kept up-to-date as starters
are added and removed. An extra column provided a link to each
starter's pom on GitHub has also been added to the table. This makes
it easier for users to see exactly what each starter contains.

Closes gh-5267
2016-03-30 14:42:38 +01:00
Johnny Lim a28dd9d9e6 Polish
Closes gh-5532
2016-03-30 08:43:23 +02:00
Stephane Nicoll a66045fa98 Polish contribution
Closes gh-5521
2016-03-29 15:10:50 +02:00
Stephane Nicoll c752fac5c0 Expose load-on-startup for Jersey
This commit adds a `spring.jersey.filter.load-on-startup` property used to
customize the startup priority of the Jersey servlet.

Closes gh-5100
2016-03-29 14:18:18 +02:00
Stephane Nicoll 928f2dfc91 Sanitize keys with 'token' by default
This commit updates `Sanitizer` to sanitize by default a key containing
`token`.

Closes gh-5462
2016-03-29 13:28:13 +02:00
Stephane Nicoll 1e0873c86e Polish contribution
Closes gh-5498
2016-03-29 12:55:35 +02:00
Eddú Meléndez 4912b989a5 Add useAlwaysMessageFormat configuration key
Allow to configure the `useAlwaysMessageFormat` attribute of
`MessageSource` via configuration.

Closes gh-5483
2016-03-29 12:50:39 +02:00