Commit Graph

2385 Commits

Author SHA1 Message Date
Andy Wilkinson 02de6e3531 Remove signal handling race condition from RunProcess
Fixes #1061
2014-06-09 21:29:33 +01:00
Andy Wilkinson 0b7836b447 Merge in starter and sample for Spring Web Services
Closes #1055
2014-06-09 21:17:32 +01:00
Andy Wilkinson b585afe537 Polishing 2014-06-09 21:17:19 +01:00
Maciej Walkowiak e40320a8ed Added integration test for Spring Web Services Sample project 2014-06-09 21:17:19 +01:00
Maciej Walkowiak 95a6ce9e48 Spring Web Services Starter
- upgraded Spring WS to 2.2.0.RELEASE
- replaced default MVC DispatcherServlet with MessageDispatcherServlet
- migrated XML based config with nww Spring WS Java config

Fixes: gh-412
2014-06-09 21:17:19 +01:00
Marten Deinum e2a449da97 Spring Web Services Starter and Sample Project
Fixes gh-412
2014-06-09 21:17:19 +01:00
Phillip Webb b5d267ca89 Polish 2014-06-09 12:33:49 -07:00
Phillip Webb 80b7e60c01 Merge pull request #1060 from akhikhl/master
* pull1060:
  Improve Jetty third-party integration support
2014-06-09 11:47:28 -07:00
Andrey Hihlovskiy 216e93fc5c Improve Jetty third-party integration support
Make JettyEmbeddedServletContainerFactory more useful for third-parties
by providing protected configureWebAppContext, addDefaultServlet and
addJspServlet methods that sub-classes can call.

Fixes gh-1056
2014-06-09 11:42:28 -07:00
Phillip Webb 2ad4c47d18 Polish 2014-06-09 11:33:17 -07:00
Phillip Webb 21029d2323 Polish disable repository documentation 2014-06-09 11:31:38 -07:00
Dave Syer dcb17a7cb5 Enhance @Conditionals for JMX autconfig
Fixes gh-1059
2014-06-09 17:47:24 +01:00
Dave Syer bc85f388aa Add test for gh-1058 2014-06-09 17:05:12 +01:00
Andy Wilkinson f47b40f683 Use spring-boot-version for dependency versions in Gradle Jetty example 2014-06-09 16:45:40 +01:00
Andy Wilkinson db8a9ec597 Polish documentation of @GrabMetadata 2014-06-09 16:42:57 +01:00
Christian Dupuis 5d25588d7b Make properties to sanitize configurable in EnvironmentEndpoint.
Add "key" to default keys that will be sanitized. fixes #1027
2014-06-09 15:07:36 +02:00
Roy Clarkson 1a32a6a06b Fix issues with DeviceDelegatingViewResolverAutoConfiguration
- Log to the correct class
- Set Auto-configure after Thymeleaf hint on main class instead of
  internal static class
- Use 'thymeleafViewResolver' bean name instead of class for
  conditional bean checks
- Fix class name in properties documentation

Fixes gh-1052
2014-06-09 14:05:46 +01:00
Javier Gayoso b7d94d1364 Optimized login form - delegated CSRF token creation to thymeleaf
Also added additional test to verify behaviour.

