Commit Graph

1215 Commits (6de4cabc293366f07af37cc57baf4c38a00b1b60)

Author SHA1 Message Date
Stephane Nicoll abf9d66edf Document how to configure access logging
Also, the section on `server.*` configuration was poor so this commit
also improves it.

Closes gh-4989
9 years ago
Kazuki Shimizu 4e177eeed7 Auto-configure ResourceUrlEncodingFilter when using FreeMarker
Closes gh-5126
9 years ago
Stephane Nicoll b82fb5e5a6 Merge branch '1.3.x' 9 years ago
Stephane Nicoll 6710c05750 Document `DeprecatedConfigurationProperty`
Closes gh-5118
9 years ago
Stephane Nicoll ebffa493e4 Harmonize ConfigurationProperties bean name
When `@EnableConfigurationProperties` is defined, Spring Boot
automatically registers a bean in the context for each class specified
on the annotation. Previously, the name of the bean only included the
prefix which leads to conflict if two different classes use the same
prefix.

This commit changes the bean name structure to be <prefix>-<fqn> where
prefix is the prefix used on the annotation and <fqn> the fully qualified
name of the target class.

Closes gh-4395
9 years ago
Stephane Nicoll a27176807f Polish contribution
Closes gh-4188
9 years ago
Phillip Webb 8b4d801dd6 Add support for AssertJ
Add AssertJ as a managed dependency and also include it in
spring-boot-starter-test. Also provide a simple adapter class to allow
Hamcrest matchers to be used as AssertJ Conditions.

Fixes gh-5048
9 years ago
Stephane Nicoll 34d87df425 Clarify use of the `spring.datasource` prefix
Previously, Spring Boot mapped both `DataSourceProperties` and the actual
`DataSource` implementation to the same prefix. This results in a huge
amount of keys in the `spring.datasource` namespace  with no way to
identify those that are valid for the pooled data source in use.

This commit maps the four pooled data sources we support in four isolated
namespace, keeping `spring.datasource` only for the common settings.

These are `spring.datasource.tomcat`, `spring.datasource.hikari`,
`spring.datasource.dbcp` and `spring.datasource.dbcp2` for the Tomcat,
Hikari, Commons DBCP and Commons DBCP2 implementations respectively.

Closes gh-2183
9 years ago
Johnny Lim 46540de694 Fix typos
Closes gh-5067
9 years ago
Stephane Nicoll f5edd53d86 Merge branch '1.3.x' 9 years ago
Stephane Nicoll 6ea74501e7 Clarify registration of ApplicationListener
Spring Boot fires event very early in the application lifecycle and we
should make crystal clear that a regular `@Bean` registration cannot be
used to register a listener on them.

Closes gh-5061
9 years ago
Stephane Nicoll b01194799a Merge branch '1.3.x' 9 years ago
Vedran Pavic 93de0d7dc0 Improve systemd service documentation
Closes gh-5041
9 years ago
Stephane Nicoll b02073b455 Polish 9 years ago
Stephane Nicoll 3562026e9a Polish contribution
Closes gh-4574
9 years ago
Stephane Nicoll 1a4ee0d207 Apply default filtering to profile-specific files
Upgrade the `spring-boot-starter-parent` to also filter profile-specific
configuration files.

Closes gh-4856
9 years ago
Stephane Nicoll e293008c3f Rename redis starter to spring-boot-starter-data-redis
Closes gh-1033
9 years ago
Stephane Nicoll bead239448 Remove support for Log4j
Apache Log4j 1.x is EOL and has now been replaced by log4j 2. This commit
removes the deprecated support for Log4j 1.x

See gh-4905
9 years ago
Phillip Webb fbaf209240 Move master to 1.4.0.BUILD-SNAPSHOT 9 years ago
Johnny Lim 9a31e02806 Polish
Closes gh-5013
9 years ago
Spring Buildmaster 504d3e97ba Next development version 9 years ago
Andy Wilkinson 36133d93fe Fix incorrect header depth in the documentation 9 years ago
Andy Wilkinson 854cacdb4f Fix useStartStopDaemon in launch script and allow config via conf file
Commit 5a1ee6eb added support for disabling use of start-stop-daemon
via a placeholder in the default launch script. Unfortunately, that
placeholder was subsequently broken in 81a47639.

