Commit Graph

2562 Commits (3cee783d7b4aa3a4015df072745039c77fae2672)

Author SHA1 Message Date
Spring Buildmaster 67fa63d0e3 Next Development Version 6 years ago
Spring Buildmaster ca3a864565 Next Development Version 6 years ago
Phillip Webb 2ff74b1559 Reformat code with spring-javaformat 0.0.8
See gh-16418
6 years ago
Spring Operator bbbfee6480 Use HTTPS for external links wherever possible
See gh-16318
6 years ago
Andy Wilkinson 94633cfd89 Merge branch '1.4.x' into 1.5.x 6 years ago
Andy Wilkinson 5bc43ae76b Polish "Use HTTPS for external links wherever possible"
See gh-16317
6 years ago
Spring Operator 189eeefbb1 Use HTTPS for external links wherever possible
See gh-16317
6 years ago
Andy Wilkinson baec3d6e8e Merge branch '1.3.x' into 1.4.x 6 years ago
Andy Wilkinson 9be96c49e2 Polish "Use HTTPS for external links wherever possible"
See gh-16316
6 years ago
Spring Operator e401d02ced Use HTTPS for external links wherever possible
See gh-16316
6 years ago
Andy Wilkinson 79c53de30c Merge branch '1.4.x' into 1.5.x 6 years ago
Spring Operator 4e2739eceb Use HTTPS for external links from XML files where possible
See gh-16312
6 years ago
Andy Wilkinson 46d6fb0e1c Merge branch '1.3.x' into 1.4.x 6 years ago
Spring Operator adc2462689 Use HTTPS for external links from XML files where possible
See gh-16311
6 years ago
Andy Wilkinson 4b6bddd476 Merge branch '1.4.x' into 1.5.x 6 years ago
Andy Wilkinson 6920c39349 Merge branch '1.3.x' into 1.4.x 6 years ago
Andy Wilkinson 0e009ef047 Use HTTPS to link to the Apache license 6 years ago
Spring Operator 991ba550d3 Update build and setup configuration to use HTTPS
See gh-16245
6 years ago
Spring Operator e2837843e1 Update build and setup configuration to use HTTPS
See gh-16244
6 years ago
Spring Operator 7c314122f7 Update build and setup configuration to use HTTPS
See gh-16243
6 years ago
Andy Wilkinson 821ee0cf83 Ensure that @Bean methods are only declared on @Configuration classes
Closes gh-16190
6 years ago
Spring Buildmaster b04710d744 Next development version 6 years ago
Spring Buildmaster 9bb64a3493 Next Development Version 6 years ago
Spring Buildmaster 4d24feb443 Next development version 6 years ago
Andy Wilkinson a91f9b6f17 Document that Cassandra policy classes must have a default constructor
Closes gh-14461
6 years ago
Madhura Bhave b5815b71d5 Fix formatting 6 years ago
Madhura Bhave 5a3d3c105b Fix javadoc 6 years ago
Spring Buildmaster 46df506b0a Next development version 6 years ago
Andy Wilkinson 0bd7c8afba Align server.tomcat.internal-proxies default with RemoteIPValve's default
Closes gh-13798
6 years ago
Andy Wilkinson 124705080b Tolerate context root redirect not being configurable on Tomcat 7
Closes gh-13821
6 years ago
Andy Wilkinson db903c2176 Align defaults in ServerProperties with defaults at runtime
Closes gh-13821
6 years ago
Stephane Nicoll 7d54eda6f1 Fix tests 6 years ago
Phillip Webb a50686b404 Surface additional rabbit SSL factory properties
Add `validate-server-certificate` and `verify-hostname` properties to
`spring.rabbitmq.ssl` to allow additional SSL configuration.

