Commit Graph

17218 Commits (24dec4807f1ae5004f5e10a4d7c7950ecb4a1bb9)
 

Author SHA1 Message Date
Andy Wilkinson 24dec4807f Merge branch '2.0.x' 7 years ago
Andy Wilkinson fd125b4a4a Remove assumption that a file URI can be turned into a File
Closes gh-13493
7 years ago
Stephane Nicoll 4c172eb6cd Merge branch '2.0.x' 7 years ago
Stephane Nicoll f2cc6e2ef2 Fix link of RESTEasy repository
Closes gh-13538
7 years ago
Stephane Nicoll c594768640 Remove wro4j starter reference
This starter does not look maintained anymore and there is an
alternative that we also reference and has support for Spring Boot 2.
7 years ago
Stephane Nicoll 8858c88a4c Remove GraphQL starter reference
This starter does not look maintained anymore and there is a fork of it
that we also reference and has support for Spring Boot 2.
7 years ago
Andy Wilkinson a612ba1b11 Merge branch '2.0.x' 7 years ago
Andy Wilkinson 48c5e70ac8 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 29e87257b4 Provide Gradle example for using Log4j2
Closes gh-12729
7 years ago
Andy Wilkinson eb6898314a Merge branch '2.0.x' 7 years ago
Andy Wilkinson 2624748911 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 8a0f0354df Disable Log4J2's shutdown hook by default
Log4J2 enables its shutdown hook by default. When the JVM is exiting,
this creates a race between logging that happens during the
application context being closed and Log4J2 being shut down such that
the logging is lost.

This commit updates SpringBootConfigurationFactory so that it
produces a custom sub-class of DefaultConfiguration that disables the
shutdown hook by default. In addition to solving the problem described
above, this also aligns the Log4J2 logging system with the
logging.register-shutdown-hook property which defaults to false.

Closes gh-11360
7 years ago
Stephane Nicoll 56a7aa552f Polish 7 years ago
Johnny Lim bb60edaca6 Polish
Closes gh-13534
7 years ago
Stephane Nicoll d4d169277d Merge branch '2.0.x' 7 years ago
Stephane Nicoll 7683d346e3 Merge pull request #13534 from izeye:polish-20180621
* pr/13534:
  Polish
7 years ago
Johnny Lim b9ea0fd5a7 Polish
See gh-13534
7 years ago
Stephane Nicoll 9e9e746554 Merge branch '1.5.x' into 2.0.x 7 years ago
Stephane Nicoll 36605b3b49 Polish
See gh-13534
7 years ago
Andy Wilkinson b18da6a11c Merge branch '2.0.x' 7 years ago
Andy Wilkinson 9b4680c3fd Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 9f7106c778 Polish 7 years ago
Andy Wilkinson 52716b2dbe Merge branch '2.0.x' 7 years ago
Andy Wilkinson e6222ce6d3 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 6cc0968b8d Polish 7 years ago
Andy Wilkinson 3ea7c2e003 Merge branch '2.0.x' 7 years ago
Andy Wilkinson 4fc0a33094 Merge branch '1.5.x' into 2.0.x 7 years ago
Phillip Webb 2bb7a430cf Clean up access logging threads when Undertow is stopped
Closes gh-12742
7 years ago
Andy Wilkinson c90f589906 Merge branch '2.0.x' 7 years ago
Andy Wilkinson e2d6280d83 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson e7b03f7ca3 Don't auto-configure MultipartConfigElement when using Commons FileUpload
Previously, when a user had declared a custom MultipartResolver bean
that is a CommonsMultipartResolver, part resolution would fail. The
failure was occurring as the servlet container was consuming the parts
before CommonsMultipartResolver had a chance to read them. This was
happening because a MultipartConfigElement was being auto-configured.

This commit updates the multipart auto-configuration so that a
MultipartConfigElement is not auto-configured when there is a
CommonsMultipartResolver bean in the context.

