Commit Graph

8312 Commits (a71ad730657cc97b6ab10e38ffe2ce8c3ad7acb7)
 

Author SHA1 Message Date
Phillip Webb a9b98cada5 Allow loading from package names without dots
Update BeanDefinitionLoader to support loading from package names that
do not contain dots.

Prior to this commit `new BeanDefinitionLoader(registry, "somepackage")`
would fail because "somepackage" exists and is a resource but does not
contain valid XML. Somewhat surprisingly the InputStream returned by
the resource actually contains the listing of files in the package.

Fixes gh-6126
9 years ago
Ivan Sopov 1528764194 Fix potential offset errors in BasicJsonParser
Update BasicJsonParser to fix potential exceptions if strings happen
to be empty.

Fixes gh-6136
9 years ago
Phillip Webb ed6f11d60d Polish 9 years ago
Brian Clozel 6dc0ecb182 Add WebMvcRegistrations for custom MVC components
Add `WebMvcRegistrations` which can be used to provide custom
instances of `RequestMappingHandlerMapping`,
`RequestMappingHandlerAdapter` and `ExceptionHandlerExceptionResolver`.
Those instances are then used and processed by the Boot MVC
configuration.

Prior to this commit, developers could provide their custom instances
of MVC infrstructure components such as `RequestMappingHandlerMapping`
and `RequestMappingHandlerAdapter` only by using advanced configuration
strategies. Those advanced configurations involved subclassing
`WebMvcConfigurationSupport` which effectively turns off MVC
auto-configuration in Boot.

Fixes gh-5004
Closes gh-6100
9 years ago
Stephane Nicoll 5250fb127a Fix broken condition
See gh-6041
9 years ago
Stephane Nicoll f9288a3af1 Revert "Polish maven repositories definition"
This commit reverts 62fa602fea

See gh-6031
9 years ago
Stephane Nicoll 6cf878424f Fix SSL cipher configuration with Jetty 9.3
Previously, if a list of ciphers were configured, the default excludes
were still applied. Prior to Jetty 9.3, there were no default exclude but
Jetty 9.3 introduced some and they override the includes.

This commit makes sure that the exclude ciphers are cleared if at least
one cipher is explicitly configured.

Closes gh-6041
9 years ago
Stephane Nicoll 62fa602fea Polish maven repositories definition
Previously, Maven repositories definition was specified in a profile that
is active by default. It means that as soon as any profile is enabled by
the user, said profile is no longer enabled. This has the nasty
consequences of having copy/paste in several places to make sure our own
profiles still have the proper repositories definition.

This commit creates a single "repositories" profile that is always active
unless a given property is explicitely specified. This allows to remove
the duplication and make things more consistent.

Some Gradle-specific repositories were also hard-coded in two modules
without any profile at all, meaning they were polluting the build of
anybody using it. While the impacted modules are gradle specific, that
repository has been shared in the new "repositories" profile as well.

Closes gh-6031
9 years ago
Stephane Nicoll 76cdf2212b Upgrade to Spring Framework 4.3.0.RELEASE
Closes gh-6049
9 years ago
Phillip Webb 57bed2e5f6 Use fully qualified checkstyle class names
Update `checkstyle.xml` to use fully qualified class names. This reduces
the number of warning log messages when running `mvn -X` and should also
be slightly faster.
9 years ago
Phillip Webb f19e261bcf Move AnsiOutputApplicationListenerTests
Move AnsiOutputApplicationListenerTests to the correct package.
9 years ago
Phillip Webb 99c6194e17 Don't use MockitoJUnitRunner
Replace `@RunWith(MockitoJUnitRunner.class)` with direct Mockito
initialization since the running doesn't support parallel test
execution.
9 years ago
Phillip Webb 77f6b4c983 Formatting 9 years ago
Phillip Webb c66da65e23 Refine ApplicationHome detection logic
Update the detection logic used in ApplicationHome to:
- Deal with `!/` elements in URLs so that `BOOT-INF/classes` packaging
  works as expected.
- Use the `start-class` when no explicit source class is provided to
  prevent accidentally picking a home next to a `spring-boot.jar` that
  happens to be on the classpath.
- Ignore search logic when running from a unit test.

Fixes gh-6129
9 years ago
Stephane Nicoll 17dfec7c4e Resume building against Spring Data Hopper snapshots
See gh-6132
9 years ago
Stephane Nicoll 40ff3f420a Upgrade to Spring HATEOAS 0.20.RELEASE
Closes gh-5759
9 years ago
Stephane Nicoll 8ea5524d6a Polish 9 years ago
Stephane Nicoll 72e4064230 Merge branch '1.3.x' 9 years ago
Stephane Nicoll ec4c8bf50d Merge pull request #6125 from vpavic:gh-6124
* pr/6125:
  Update DataSourceBuilder aliases
9 years ago
Vedran Pavic 6dde498b87 Update DataSourceBuilder aliases
This commit adds a `user` alias for the `username` property which permits
the use of `OracleDataSource`.

