Commit Graph

6164 Commits

Author SHA1 Message Date
Stephane Nicoll 9af17555c0 Polish 2015-10-27 09:20:16 +01:00
Stephane Nicoll 0f550dfce7 Merge pull request #4309 from izeye/polish-20151027
* pr/4309:
  Polish contribution
  Polish docs
2015-10-27 08:58:37 +01:00
Stephane Nicoll 0e99ba9004 Polish contribution
I don't think we want to keep this on a single line.

Closes gh-4309
2015-10-27 08:58:24 +01:00
Johnny Lim 396bea22b9 Polish docs
See gh-4309
2015-10-27 08:58:12 +01:00
Stephane Nicoll 2431767c81 Register the LoggingSystem in the ApplicationContext
Closes gh-4159
2015-10-26 15:01:54 +01:00
Andy Wilkinson 05a2b53527 Add information about /liquibase and /flyway to Actuator's docs
Closes gh-3438
2015-10-26 11:38:18 +00:00
Andy Wilkinson 0061e84a59 Document DevTools' requirement for shutdown hook to be registered
Closes gh-4153
2015-10-26 11:04:54 +00:00
Vedran Pavic 59d2ae598b Update documentation to clarify systemd service user
Closes gh-4293
2015-10-26 10:57:45 +00:00
Andy Wilkinson aa3313cfc5 Update NamePatternFilter to detect regular expression character class
Previously, NamePatternFilter looked for “*”, “$”, “^”, or “+” when
trying to identify a string as being a regular expression. This meant
that it missed the use of a character class ([a-z], for example). This
commit adds “[“} to the list of characters that are considered to be
part of a regular expression.

Closes gh-4233
2015-10-26 10:56:16 +00:00
Andy Wilkinson 89df4946f7 Use a context-relative URL for Dev Tools sample’s CSS 2015-10-26 10:09:50 +00:00
Stephane Nicoll 651ab38f18 Add Maven wrapper
Closes gh-4193
2015-10-26 11:00:13 +01:00
Andy Wilkinson 409a485c91 Use the correct version of Spring Security snapshots
See gh-4263
2015-10-26 09:34:11 +00:00
Andy Wilkinson 4ba6b67990 Start building against Spring Security 4.0.3 snapshots
Closes gh-4263
2015-10-26 09:31:07 +00:00
Andy Wilkinson 89bc5754f8 Start building against Spring Framework 4.2.3 snapshots
Closes gh-4257
2015-10-26 09:28:51 +00:00
Stephane Nicoll 40c2c6db08 Clean remote url if necessary
Make sure that the remote URL does not contain a trailing slash.

Closes gh-4297
2015-10-26 10:28:27 +01:00
Phillip Webb edd3f1eade Revert spring-security-oauth upgrade
It doesn't appear to be in Maven Central and it's breaking the eclipse
setup.
2015-10-24 20:11:17 -07:00
Stephane Nicoll 9d9538e558 Fix section of Windows service section
As the Windows service support is not related at all to the executable
jar support it needs to be in a separate location.
2015-10-23 17:22:56 +02:00
Dave Syer 02523799aa Add release repo to default profile 2015-10-23 10:54:27 +01:00
Dave Syer b5f4e7b376 Update to Spring OAuth 2.0.8 2015-10-23 10:19:17 +01:00
Stephane Nicoll ed841ab5f9 Merge pull request #4272 from izeye/broken-links
* pr/4272:
  Fix broken links
2015-10-22 17:46:05 +02:00
Johnny Lim e477598cc6 Fix broken links
Closes gh-4272
2015-10-22 17:45:35 +02:00
Stephane Nicoll c0b8974bc0 Merge branch '1.2.x' 2015-10-22 17:42:22 +02:00
Stephane Nicoll 7c1bf58262 Filter duplicate
Improve the initial PR to include a filtering of the profiles that were
already enabled via the `spring.profiles.active` property.

Also add more tests to prove that each profile is loaded only once
now.

Closes gh-4273
2015-10-22 17:19:56 +02:00
Dave Syer 06bb6bd1e1 Fix logic affecting files loaded
The problem fixed here is that the Loader keeps track of the profiles it
is going to look at for loading files, but ignores any that were already
active in the Environment if the listener is called initially with
spring.profiles.active not empty.

Closes gh-4261
2015-10-22 16:57:06 +02:00
Stephane Nicoll f43817dd27 Fix broken link
Closes gh-4268
2015-10-22 14:11:30 +02:00
Stephane Nicoll e3e28c538f Merge pull request #4265 from izeye/patch-45
* pr/4265:
  Fix error messages
2015-10-22 09:27:05 +02:00
Johnny Lim a1e210f578 Fix error messages
Closes gh-4265
2015-10-22 09:26:32 +02:00
Stephane Nicoll 84728c44c3 Upgrade to Mysql 5.1.37
Closes gh-4262
2015-10-21 21:32:53 +02:00
Stephane Nicoll 601225027f Merge branch '1.2.x' 2015-10-21 13:59:04 +02:00
Stephane Nicoll 2e2ebeb9fa Allow PORTFILE to always override the file to use
Previously, the `PORTFILE` system property was not checked if the
`EmbeddedServerPortFileWriter` was created using the default constructor.