Closes gh-7735
7 years ago
Andy Wilkinson 7571f10ae3 Merge branch '2.0.x' 7 years ago
Andy Wilkinson e730382718 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 92f62043d4 Fix placeholder support in <springProfile>'s name attribute
Closes gh-13450
7 years ago
Andy Wilkinson 20546024d3 Merge branch '2.0.x' 7 years ago
Andy Wilkinson e1774672af Prefer servlet to reactive when Jersey and WebFlux are both available
Closes gh-13521
7 years ago
Stephane Nicoll 8b35d06cf6 Share RetryTemplate infrastructure for Rabbit listener and template
Closes gh-13529
7 years ago
Stephane Nicoll 65cc7c72f4 Harmonize JNDI lookups to enable resourceRef
This commit makes sure that JMS and Mail JNDI lookups behave the same
way as DataSource JNDI lookups by enabling the "resourceRef" flag.

This will make sure to add "java:comp/env" to the lookup if the JNDI
name doesn't already contain it. If that name does not exist, a second
attempt to the original name will be issued automatically.

Closes gh-12803
7 years ago
Andy Wilkinson c12f8298e6 Merge branch '2.0.x' 7 years ago
Andy Wilkinson 814e90805e Merge branch '1.5.x' into 2.0.x 7 years ago
Stephane Nicoll 3fdb2b3c85 Merge branch '2.0.x' 7 years ago
Stephane Nicoll 864a6b3e91 Merge branch '1.5.x' into 2.0.x 7 years ago
Andy Wilkinson 6081db5c34 Make ZipHeaderInputStream read sub 5 byte entries correctly
Closes gh-13525
7 years ago
Stephane Nicoll 99f993bc82 Add tests for JndiConnectionFactoryAutoConfiguration
Closes gh-13526
7 years ago
Stephane Nicoll 9d3ba14686 Fix conditions for CachingConnectionFactory support
Closes gh-12161
7 years ago
Andy Wilkinson 12eafc84b0 Merge branch '2.0.x' 7 years ago
Andy Wilkinson 497902de4e Only bridge JUL into SLF4J when JUL has not be customized
Previously, Slf4jLoggingSystem would install SLF4JBridgeHandler into
JUL but would only remove a single root handler that was a
ConsoleHandler. If there were was than one root handler or the single
root handler was of a different type, they would not be uninstalled.
When deploying an application to Tomcat, this led to duplicate log
messages appearing in Tomcat’s console output and to logging from
other application or Tomcat itself being routed into an
application-specific log file enabled using the logging.file
configuration property.

A secondary, related problem was that LogbackLoggingSystem installs a
LevelChangePropagator so that Logback’s log level configuration is
propagated into JUL. This meant that an individual Boot app with
custom log level configuration could change the log levels of Tomcat
itself and of any other applications that had been deployed to Tomcat
and use JUL.

This commit updates both Slf4jLoggingSystem and LogbackLoggingSystem
so that they only change JUL’s configuration if it hasn’t already been
customized. The configuration is deemed to have not been customised if
there’s a single root handler and its a console handler.

Closes gh-13470
7 years ago
Brian Clozel cc894ce4f2 Fix Micrometer tag providers after HttpStatus changes
Since SPR-16898, `HttpStatus.toString()` has changed and we should
instead rely on `HttpStatus.value()` to get the HTTP status number.
7 years ago
Stephane Nicoll 8365d53554 Add support for JMS session caching
This commit adds support for CachingConnectionFactory for both Artemis
and ActiveMQ. If connection pooling is not enabled explicitly, sessions,
producers and consumers are cached. The factory can be further
customized, including reverting to the raw ConnectionFactory, using the
`spring.jms.*` namespace.

Closes gh-12161
7 years ago
Stephane Nicoll 0ef54a79b1 Add support for connection pooling with Artemis
This commit expands ActiveMQ's connection pooling to artemis. The same
pooling features are now shared by the two brokers and a
PooledConnectionFactory can be auto-configured when the necessary jar is
present.

Closes gh-13523
7 years ago