Commit Graph

1853 Commits

Author SHA1 Message Date
Phillip Webb
fca7a8dc96 Enforce Java 1.7 during the release
Add enforcer rules to ensure that only Java 1.7 is used during the
release.

Fixes gh-712
2014-04-23 16:51:02 +01:00
Phillip Webb
f847ed2b1f Remove getEmbeddedServletContainers()
Remove the mutable getEmbeddedServletContainers() Map from
EmbeddedWebApplicationContext and instead use the `namespace` to
distinguish the management container.

The ServerPortInfoApplicationContextInitializer class replaces the
previous TestExecutionListener to exposes port properties (by
listening for EmbeddedServletContainerInitializedEvents).
2014-04-23 15:41:56 +01:00
Phillip Webb
fad5ce45db Polish 2014-04-23 12:35:33 +01:00
Phillip Webb
316cb87583 Create ApplicationPid and remove SystemUtils
Create a new ApplicationPid class to remove the need for SystemUtils
and refactor existing calls.
2014-04-23 12:00:36 +01:00
Dave Syer
b291332cd4 Use CountDownLatch instead of Thread.sleep()
... to wait for ApplicationContext to close in the 3 tests
that we needed to do so.

Fixes gh-664
2014-04-23 10:14:38 +01:00
Dave Syer
3304dd1cc9 Add spring.datasource.separator (default ";")
Fixes gh-715
2014-04-22 17:34:54 +01:00
Dave Syer
34604a9602 Add assertion about non-special resource 2014-04-22 09:25:45 +01:00
Patrick Radtke
80652007b5 RelaxedDataBinder handling for untyped map
Fixes gh-709
2014-04-22 08:48:42 +01:00
Hugo Flambo
a77fee9f18 Fix typo and use *PropertySource* instead *ProperySource*
Fixes gh-705
2014-04-22 08:46:24 +01:00
Dave Syer
f7c16764e6 Add setter for security.user.role
Fixes gh-700
2014-04-21 14:42:34 +01:00
Dave Syer
0aa93036fa Fix secure method configuration global authentication
This fixes a bug in the sample, where the AuthenticationManager it builds
is a local one for the filter chain containing "/login", whereas it was
expecting to override the Boot default, which is "global". The fix is
to extract the authentication configuration out into a
GlobalAuthenticationConfigurerAdapter.

Fixes gh-699
2014-04-20 10:18:04 -07:00
Dave Syer
e4b8e174e8 Add test case for gh-699 2014-04-20 10:00:34 -07:00
Dave Syer
359315568a Clarify handling and binding or YAML lists
The docs related to YAML lists were out of date and
lacked an example making it clear how to bind to them.

See gh-501
2014-04-20 08:30:39 -07:00
Marcel Overdijk
f78f836fc0 Add fixedlocaleresolver based on application property
If the user sets spring.mvc.locale and doesn't provide a @Bean
of type LocaleResolver then a FixedLocaleResolver will be provided.

Fixes gh-697, fixes gh-669
2014-04-19 19:38:51 -07:00
Dave Syer
00b85e8c42 Ensure path starts with "/" in ErrorController
When mapping the ErrorController path to Spring Security it's
important that it starts with "/". This change ensures that is
the case even if the user has omitted the leading "/".

Fixes gh-694
2014-04-19 19:21:45 -07:00
Mattias Severson
506e57663a Relaxed <requireJavaVersion> configuration of the maven-enforcer-plugin
This commit resolves #695 by changing the configuration so that all Java versions from 1.7 and above are allowed.
2014-04-19 10:42:14 +02:00
Dave Syer
0ed1642989 Tweak autoconfigs in websocket support 2014-04-18 13:38:30 -07:00
Dave Syer
ac16aa1757 Add SpringWebsocketCompilerAutoConfiguration
Fixes gh-693
2014-04-18 13:23:01 -07:00
Dave Syer
e72f8fa646 Add test for TestRestTemplate 2014-04-18 13:10:14 -07:00
Dave Syer
4ec059eaa5 Ensure authentication is added to customized request factory
Fixes gh-692
2014-04-18 10:47:39 -07:00
Dave Syer
7401f7c643 Correct impression that DataSource platform is discovered automatically
... it isn't: you have to set spring.datasource.platform
2014-04-18 10:46:16 -07:00
Dave Syer
7b07fe8ce0 Convert remaining samples to use random port
Partial fix for gh-337. See also gh-607 which complements this, but might
conflict on a merge.
2014-04-17 20:29:04 -07:00
Dave Syer
f134e96053 Convert Actuator sample to dynamic ports 2014-04-17 17:36:09 -07:00
Dave Syer
559009b8cf Support for random ports in @IntegrationTest
User can now set up default properties in the Environment using
@IntegrationTest("foo:bar", "x:y") etc. Using "server.port:0" you
can get Tomcat or Jetty to spin up on a random port. We also add
a test listener that populates "local.server.port" with the actual
port the server started on so you can @Value("${local.server.port}")
inject it into the test case.

