Commit Graph

7692 Commits (56146f0ea01661acc1cc3bc1d9e99285e31d6e50)
 

Author SHA1 Message Date
Andy Wilkinson a19eeaf91d DevTools should only shut down single, auto-configured DataSource
Previously, there were two problems with DevTools’ DataSource
auto-configuration:

1. It did not tolerate a context with multiple DataSources
2. It would attempt to shut down a DataSource that had not been created
   by DataSourceAutoConfiguration and, therefore, where we could not be
   sure of its configuration.

This commit updates DevToolsDataSourceAutoConfiguration so that it backs
off unless the context contains DataSourceProperties and a single
DataSource created by DataSourceAutoConfiguration. This ensures that it
can safely use DataSourceProperties to get the DataSource’s
driver class name and accurately determine if it’s an in-memory or
external database. Shutdown is only called for an in-memory database.

Closes gh-5540
9 years ago
Stephane Nicoll 59f5e14b5f Merge pull request #5731 from izeye/polish-20160419
* pr/5731:
  Remove duplicate words
9 years ago
Johnny Lim 61b47079a4 Remove duplicate words
Closes gh-5731
9 years ago
Stephane Nicoll 6ebc8d213d Merge pull request #5727 from jmnarloch/string-builder
* pr/5727:
  Replacing StringBuffer with lock-free StringBuilder
9 years ago
Jakub Narloch 64989ae192 Replacing StringBuffer with lock-free StringBuilder
Closes gh-5727
9 years ago
Andy Wilkinson 1da9e4d80a Merge branch '1.3.x' 9 years ago
Andy Wilkinson 432969e61e Correct documented spring.factories key for management context config
Closes gh-5664
9 years ago
Andy Wilkinson 6d4083a718 Merge branch '1.3.x' 9 years ago
Andy Wilkinson a4d7a77547 Apply spring.thymeleaf.cache to auto-configured ThymeleafViewResolver
Previously, spring.thymeleaf.cache was only applied to auto-configured
TemplateResolver. This commit also applies the propery to the
auto-configured ThymeleafViewResolver.

Closes gh-5395
9 years ago
Andy Wilkinson 13c01376b0 Merge branch '1.3.x' 9 years ago
Andy Wilkinson 9210029109 Record trace with response status of 500 following unhandled exception
Previously, if the filter chain threw an unhandled exception,
WebRequestTraceFilter would record a trace with a response status of
200. This occurred because response.getStatus() would return 200 as
the container had not yet caught the exception and mapped it to an
error response.

This commit updates WebRequestTraceFilter to align its behaviour with
MetricsFilter. It now assumes that the response status will be a 500
and only updates that to the status of the response if the call to the
filter chain returns successfully.

To avoid making a breaking change to the signature of the protected
enhanceTrace method, an HttpServletResponseWrapper is used to include
the correct status in the trace.

Closes gh-5331
9 years ago
Andy Wilkinson b9d7a39693 Update sample-parent-context following changes to integration starter
See gh-5528
9 years ago
Andy Wilkinson a2489b01aa Merge branch '1.3.x' 9 years ago
Andy Wilkinson 2e54078083 Tolerate possible null Flyway MigrationVersion when using Flyway 4.0
Flyway 4.0 provides support for repeatable migrations that do not
have a version. When such a migration has been performed,
MigrationInfo.getMigrationVersion() will return null and, previously,
FlywayEndpoint would fail with an NPE.

This commit updates FlywayEndpoint to use null as the version when
MigrationInfo.getMigrationVersion() returns null.

Closes gh-5700
9 years ago
Andy Wilkinson c068285586 Streamline Integration Starter and add Java DSL to it
This commit streamlines the Integration Starter by removing the file
http, ip, and stream modules as they are not always used by a majority
of apps that use Spring Integration and can also pull in other, unwanted
dependencies.

Additionally, a dependency on spring-integration-java-dsl has been
added. This makes it easy for users to configure Spring Integration
using Java configuration (the recommended approach), rather than via
XML. The Integration sample has been updated to use the DSL. Further
improvements could be made once the sample is using Java 8.

Closes gh-5528
9 years ago
Andy Wilkinson e4324a5c77 Polishing
Make RunProcessKiller final
9 years ago
Andy Wilkinson 310be23ad5 Registered shutdown hook to kill JVM forked by spring-boot:run
Previously, a JVM that was forked by spring-boot:run could be orphaned
when the parent process (the Maven build) was terminated in an IDE. Note
that this doesn’t happen when spring-boot:run is invoked from a shell.