This commit reinstates the placeholder and adds tests to verify that all
of the placeholders in the launch script can be replaced and that they
have the required default values. Furthermore, it also allows the use of
start-stop-daemon to be configured via USE_START_STOP_DAEMON in an
app’s .conf file. This allows the configuration to be changed after the
app has been built.

Closes gh-4985
9 years ago
Stephane Nicoll ea5195c8a6 Better document how DataSource is bound to the env
Closes gh-4971
9 years ago
Robert Kapala 9de13446c4 Update inconsistent documentation
Closes gh-4987
9 years ago
Andy Wilkinson 5e5542f09c Describe the ordering of spring.config.location in the documentation
Closes gh-4964
9 years ago
Brian Kelly 0f2c25c4b8 Clarify location for Flyway callback scripts
Closes gh-4947
9 years ago
Andy Wilkinson d1b3522227 Provide some guidlines on securing an app that's symlinked into init.d
Closes gh-4935
9 years ago
Andy Wilkinson 97c5a1b3aa Merge branch '1.2.x' 9 years ago
Andy Wilkinson 2f2bba4d26 Fix docs for using YAML to configure Log4J 2
Previously, the documentation stated that jackson-dataformat-yaml was
the only required dependency. This is incorrect. jackson-databind is
also required.

Closes gh-4924
9 years ago
Stephane Nicoll 6b4e4e652a Clarify annotation processor config with AspectJ
Closes gh-4847
9 years ago
Andy Wilkinson 6117b6c5c8 Consistent use of tabs for indentation in pom files 9 years ago
Andy Wilkinson e4e9a71753 Merge branch '1.2.x' 9 years ago
Andy Wilkinson 8410e545b5 Upgrade copyright headers for 2016 9 years ago
Stephane Nicoll d8384c52df Add a reference to start.spring.io 9 years ago
Kazuki Shimizu 908c9562e5 Fix invalid port number in doc
Closes gh-4867
9 years ago
Stephane Nicoll a87a1f053f Polish documentation
Clarify that "spring.config.*" properties doesn't work in configuration
files.

Closes gh-4838
9 years ago
Spring Buildmaster 8db59059a5 Next Development Version 9 years ago
Stephane Nicoll bb736e255b Fix SNAPSHOT version 9 years ago
Phillip Webb 506ee897f3 Document how to configure root logging level
Fixes gh-2872
9 years ago
Phillip Webb 91c801d6fe Add how-to log to file without console section
Fixes gh-4388
9 years ago
Phillip Webb 528fcf3d0b Refine server.server-header documentation
Fixes gh-4461
9 years ago
Phillip Webb 5e84bfd91b Merge branch '1.2.x' 9 years ago
Phillip Webb ce2a68276c Add ServletContext initialization documentation
Update the documentation to include a section about ServletContext
initialization with embedded servlet containers. This update is to
primarily highlight that `WebApplicationInitializers` and Servlet 3.0+
`ServletContainerInitializers` are not called.

Fixes gh-4643
9 years ago
Andy Wilkinson 860a9b94ea Add the docs endpoint to the table of Actuator endpoints
Closes gh-4597
9 years ago
Phillip Webb 5a1ee6ebe8 Allow easy opt-out of using start-stop-daemon
Allow users to easily opt-opt of using the start-stop-daemon in the
launch script. This may be required on distros that include older
versions.

Fixes gh-4732
9 years ago
Andy Wilkinson 08720b4612 Document need to avoid Logback placeholder format in logging properties
Closes gh-4731
9 years ago
Stephane Nicoll 35388b6d95 Clarify usage of Devtools with build plugins
Closes gh-4756
9 years ago
Eddú Meléndez 1b81d9f0b5 Add support for server.server-header property
Add a `server.server-header` property which can be used to override the
`server` header usually sent back automatically by Tomcat/Jetty or
Undertow.

See https://www.owasp.org/index.php/Securing_tomcat for background.

Fixes gh-4461
Closes gh-4504
9 years ago
Johnny Lim 4fbc6d810a Polish docs
Closes gh-4768
9 years ago
Phillip Webb 0489a3b4de Polish 9 years ago
Stephane Nicoll 59cb5cf8d9 Merge branch '1.2.x'
# Conflicts:
#	spring-boot-actuator/src/main/resources/META-INF/additional-spring-configuration-metadata.json
#	spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
9 years ago
Stephane Nicoll ce2346b087 Reintroduce endpoints.metrics.filter.enabled
Commit 8c14009 removed the endpoints.metrics.filter.enabled property so
that endpoints.metrics.enabled is used for both disabling the endpoint
and the servlet filter that records interactions.