Closes gh-6124, gh-6027, gh-6125
9 years ago
Brian Clozel 091664078f Split up DispatcherServletConfiguration condition
Prior to this commit, defining a custom `DispatcherServlet` and/or a
`ServletRegistrationBean` with the default name would turn off
completely the `DispatcherServletAutoConfiguration`.

This commit splits this auto-configuration in two parts:

- First, a `DispatcherServlet` is automatically registered if no
instance is already defined with the default name.
- Then, a `ServletRegistrationBean` is registered is registered if a
`DispatcherServlet` instance exists with the default name *and* no
`ServletRegistrationBean` exists with the default name

This allows developers to register manually a `ServletRegistrationBean`
or a `DispatcherServlet` without having to redefine the whole
auto-configuration.

Fixes gh-4893
Closes gh-6108
9 years ago
Phillip Webb d87287fe72 Polish 9 years ago
Phillip Webb 5ab072be9c Polish 9 years ago
Stephane Nicoll 6a291777da Merge pull request #6066 from izeye:polish-20160530
* pr/6066:
  Polish
9 years ago
Johnny Lim 8704e4869d Polish
Closes gh-6066
9 years ago
Phillip Webb 0fa4d2e260 Make SocialAutoConfigurerAdapter/Properties public
Fixes gh-6078
9 years ago
Phillip Webb 454d8581d0 Use defined Locale for BindFailureAnalyzerTests
Update BindFailureAnalyzerTests so that localized messages are not used.

Fixes gh-6106
9 years ago
Dave Syer 6712de586b Merge remote-tracking branch 'origin/1.3.x' 9 years ago
Dave Syer 31fc1cc6f2 Update Spring OAuth to 2.0.10 9 years ago
Stephane Nicoll 483da2615b Merge pull request #6114 from izeye:typo-20160603
* pr/6114:
  Fix typos
9 years ago
Johnny Lim 5de9516255 Fix typos
Closes gh-6114
9 years ago
Andy Wilkinson ce68fdf515 Merge branch '1.3.x' 9 years ago
Andy Wilkinson 1037239efc Upgrade to Dependency Management Plugin 0.5.7.RELEASE
Closes gh-6105
9 years ago
Andy Wilkinson 277ceb7425 Merge branch '1.3.x' 9 years ago
Andy Wilkinson 9bbdbae178 Merge pull request #6056 from Martin Lippert
* gh-6056:
  Check factory method metadata to avoid NPE in devtools condition
9 years ago
Martin Lippert efd541d26b Check factory method metadata to avoid NPE in devtools condition
Closes gh-6056
9 years ago
Andy Wilkinson a3f4b3c704 Merge branch '1.3.x' 9 years ago
Andy Wilkinson f3e9f1e6e3 Polish FileSystemWatcher and improve its thread safety
- Limit shared state between FileSystemWatcher and the watching thread
- Use a private monitor rather than synchronizing on this
- Use a Runnable implementation rather than subclassing Thread
- Synchronize consistently when reading and writing state

Closes gh-6039
9 years ago
Andy Wilkinson 436b58acbf Merge branch '1.3.x' 9 years ago
Andy Wilkinson 3772d9f937 Update JarURLConnection to only require file read permission
Previously, JarURLConnection didn't override getPermission(). This
meant that it required all permissions. This was at odds with the
Oracle JVM's concrete sun.net.www.protocol.jar.JarURLConnection which
overrides getPermission to return a FilePermission with the read
action for the path of the underlying jar.

This commit updates our JarURLConnection to align its behaviour with
sun.net.www.protocol.jar.JarURLConnection.

Closes gh-5411
9 years ago
Andy Wilkinson ac5696e13c Upgrade to Spring AMQP 1.6.0.RELEASE
Closes gh-6099
9 years ago
Andy Wilkinson 9bb1151178 Upgrade to MariaDB Java Client 1.4.5
Closes gh-6098
9 years ago
Andy Wilkinson cde06444e0 Upgrade to Infinispan 8.2.2.Final
closes gh-6097
9 years ago
Andy Wilkinson 9f2a482f91 Upgrade to Jersey 2.23
Closes gh-6096
9 years ago
Andy Wilkinson bd15d41500 Upgrade to Log4j2 2.6
Closes gh-6095
9 years ago
Andy Wilkinson dfaf02b220 Upgrade to Joda Time 2.9.4
Closes gh-6093
9 years ago
Andy Wilkinson 68587f466e Upgrade to Hazelcast 3.6.3
Closes gh-6092
9 years ago
Andy Wilkinson fdd76869ec Upgrade to App Engine API 1.9.38
Closes gh-6091
9 years ago
Andy Wilkinson 54c68f5597 Upgrade to Spring REST Docs 1.1.0.RELEASE
Closes gh-6077
9 years ago
Andy Wilkinson 53061fb8d7 Upgrade to jOOQ 3.8.2
Closes gh-6064
9 years ago