Closes gh-14259
6 years ago
Phillip Webb 9543fcf44d Upgrade to spring-javaformat 0.0.6 6 years ago
Phillip Webb 17de1571f5 Update copyright year 6 years ago
Phillip Webb a085541d26 Polish 6 years ago
Spring Buildmaster 73bf744cb0 Next Development Version 6 years ago
Stephane Nicoll 7865233b16 Fix Flyway filesystem prefix location check
Co-authored-by: Andy Bell <andyrbell@gmail.com>

Closes gh-13863
6 years ago
Johnny Lim 0fd4e40e6e Add null guards for getBeanDefinition() in BeanTypeRegistry
Closes gh-13818
6 years ago
Andy Wilkinson 6dc14af92d Update view of bean types when an override is detected
Previously, when a bean was overridden and its type changes,
BeanTypeRegistry could be left with a stale view of the bean's type.
This would lead to incorrect bean condition evaluation as conditions
would match or not match based on the bean's old type.

This commit updates the type registry to refresh its view of a bean's
type when its definition changes.

Closes gh-13588
6 years ago
Andy Wilkinson 73a08dd668 Avoid overriding beans and ensure import order is used for DataSource
During processing of a configuration class, the class's complete
hierarchy is processed and during the processing of each class its
member classes are processed. Previously, each pool-specific
inner-class of DataSourceConfiguration extended the abstract outer
class. This meant that when the import from
DataSourceAutoConfiguration.PooledDataSourceConfiguration caused the
first pool-specific inner-class to be  processed,
DataSourceConfiguration would be processed as it was the inner-class's
superclass. In turn all of DataSourceConfiguration's member classes
would then be processed. This caused the first import (of
DataSourceConfiguration.Tomcat) to trigger processing of all of the
other pool-specific inner-classes in whatever order they were found
rather than them being processed in the order in which they are
imported by DataSourceAutoConfiguration.PooledDataSourceConfiguration.

Another part of the problem was that none of the pool-specific
inner-classes were conditional on a missing DataSource bean. This
meant that, when multiple pools were on the classpath, each class
after the first would override the previous class's definition of the
DataSource bean.

This commit updates each of the pool-specific inner-classes so that
they no longer extend DataSourceConfiguration. This ensures that
the inner classes are processed in the order defined in the import
on PooledDataSourceConfiguration. Each of the classes has also been
annotated with @ConditionalOnMissingBean(DataSource.class). This
prevents the DataSource bean definition from being overridden and
ensures that the order of precedence for the pool that will be used
is as defined in the import.

Closes gh-13737
6 years ago
Andy Wilkinson b1d8cc55fc Polish "Fix JSP availability check when not running as a packaged war"
Closes gh-12859
7 years ago
Mandap 82465cf435 Fix JSP availability check when not running as a packaged war
See gh-12859
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
Stephane Nicoll 99f993bc82 Add tests for JndiConnectionFactoryAutoConfiguration
Closes gh-13526
7 years ago
Spring Buildmaster 36b8639853 Next Development Version 7 years ago
Brian Clozel 1b81f6f4c0 Fix security test with changes in SPR-16836
This commit replaces the use of a GET method by a DELETE method for
testing that the HiddenHttpMethodFilter is ordered before the security
filter. With SPR-16836 changes, only PUT DELETE and PATCH are now
allowed.
7 years ago
Stephane Nicoll c67aedd8bc Polish "Retrieve javax.cache.CacheManager using Bean ClassLoader"
Closes gh-13338
7 years ago
Martin Theiss 76b9d0d243 Retrieve javax.cache.CacheManager using Bean ClassLoader
This commit uses the bean's classloader to retrieve the CacheManager to
prevent issues with off-heap serialization.

See gh-13338
7 years ago
Stephane Nicoll f745f20c8c Clarify scope of JNDI-based MailSenderAutoConfiguration
This commit separates the auto-configuration of JavaMailSender in two
distinct configuration: one based on existing Session available on JNDI
and the other one based on properties configuration.

This clarifies the auto-configuration report and the fact that the JNDI
variant overrides any Session-related properties that would have been
set in the environment

Closes gh-13026
7 years ago