This was an unfortunate decision as it was no longer possible to only
disable the servlet filter. The endpoints.metrics.filter.enabled property
has therefore been restored.

Closes gh-4365
9 years ago
Stephane Nicoll cbfdfb463e Fix indent
See gh-4712
9 years ago
Stephane Nicoll d4545b4d7f Add reference to nonheap metrics
See gh-4712
9 years ago
Stephane Nicoll 2d003a698f Revert 5464c65
See gh-4709
9 years ago
Stephane Nicoll 5464c65ca8 Polish contribution
Use the same value as we do.
9 years ago
Johnny Lim 12a921c200 Polish docs
Closes gh-4709
9 years ago
Johnny Lim ec7fed1ecc Polish
Closes gh-4677
9 years ago
Andy Wilkinson dc9405676a Reword the description of how to trigger a restart
See gh-4679
9 years ago
Andy Wilkinson 7d2ea8fb75 Document project names that are excluded from triggering a restart
Closes gh-4673
9 years ago
Andy Wilkinson 4581853bcc Clarify documentation on how to trigger a restart with Dev Tools
Closes gh-4679
9 years ago
cornelcreanga@yahoo.com 1e9d4a22c2 Document how to use Actuator with Jersey
Closes gh-4577
9 years ago
Yunkun Huang 3f9a2aa145 Document randomPort attribute on WebIntegrationTest
Closes gh-4548
9 years ago
Andy Wilkinson c003efc666 Document new initInfoChkconfig property supported by launch.script
See gh-4564
9 years ago
Vedran Pavic 884cae6f8d Add support for using ${application.title} in startup banners
This commit introduces a new property, application.title, that can
be used in a banner. Its value is resolved from the application
manifest's Implementation-Title attribute.

Closes gh-4603
9 years ago
Andy Wilkinson 524a32879f Allow security filter's dispatcher types to be configured via env
This commit adds a new property, security.filter-dispatcher-types
that can be used to configure the dispatcher types of Spring
Security's filter chain. The default remains unchanged.

Closes gh-4505
9 years ago
Andy Wilkinson f25a5e3b77 Improve documentation of color-coded console output
This commit documents the color converter, the explicit colors and
styles that is supports, and the implicit colors used for each log
level.

 Closes gh-4592
9 years ago
Stephane Nicoll 1ec40ed666 Polish 9 years ago
Stephane Nicoll 5cdd874d55 Document `@AutoconfigureOrder`
Closes gh-4546
9 years ago
Stephane Nicoll e78ddc903e Polish 9 years ago
Kazuki Shimizu b5bb184766 Fix typo in reference doc
Closes gh-4635
9 years ago
Stephane Nicoll 754642e0cf Document HealthIndicator naming convention
Closes gh-4602
9 years ago
Stephane Nicoll 43b8e65eee Add dedicated section for `spring.main.banner-mode`
One of the options of the new `banner-mode` property is `off`. YAML maps
`off` to `false` and since we are exposing the method from the
`SpringApplication` public class we can't change the signature to accept
a `String` and do the conversion ourselves.

This commit adds a dedicated section in the guide to warn users about
that particular situation. Adding quotes around the value prevents the
conversion.

Closes gh-4600
9 years ago
Stephane Nicoll 77190f126a Create dedicated section for property conversion
See gh-4604
9 years ago
Stephane Nicoll e57244d8bc Merge branch '1.2.x' 9 years ago
Dimitri c605675b7a Fix wrong class reference
Closes gh-4551
9 years ago
Johnny Lim 8ec00c35bf Polish
Closes gh-4572
9 years ago
Vedran Pavic fc868155ff Fix incorrect default value for executable flag
Closes gh-4561
9 years ago
Stephane Nicoll 6146817ba3 Polish 9 years ago
Stephane Nicoll d4a7c09b4e Polish 9 years ago
Stephane Nicoll 169fd53976 Fix typo
Closes gh-4515
9 years ago
Spring Buildmaster 3f6f57a80e Next Development Version 9 years ago
NersesAM 732658af89 Update documentation with new Jackson 2.6 feature
Update the "How To" section with a new Jackson value that was added in
2.6.