This commits add a shutdown hook that registered when RunMojo forks the
JVM. The shutdown hook attempts to kill the forked JVM’s RunProcess
rather than relying on the death of the parent process being sufficient
to also kill the child.

Closes gh-5815
9 years ago
Andy Wilkinson 9a8e46952c Add dependency management for org.seleniumhq.selenium:selenium-java
Closes gh-5721
9 years ago
Stephane Nicoll 2591abee55 Merge pull request #5714 from izeye/polish-201417
* pr/5714:
  Polish
9 years ago
Johnny Lim 6d48ee9593 Polish
Closes gh-5714
9 years ago
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
9 years ago
Stephane Nicoll 786004e297 Fix build 9 years ago
Stephane Nicoll 03fff6df79 Polish
See gh-5706
9 years ago
Stephane Nicoll ae9e9bc045 Merge pull request #5708 from vpavic/gh-5698
* pr/5708:
  Remove JMS transport from Spring WS starter
9 years ago
Vedran Pavic b75d7039e1 Remove JMS transport from Spring WS starter
Closes gh-5708
9 years ago
Phillip Webb cf41512e66 Don't throw checked exceptions from Assert classes
Fixes gh-5709
9 years ago
Phillip Webb 5881c9c74f Polish 9 years ago
Andy Wilkinson 43256ee7c9 Merge branch '1.3.x' 9 years ago
Andy Wilkinson b554894bb4 Polishing 9 years ago
Andy Wilkinson 06c1dd87c9 Fix spring-boot-sample-test pom following Selenium changes in 35270e9 9 years ago
Andy Wilkinson 1fbd43bdf0 Tolerate jar files with no manifest in ChangeableUrls
Closes gh-5704
9 years ago
Stephane Nicoll cc0fc07c0e Move `shell.*` to `management.shell.*`
This commit moves the `shell` namespace to `management.shell`

Closes gh-5703
9 years ago
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
9 years ago
Andy Wilkinson 35270e939f Update dependency management for Selenium and its HTMLUnit Driver
Closes gh-5705
9 years ago
Stephane Nicoll f364d713dd Add `LocalManagementPort`
Add an annotation alias for the actual management port, similar to what
was done for the main context (`LocalServerPort`).

See gh-5548
9 years ago
Andy Wilkinson a4f77ae275 Provide dependency management for com.fasterxml:classmate
Hibernate and Hibernate Validator depend on different versions of
Classmate (1.1 and 1.3 respectively). This can lead to build failures
when Maven's Enforcer plugin is used.

This commit adds dependency management for Classmate which ensures
that a consistent version is used and convergence errors are avoided.

Closes gh-5697
9 years ago
Andy Wilkinson eb8b77e350 Improve analysis of failures due to NoUniqueBeanDefinitionException
Closes gh-5683
9 years ago
Stephane Nicoll 2e81f87f10 Merge pull request #5645 from vpavic/gh-1045
* pr/5645:
  Polish auto-configuration for Spring Web Services
  Add auto-configuration for Spring Web Services
9 years ago
Stephane Nicoll f561d9d9d8 Polish auto-configuration for Spring Web Services
Closes gh-5645
9 years ago
Vedran Pavic a7b3a913c2 Add auto-configuration for Spring Web Services
Closes gh-1045
9 years ago
Stephane Nicoll 9da54a4579 Merge pull request #5689 from izeye/dependencies
* pr/5689:
  Additional jackson dependency management
9 years ago
Johnny Lim 3f28542f23 Additional jackson dependency management
This commit provide dependency management for
`jackson-dataformat-cbor` and `jackson-dataformat-smile`

Closes gh-5689
9 years ago
Stephane Nicoll e4106e592a Polish doc
Closes gh-5675
9 years ago
Stephane Nicoll 5bc290eac6 Improve Hibernate 5 specific documentation
Closes gh-5694
9 years ago
Stephane Nicoll 88e6185bc8 Merge pull request #5684 from Shredder121/signature-version
* pr/5684:
  Upgrade animal sniffer Java signature
9 years ago
Ruben Dijkstra 9a1db18172 Upgrade animal sniffer Java signature
Closes gh-5684
9 years ago
Stephane Nicoll a7e8a5cc46 Merge pull request #5691 from izeye/prefix
* pr/5691:
  Polish
9 years ago
Johnny Lim c154990024 Polish
Closes gh-5691
9 years ago
Phillip Webb 85d2f2950a Use RegEx for test to make Windows happy 9 years ago
Phillip Webb 21bc166c95 Rename Import*AutoConfiguration classes
Rename Import*AutoConfiguration classes to AutoConfigure*.

Fixes gh-5692
9 years ago