See gh-607 (this should make the extension of that PR to samples
much easier)
2014-04-17 13:09:25 -07:00
Dave Syer
2d16c59147 Clarify usage of run.arguments with Maven plugin 2014-04-17 04:42:31 -07:00
Dave Syer
0d44e6e0d2 Ensure response is committed after ErrorPageFilter
Otherwise Tomcat will go ahead and uncommit it and handle it again
in the ErrorReportValve (duh!)

Fixes gh-684
2014-04-16 16:29:08 -07:00
Dave Syer
d613cc795e SpringSource->spring-projects 2014-04-16 08:16:54 -07:00
Dave Syer
29d965fdf0 Add new thymeleaf property to docs
See gh-671
2014-04-16 05:12:05 -07:00
Lukasz Kryger
9907e70609 Minor documentation fixes 2014-04-16 10:48:36 +01:00
Andy Wilkinson
283f1b169f Ensure that local file dependencies are packaged by the Gradle plugin
Prior to this commit, a dependency on a local file was not being
packaged by the Gradle plugin. This was a regression from the behaviour
in 0.5.0.M6 caused by the move to using a ResolvedConfiguration and
ResolvedArtifacts (4f677bec) to gain access to an artifact's type so
that non-jar artefacts could be filtered out. Since then, the approach
to filtering has been changed (38585bf3) and access to an artifact's
type is no longer needed.

This commit updates ProjectLibraries to restore its use of a
FileCollection rather than a ResolvedConfiguration when getting hold of
the files in a configuration. This means that the resulting jar will
now include dependencies that aren't resolved, such as those that are
provided as local files. The filtering that is applied to the files
is unaffected by this change and only files that are zip files will be
included.

Fixes #672
2014-04-15 15:44:54 +01:00
Dave Syer
fb29a3c318 Expand Error Handling section in docs a bit
Fixes gh-513
2014-04-15 07:23:41 -07:00
Dave Syer
0b89402240 Add spring.thymeleaf.contentType (defaults to HTML)
User can specify the content type in external properties now, optionally
ommitting the charset (since that is duplicated). If charset is not
appended by user Spring will do it.

Fixes gh-671
2014-04-15 07:10:08 -07:00
Dave Syer
1e0c1d1564 Add support for .yaml file extensions
Apparently yaml.org prefers .yaml, but the internet seems
to be more aligned with .yml, so I guess we should support both
out of the box.

Fixes gh-675
2014-04-15 07:04:05 -07:00
Dave Syer
78f8575850 Special case for deferred start based on Handler type
Fixes gh-673
2014-04-15 06:21:12 -07:00
Jakub Kubrynski
3ebaf11550 Extended documentation for applicaiton pid monitoring 2014-04-11 21:19:18 +02:00
Dave Syer
620d8eb87e Re-order if blocks in RunMojo
Avoids loading a class if not needed, but doesn't seem to solve
any actual problems. I'll leave it in in case it helps later.

Testing gh-648
2014-04-11 16:48:00 +01:00
Andy Wilkinson
24597ae423 Rename identifier in the howto so that it's unique 2014-04-11 10:13:56 +01:00
Dave Syer
59784cc37e Add JAXB mini-example to howto
Fixes gh-646
2014-04-11 07:07:34 +01:00
Dave Syer
383fbe9e71 Remove return keyword from groovy examples in docs
Fixes gh-656
2014-04-11 06:53:08 +01:00
Dave Syer
bc7c6aa40c Print MAVEN_OPTS=-noverify for copy-pasters 2014-04-11 06:53:04 +01:00
Verrol L. Adams
a122f3e0f2 changed 'that can you can' to 'that you can' in Getting Started: 8. Introducing Spring Boot 2014-04-11 06:35:46 +01:00
Lukasz Kryger
0f88f7435f Minor fixes in the docs 2014-04-11 06:34:07 +01:00
Dave Syer
41cdb7b48d Add parent directory creation
Also tidied a few other things up (like not needing
SmartApplicationListener).

Fixes gh-550
2014-04-11 06:33:03 +01:00
Jakub Kubrynski
f6488c7f66 Now after starting application PID file will be created
Fixes gh-550
2014-04-10 16:30:36 +01:00
Dave Syer
533e920fe5 Add enabled flag to RegistrationBean
Default to true but allow user to switch off a @Bean of type
Filter (for example) by wrapping it in a disabled registration.

Fixes gh-655
2014-04-10 10:31:15 +01:00
Lukasz Kryger
10b177fb68 Grammar etc. fixes in the docs
Fixes gh-654
2014-04-10 10:08:45 +01:00
Lukasz Kryger
812c530777 Fixed minor mistakes
* your -> you're
* ask a questions -> ask a question

Fixes gh-653
2014-04-10 10:07:22 +01:00
Dave Syer
65e34a7800 @Controller -> @RestController in README
Fixes gh-652 some more
2014-04-10 10:05:59 +01:00
Dave Syer
c0cf31cfd8 /etc/bash_completion.d -> something else
I preferred /etc/bash_completion.d (since it mirrors the actual
preferred deployment of the scripts on my OS). Maybe the MacBoys
have a different point of view? Anyway the docs now point to the
actual script location.

Fixes gh-651
2014-04-09 22:02:53 +01:00
Dave Syer
966ee879b1 @Controller -> @RestController in docs
Fixes gh-652
2014-04-09 21:59:29 +01:00