Closes gh-4491
9 years ago
Phillip Webb 05698e18e4 Polish 9 years ago
Phillip Webb 9a666d3366 Improve devtools documentation
Clarify known limitations and document how to use the
`META-INF/spring-devtools.properties` file.

Fixes gh-4235
Closes gh-3316
9 years ago
Stephane Nicoll b83368a503 Fix case for MockMvc
Closes gh-4459
9 years ago
Eddú Meléndez 41300c35ab Add timeout configuration for CRaSH
Closes gh-4325
9 years ago
Stephane Nicoll 0c8d302a98 Polish
See gh-4448
9 years ago
Stephane Nicoll 2ac18a33d5 Add a note to define what triggers a Devtools change
Closes gh-4453
9 years ago
Eddú Meléndez 066533de7e Add `spring.mvc.static-path-pattern` property
Add a `spring.mvc.static-path-pattern` property which can be used to
configure the path pattern used to serve static resources.

Fixes gh-4444
Closes gh-4448
9 years ago
Johnny Lim 4d9111606b Polish docs
Closes gh-4446
9 years ago
cornelcreanga@yahoo.com 190b0d4fe9 Add Cassandra username/password properties
Allow Cassandra credentials to be specified using properties.

Fixes gh-4431
Closes gh-4432
9 years ago
Johnny Lim 4c1398148b Polish docs
Closes gh-4433
9 years ago
Tommy Ludwig d8247657a0 Auto-configure CassandraHealthIndicator
Add auto-configuration for the CassandraHealthIndicator. Also update
the implementation to use CassandraOperations rather than
CassandraAdminOperations.

Closes gh-4409
9 years ago
Bohuslav Burghardt 88cf65427f Make OPTIONS/TRACE request handling configurable
Add properties to WebMvcProperties allowing control of if TRACE/OPTIONS
requests should go through the regular dispatching chain.

Closes gh-4300
9 years ago
Johnny Lim c87370085b Polish 9 years ago
Phillip Webb 8c642bec74 Support global endpoint.sensitive override
Add support for an `endpoint.sensitive` property that can be used to
override the endpoint `sensitive` default.

Fixes gh-4419
9 years ago
Vedran Pavic a0c696b17b Allow security AuditListener overrides
Introduce `AbstractAuthenticationAuditListener` and
`AbstractAuthorizationAuditListener` classes so that users can
extended them to replace the auto-configured defaults.

Closes gh-4406
9 years ago
Stephane Nicoll bd8521c1ab Polish contribution
Closes gh-4356
9 years ago
Stephane Nicoll cce498b530 Merge branch '1.2.x'
# Conflicts:
#	spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
9 years ago
Stephane Nicoll 96ca3e0c0f Polish
Add missing documentation

See gh-4220
9 years ago
Phillip Webb c94cb1f3d1 Skip BeanInfo class search by default
Set `CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME` by
default to improve startup performance. The `spring.beaninfo.ignore`
property can be set in `application.properties` if BeanInfo classes
should be searched.

Fixes gh-4390
9 years ago
Phillip Webb 6c2ea4648f Polish 9 years ago
Phillip Webb fd1cbed51c Merge branch 1.2.x 9 years ago
Phillip Webb 2118242e00 Polish 9 years ago
Dave Syer cfb12fc7c2 Clarify how to switch off security autoconfiguration
The fact that the web security and the authentication manager are
controlled separately should hopefully now be clearer.

Fixes gh-3292
9 years ago
Dave Syer f3a2c1f4ac More clarification in metrics export docs 9 years ago
Dave Syer 40f3bed54b Catch up open tsdb docs 9 years ago
Stephane Nicoll 986275c73d Order configuration properties group in Appendix
Create a set of core groups to gather properties logically: core, web,
security, data, integration, actuator and devtools.

In each of them, groups are ordered against their lexical order.

Closes gh-4344
9 years ago
Vedran Pavic 718ea5f78b Update systemd service documentation
- update script with valid exit status to ensure service stops cleanly
- clarify unused customization variables

Closes gh-4334
9 years ago
Andy Wilkinson 0c1efa473e Update documentation on how to configure the main class with Gradle
In 1.3, our Gradle plugin no longer automatically applies the
application plugin. This affects the default options that are
available for explicitly configuring a project's main class. This
commit updates the documentation accordingly.