Fixes gh-1039
2014-06-09 10:56:01 +01:00
Dave Syer aa30fdba18 Add MBeanServer @Bean in case it is needed
Anywhere that an MBeanServer is needed it should be
created @Conditionally, so that user can exclude the
JmxAutoConfiguration and still get the other JMX
behaviours automatically.
2014-06-09 10:21:49 +01:00
Dave Syer 1a5c4f88b4 Fix compilation error 2014-06-09 10:10:34 +01:00
Dave Syer 39a94428d3 Add @Conditionals to permit JPA/Mongo mixed usage
I decided to go with both approaches (make the autoconfig for
repositories @ConditionalOnMissingBean(RepositoryFactoryBeanSupport),
so the first one wins; and also make them conditional on
spring.data.*.repositories.enabled=true. The ordering problem
is still there really (it's not defined which repositories will
be created by the autoconfig), so if a user is going to have
2 repository implementations on the classpath, he is going to
have to either choose one to disable, or manualy @Enable* the
other one.

Fixes gh-1042
2014-06-09 09:48:40 +01:00
Phillip Webb 83694a09b3 Add missing settings.xml file
See gh-1047
2014-06-09 01:08:50 -07:00
Phillip Webb c07dd17f93 Add starters to prepare build 2014-06-09 01:00:25 -07:00
Phillip Webb 639f0e12a6 Merge branch 'gh-1047' 2014-06-09 00:53:21 -07:00
Phillip Webb 933c6b3a43 Remove superfluous commons-logging excludes
Update all starter POMs to remove commons-logging dependencies that are
not longer required when using the Spring Boot Gradle plugin.

Mainly reverts code from 196f92bd42

See gh-1047
2014-06-09 00:41:30 -07:00
Phillip Webb cef7ad7798 Support automatic exclude rules with Gradle
Update the Spring Boot Gradle plugin to automatically apply exclude
rules to dependencies.

See gh-1047
2014-06-09 00:41:22 -07:00
Phillip Webb addc1f77bd Support transitive excludes in dependency-tools
Update spring-boot-dependency-tools to support transitive excludes.
Transitive excludes are useful with Gradle which considers each
dependency independently (see GRADLE-3061).

Transitive excludes are supported by parsing the dependency-tree file
from spring-boot-versions.

See gh-1047
2014-06-09 00:37:55 -07:00
Phillip Webb 28090e8a5f Generate and attach dependency-tree
Update spring-boot-versions to generate a dependency-tree file and
attach it as an artifact. The file is generated by creating a temporary
POM and calling the invoker plugin.

The spring-boot-versions POM now depends on all spring-boot-starter-*
POMs to ensure that they have been installed before the dependency
tree is processes.

See gh-1047
2014-06-09 00:22:09 -07:00
Phillip Webb 9b982dabdb Restore dependency-tools API compatibility
Refactor dependency-tools to restore API compatibility with Spring
Boot 1.0. This should reduce reflection hacks that tools such as Gretty
would otherwise have to make.

See gh-1035
2014-06-08 23:58:02 -07:00
Phillip Webb f1d216a33b Polish social appendix settings examples 2014-06-08 23:58:02 -07:00
Phillip Webb 2852f7422e Polish Spring Mobile Auto-configuration
Update Spring Mobile support with the following changes:
- Apply source formatting
- User lowercase property prefixes
- Use dashed notation when accessing properties
- Inline some constants

See gh-1049
2014-06-08 23:57:55 -07:00
Dave Syer 6902f2ac97 Revert on bean condition for mongo repositories 2014-06-07 14:30:33 +01:00
Dave Syer dd176ccacf Fix broken test (ordering) 2014-06-07 14:16:36 +01:00
Dave Syer 376d6fb9bc Add test for mixed Mongo/Jpa repositories 2014-06-07 13:26:03 +01:00
Dave Syer b75578d99c Adjust order of property sources
@PropertySources *can* and should be added in the slot
after the application.properties (code that is part of the
application should have lower precedence than external
configuration).

Fixes gh-1044
2014-06-07 11:10:51 +01:00
Dave Syer e81e94924c Fix Devc->Devic
(Leaving the docs changes for later)

Fixes gh-1049
2014-06-07 08:54:40 +01:00
Phillip Webb 918536ae79 Merge pull request #1050 from habuma/master
* pull1050:
  Add ProviderSignInController for Spring Social
2014-06-06 23:13:07 -07:00
Craig Walls f2351f1ece Add ProviderSignInController for Spring Social
Update SocialWebAutoConfiguration to add a ProviderSignInController.
Also fix default UserIdSource.

Fixes gh-1050
2014-06-06 23:12:51 -07:00
Roy Clarkson 8f32b87c81 Improve Spring Mobile Auto-configuration
- Upgrade Spring Mobile dependency to 1.1.2
- Rename SitePreferenceAutoConfiguration "enabled" property
- Add Auto-configuration for LiteDeviceDelegatingViewResolver
- Update docs

Fixes gh-1049
2014-06-07 07:01:36 +01:00
Phillip Webb e891aa3525 Polish 2014-06-06 22:58:43 -07:00
Phillip Webb 93aefa8537 Polish Flyway and Liquibase
Extract common "depends on" functionality to a new
EntityManagerFactoryDependsOnPostProcessor class.

Apply consistent formatting.

Fix issue with Flyway location detection.
2014-06-06 22:56:44 -07:00
Phillip Webb 4a6e66fe8b Polish ConditionalOnJava
Apply formating and simplify the condition implementation. Delegate
to Spring's JdkVersion class to obtain the running version.
2014-06-06 22:56:44 -07:00
Phillip Webb 2df4ead4d6 Convert README.md -> README.adoc 2014-06-06 22:56:44 -07:00
Phillip Webb 77d5453af2 Add gmavenplus-plugin to parent POM 2014-06-06 22:56:44 -07:00
Phillip Webb 62d2b4136a Polish documentation
Apply consistent styling and edit a few section for clarity.
2014-06-06 22:56:44 -07:00
Phillip Webb e032b673a2 Polish DataSourceInitialization code
Rename a few classes and methods relating to DataSourceInitialization
and update the DataSourceInitializedPublisher to check for Hibernate
settings.
2014-06-06 22:56:44 -07:00
Dave Syer 38af1c2eb3 Remove @EnableAutoConfiguration from autoconfigure tests
It was doing scary things (like starting elasticsearch, hornetq etc).
There's still an outstanding question about why the context was
not being properly closed in such a scenario (maybe one of those
embedded servers lurking on a background thread?).

See gh-1034
2014-06-07 06:30:15 +01:00
Andy Wilkinson f1b7544672 Fix duplicate id in the docs 2014-06-06 19:55:39 +01:00
Dave Syer 09200361de Align expectations of various JMX configurations
They all want to create an MBeanServer and when that happens
user sees no MBeans, or sometimes just one set (Spring Core,
Spring Integration or Spring Boot). To harmonise them we
create a @Bean of type MBeanServer and link to it in the
other autoconfigs

Fixes gh-1046
2014-06-06 17:52:14 +01:00
Oliver Gierke 6f98c63ac0 Add auto-configuration for Jackson's JodaTime and JSR-310 modules
We now register the Jackson JodaTime module with Jackson ObjectMappers
if it is on the classpath. We also register the JSR-310 module if it's
on the classpath and the application is running Java 8 or better.

Extracted the Jackson specific configuration previously residing in
HttpMessageConvertersAutoConfiguration into a JacksonAutoConfiguration
class.

Added the Jackson JSR-310 module as a managed Boot dependency.
2014-06-06 13:22:12 +01:00