Commit Graph

637 Commits (d6bd120b2c4230acb101c424a0e5ba8aa4b40b82)

Author SHA1 Message Date
Dimitri c605675b7a Fix wrong class reference
Closes gh-4551
9 years ago
Stephane Nicoll 96ca3e0c0f Polish
Add missing documentation

See gh-4220
9 years ago
Phillip Webb 2118242e00 Polish 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
zhanhb 299d0653ed Fix default value of MongoDB port in doc
Closes gh-4212
9 years ago
Spring Buildmaster 2b38a861e3 Next Development Version 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
Andy Wilkinson d33d068fae Upgrade to Tomcat 8.0.28 and test support for SSL config from classpath
Prior to 8.0.28 Tomcat required the key store and trust store (if any)
to be available directly on the filesystem, i.e. classpath: resources
would not work. Tomcat 8.0.28 removed this limitation.

This commit updates to Tomcat 8.0.28, updates the tests to verify
the new Tomcat capability and removes the obsolete documentation of
the restriction.

Closes gh-4048
9 years ago
Stephane Nicoll 8978f54cc3 Use spring.velocity.charset for template encoding
Previously `spring.velocity.charset` only controlled the output encoding
with the templates being loaded with the default encoding. We now
consistently set the same value for both the input and output encodings.

It is still possible to override it to a different value using
`spring.velocity.properties.input.encoding`

Closes gh-3994
9 years ago
Spring Buildmaster 9409c49c10 Next development version 9 years ago
Stephane Nicoll 6393569d42 Polish Externalized Configuration section
Closes gh-3823
9 years ago
Andy Wilkinson a2f4c1cc4a Add support for configuring allowSessionOverride via the environment
This commit adds support for using the environment to configure the
Freemarker and Velocity view resolvers to allow session overrides.

Closes gh-3410
9 years ago
Stephane Nicoll f88d548de0 Fix typo
Closes gh-3700
9 years ago
Andy Wilkinson 6d3660531b Don't set text color of <code> elements when they're beneath an <a>
Closes gh-3583
9 years ago
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
10 years ago
Spring Buildmaster 7ce391db4f Next development version 10 years ago
Stephane Nicoll 982b81c675 Fix datasource metrics doc
The maximum and minimum number of connections are no metrics so these
are not exposed. Fix the doc that stated the contrary.

Fixes gh-3319
10 years ago
Andy Wilkinson 01ba0f7571 Make RemoteIpValve's protocolHeaderHttpsValue configurable via the env
Closes gh-3289
10 years ago
Stephane Nicoll 5f2ffdb9e2 Update SnakeYAML link
Closes gh-3302
10 years ago
Artur Mkrtchyan d6e24a15de Update `logging.path` documentation sample
Update appendix example to use the more common `/var/log` folder rather
than `/var/logs`.

Fixes gh-3225
10 years ago
Andy Wilkinson 0253f21f2f Update the link to Bitronix's documentation
Closes gh-3207
10 years ago
Stephane Nicoll 01ba732a73 Consistent use of "=" for property key
Closes gh-3218
10 years ago
Stephane Nicoll 7fc9c2afdf Fix indent 10 years ago
Stephane Nicoll e16f5d03ab Add reference to Mustache to documentation
Closes gh-3121
10 years ago
izeye c7103bf2a4 Add missing slash
`endpoints.jolokia.path` requires the path to start with a slash.

Closes gh-2864
10 years ago
Spring Buildmaster 5d81c87b43 Next Development Version 10 years ago
Josh Thornhill 10f7031e46 Fix typo in documentation
Closes gh-3077
10 years ago
Phil Parker eb92dfbb3b Fix link to Groovy documentation
Closes gh-3054
10 years ago
Stephane Nicoll 160f2d341f Fix Gzip filter properties
Fix `excludeAgentPatterns`, `excludePaths` and `excludePathPatterns`
properties. Introduce `excludedMimeTypes` property.

Fixes gh-3042
10 years ago
Joe Kutner dbe310b806 Update Heroku deployment documentation
Closes gh-3000
10 years ago
yinheli ef49ced12a Polish Gradle example for using Undertow
Closes gh-2896
10 years ago
Andy Wilkinson bc27a8aa6e Show different Gradle repository config for snapshots vs releases
Closes gh-2838
10 years ago
izeye 68ed4dec9b Polish production ready features documentation
Closes gh-2832
10 years ago
izeye b8a45d9117 Fix typo in deployment documentation
Closes gh-2836
10 years ago
Kamil Szymanski 88d03b76e9 Fix Groovy templates ViewResolver class name and id in How-to docs
Closes gh-2846
10 years ago
Stephane Nicoll 0f14210937 Polish documentation 10 years ago
Phillip Webb dd19dd70c5 Update relaxed binding documentation sample
Include getters and setters with the sample class.

Fixes gh-2813
10 years ago
izeye d8f45ab6ca Document MultipartProperties
Closes gh-2779
10 years ago
Andy Wilkinson fa4562f408 Polishing: spaces -> tabs 10 years ago
Andy Wilkinson 212520fa15 Add a property to disable auto-configuration of GzipFilter
Closes gh-2776
10 years ago
Stephane Nicoll adaf175273 Clarified the naming scheme for starters
Initial update to the documentation to mention how a 3rd party starter
should be named. The current doc sends a completely inconsistent message
to what we actually intend.

See gh-2537
10 years ago
Spring Buildmaster e03c11dda8 Next development version 10 years ago
Phillip Webb 495a79c324 Document logging properties with @PropertySource
Add a note to the logging documentation to point out a potential gotcha.

Fixes gh-2709
10 years ago
Phillip Webb 441beee2fa Merge branch '1.1.x' into 1.2.x 10 years ago
Marcin Zajączkowski cbf82c4793 Fix typo in gradle plugin documentation
(cherry-picked from commit 99f1c7b)
10 years ago
Andy Wilkinson 0b61457d40 Merge branch '1.1.x' into 1.2.x 10 years ago
Andy Wilkinson 617b859842 Reinstate chapter titles in the PDF version of the reference guide
Closes gh-2723
10 years ago
Phillip Webb 90bff0b603 Fix outdated RandomAccessJarFile documentation
Fixes gh-2598
10 years ago
Phillip Webb 7c9ab5ced2 Minor documentation polish 10 years ago
Marcel Overdijk c0c67f2593 Update doc
Add note about escaping Spring property placeholders when using Gradle
automatic expansion.

Closes gh-2695
10 years ago