Closes gh-3768
9 years ago
Dave Syer ba7d12c697 Clarify application.properties example
The syntax was a bit tortured. This should clarify things and also
de-emphasise the "production" use case for the file system
properties file (we want to be cloud native don't we?).
9 years ago
Dave Syer 1f675c026f Add support for inline JSON in SPRING_APPLICATION_JSON
User can supply inline JSON as an env var (SPRING_APPLICATION_JSON)
or System property (spring.application.json).

Fixes gh-4239
9 years ago
Stephane Nicoll fd2db51da7 Consistently document default and example values
Previously, the "Common application properties" appendix had no
consistent use of a configuration key value. It could just as well be
the default value or an example.

We now always document the default value after the "=" sign and
eventually add an example with the phrasing "For instance".

The keys have also been reordered so that they follow a natural (i.e.
lexical) order.

Closes gh-3230
Closes gh-3160
Closes gh-3155
Closes gh-3153
9 years ago
Stephane Nicoll 6491eafc4a Polish doc
`ConfigFileEnvironmentPostProcessor` was renamed to
`ConfigFileApplicationListener`.

See gh-4258
9 years ago
Tommy Ludwig 2516dc033f Fix documentation example
Previously, the nested private static class would cause an error at
startup stating that it was not accessible when trying to bind the
property from the environment. The nested class should be public.

Closes gh-4323
9 years ago
Johnny Lim e2a8fc461c Polish docs
Closes gh-4328
9 years ago
Andy Wilkinson 8ed472d6f9 Update logging listener to use normal stack trace ordering by default
Previously, LoggingApplicationListener used %rEx as the default
exception conversion word. This would result in the nested causes
being logging in reverse order, i.e. the most deeply nested cause
would be logged first.

This commit updates the default to be %wEx and adds a test to verify
the default behaviour.

Closes gh-4247
9 years ago
Stephane Nicoll 17cf24110e Add reference to samples
Closes gh-1248
9 years ago
Axel Fontaine d25b7ca46b Add documentation for Boxfuse and Amazon Web Services deployment 9 years ago
Vedran Pavic acf6f2193b Fix HTTP health endpoint access restrictions table layout
Closes gh-4304
9 years ago
d10xa 1720941d47 Fix typo in executable jar format appendix
Closes gh-4314
9 years ago
Stephane Nicoll fdf75d3ede Document Actuator's CORS support
Closes gh-3010
9 years ago
Stephane Nicoll b74c10ba3a Document FilterRegistrationBeans specific default
If a filter is registered in `web.xml` with no `dispatcher` element, the
spec states that it should have the `REQUEST` dispatcher type only.

As we are adding more dispatcher types by default, it can be surprising
for users migrating from a `web.xml` based  web app. The documentation
has now an explicit note about this.

Closes gh-2689
9 years ago
Stephane Nicoll 04fa7e4d27 Add dependency management section in the doc
Better describe what Spring Boot offers with regards to dependency
management and how it translates in Maven and Gradle.

Closes gh-2580
Closes gh-3695
9 years ago
Stephane Nicoll 9af17555c0 Polish 9 years ago
Stephane Nicoll 0e99ba9004 Polish contribution
I don't think we want to keep this on a single line.

Closes gh-4309
9 years ago
Johnny Lim 396bea22b9 Polish docs
See gh-4309
9 years ago
Andy Wilkinson 0061e84a59 Document DevTools' requirement for shutdown hook to be registered
Closes gh-4153
9 years ago
Vedran Pavic 59d2ae598b Update documentation to clarify systemd service user
Closes gh-4293
9 years ago
Stephane Nicoll 9d9538e558 Fix section of Windows service section
As the Windows service support is not related at all to the executable
jar support it needs to be in a separate location.
9 years ago
Johnny Lim e477598cc6 Fix broken links
Closes gh-4272
9 years ago
Stephane Nicoll c0b8974bc0 Merge branch '1.2.x' 9 years ago
Stephane Nicoll 7c1bf58262 Filter duplicate
Improve the initial PR to include a filtering of the profiles that were
already enabled via the `spring.profiles.active` property.

Also add more tests to prove that each profile is loaded only once
now.

Closes gh-4273
9 years ago
Stephane Nicoll f43817dd27 Fix broken link
Closes gh-4268
9 years ago
Stephane Nicoll c086a6a7ff Polish doc 9 years ago
Phillip Webb a7a2aa0461 Add "INIT INFO" property substitutions
Update the "INIT INFO section" of `launch.script` to include
`initInfoProvides`, `initInfoShortDescription` and `initInfoDescription`
property substitutions.

The Maven plugin has been updated to populate substitutions with
`${project.artifactId}`, `${project.name}` and `${project.description}`.

Fixes gh-4245
9 years ago
Stephane Nicoll cc3b7ca6f6 Add missing configuration keys for groovy template 9 years ago
Stephane Nicoll eb2650976f Fix typo 9 years ago
Stephane Nicoll 168fc2f61f Disable addResources by default
Flip the default value of `addResources` for both the Maven and Gradle
plugins. This effectively turns off static resources reloading and, more
importantly, the pruning of duplicate resources from the target
directory.

As devetools is our mainstram solution for such feature, the documantion
has been updated to reflect that.

Closes gh-4227
9 years ago
Stephane Nicoll bc0eb996ff Polish contribution
Closes gh-4202
9 years ago
Johnny Lim 330073ed17 Fix broken link
Closes gh-4243
9 years ago
zhanhb 299d0653ed Fix default value of MongoDB port in doc
Closes gh-4212
9 years ago
Stephane Nicoll 32b32b7142 Notify the use of logback specific system property
Logback documentation explains how to initialize the logging system and
namely how the `logback.configurationFile` system property can be used to
specify the configuration file to use.

Spring Boot has an abstraction on top of that. A user can define the
`logging.path` property regardless of the logging infrastructure it is
using.

Users following the logback documentation can be confused at first so
we're not logging a warning when we found out that the logback specific
property has been specified.

Closes gh-2382
9 years ago
Tommy Ludwig e4230e61d7 Make the name of the log file produced by launch script configurable
Previously, the launch script would always use a file named
<appname>.log to capture the application's console output. This commit
adds a variable, LOG_FILENAME, for specifying the file name defaulting
to <appname>.log.

Fixes gh-4194
9 years ago
Marco Vermeulen 673bde0bf7 Update all GVM references to SDKMAN!
Closes gh-4225
9 years ago
Spring Buildmaster 2b38a861e3 Next Development Version 9 years ago
Andy Wilkinson f8cffd745c Merge branch '1.2.x' 9 years ago
Andy Wilkinson 35a3f4a1c0 Reinstate the use of shutdown hooks in the tests
Commit adf2c44b was an attempt to prevent HSQLDB from throwing an
exception when the JVM exits. This was achieved by disabling the
application context’s shutdown hook in the tests. This had the unwanted
side effect of causing tests’ application contexts not to be closed. The
reported symptom was that @Destroy methods were no longer being invoked.
We need a different solution to the problem.

The exception was:

Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: attempt to connect while db opening /closing
    at org.hsqldb.error.Error.error(Unknown Source)
    at org.hsqldb.error.Error.error(Unknown Source)
    at org.hsqldb.error.Error.error(Unknown Source)
    at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
    at org.hsqldb.DatabaseManager.newSession(Unknown Source)
    ... 23 common frames omitted

I originally thought this was due to a race between the application
context’s shutdown hook and HSQLDB’s shutdown hook, however HSQLDB
doesn’t use a shutdown hook. I believe that the problem is due to 
an HSQLDB database being created with shutdown=true in its URL, similar
to the problem described here [1]. This will shut down the database when
the last connection to it is closed, however the shutdown will happen
asynchronously. If the JVM then runs the application context’s shutdown
hook, EmbeddedDatabaseFactory will attempt to connect to the database to
execute the SHUTDOWN command. This executes synchronously but will race
with the asynchronous shutdown that’s executing as a result of
shutdown=true in the JDBC url and the last connection to the database
being closed. 

This commit reinstates the use of application context shutdown hooks in
the tests, and updates the documentation to recommend that, if a user
manually configures the URL for their embedded database, they do so 
in such a way that the database doesn’t shutdown automatically, thereby
allowing the shutdown to be driven by application context close.

Closes gh-4208

[1] http://sourceforge.net/p/hsqldb/bugs/1400/
9 years ago