This had the effect to prevent overriding of the port file when this
listener is created without any file or via `META-INF/spring.factories`.

Closes gh-4254
2015-10-21 13:58:48 +02:00
Stephane Nicoll c086a6a7ff Polish doc 2015-10-21 10:36:11 +02:00
Phillip Webb a7a2aa0461 Add "INIT INFO" property substitutions
Update the "INIT INFO section" of `launch.script` to include
`initInfoProvides`, `initInfoShortDescription` and `initInfoDescription`
property substitutions.

The Maven plugin has been updated to populate substitutions with
`${project.artifactId}`, `${project.name}` and `${project.description}`.

Fixes gh-4245
2015-10-20 17:48:22 -07:00
Phillip Webb fe42ced7ab Fix checkstyle 2015-10-20 17:35:49 -07:00
Phillip Webb ce95e08e6f Merge pull request #4189 from izeye/base64
* pr/4189:
  Replace Base64Encoder with Base64Utils
2015-10-20 16:14:37 -07:00
Johnny Lim 300387d995 Replace Base64Encoder with Base64Utils
Replace the custom Base64Encoder class with Spring's Base64Utils which
since 4.2 can encode bytes using Java 8's encoder, commons-digest or
Java 6's JAX-B encoder.

Closes gh-4189
2015-10-20 16:12:56 -07:00
Phillip Webb fb63e887bb Merge pull request #4242 from izeye/trace-response
* pr/4242:
  Make response headers optional in /trace endpoint
2015-10-20 16:07:04 -07:00
Johnny Lim 71c8a114f1 Make response headers optional in /trace endpoint
Update `WebRequestTraceFilter` so that the response respects the
TraceProperties.Include.RESPONSE enum.

See gh-3948
Closes gh-4242
2015-10-20 16:04:51 -07:00
Phillip Webb eeb407881a Restore "exception first" logging
Effectively revert commit b396d0d2 to restore exception first logging
of exceptions for Logback and Log4j2.

This commit also introduces new extended versions of "whitespace"
padding exception loggers so that source jar information is still
included in the stacktrace.

Fixes gh-4247
2015-10-20 15:33:34 -07:00
Phillip Webb 9be0020f7b Fix package tangle in CLI 2015-10-20 15:00:32 -07:00
Phillip Webb 88cc883e94 Refine RequestContextFilter order
Use an order relative to REQUEST_WRAPPER_FILTER_MAX_ORDER.

Closes gh-2637
2015-10-20 14:46:09 -07:00
Phillip Webb 15fbb8ddf9 Polish 2015-10-20 13:57:21 -07:00
Phillip Webb c2a46b8e3b Polish 2015-10-20 13:53:29 -07:00
Phillip Webb 673b4f6de5 Merge branch '1.2.x' 2015-10-20 13:52:45 -07:00
Phillip Webb cfbac20807 Ensure ErrorControllers work when using AOP
Add a BeanFactoryPostProcessor to set PRESERVE_TARGET_CLASS_ATTRIBUTE
to true on all ErrorController bean definitions. Without this attribute
AOP advice on @Controllers causes ErrorController beans to be created
as JDK proxies (since they implement a single valid looking interface)
and therefore not get found by Spring MVC.

Fixes gh-4236
2015-10-20 13:42:38 -07:00
Stephane Nicoll 6a18fa072f Fix import ordering 2015-10-20 21:25:50 +02:00
Dave Syer 90ddd857f4 Add support for binding to Properties in @ConfigurationProperties
Fixes gh-4250
2015-10-20 15:11:21 -04:00
Andy Wilkinson b76414002a Merge branch '1.2.x' 2015-10-20 18:19:51 +01:00
Andy Wilkinson ee93307402 Align the mime mapping configuration across all three embedded containers
Closes gh-4161
2015-10-20 17:46:01 +01:00
Andy Wilkinson 0862ad7f52 Polishing: remove dead code 2015-10-20 15:28:52 +01:00
Andy Wilkinson 2109559f37 Ensure that, where appropriate, actuator endpoints always produce JSON
Previously, the Actuator’s endpoints did not specify a produces
attribute on their request mappings. With Jackson’s XML binding on the
classpath, this would lead to requests made by a browser receiving
application/xml responses (due to the Accept header indicating that
application/xml is preferred). This was problematic as some of the
response payloads were not legal xml. Problems included XML tags
beginning with ‘\’ or containing ‘#’.

This commit updates the endpoints to specify that they produce
application/json. The environment and metrics endpoints have also been
updated so that always return a JSON object, even when they are
returning a single entry. This consistency avoids problems where
clients may not consider a single scalar value to be legal JSON.

Closes gh-2449
2015-10-20 15:28:52 +01:00