Commit Graph

5202 Commits (3d5f562dbade9355468edafa7e9bb5b86898f5c7)
 

Author SHA1 Message Date
Stephane Nicoll 3d5f562dba Merge pull request #3467 from xueyumusic/typo
* pr/3467:
  Fix typo
9 years ago
xueyu 534eb29bde Fix typo
Closes gh-3467
9 years ago
Stephane Nicoll 9340491422 Merge pull request #3465 from izeye/patch-33
* pr/3465:
  Polish toString()
9 years ago
izeye f85f316873 Polish toString()
Closes gh-3465
9 years ago
Stephane Nicoll 3664895f04 Polish 9 years ago
Phillip Webb fd0b1c6332 Merge pull request #3363 from isopov/comnpression-excluded-useragents
* pr/3363:
  Add HTTP compression excludeUserAgents property
9 years ago
Ivan Sopov 5f25080091 Add HTTP compression excludeUserAgents property
Closes gh-3363
9 years ago
Phillip Webb 5e243b28db Merge pull request #3405 from rob-baily/logback-pattern-properties
* pr/3405:
  Support log pattern properties with logback
9 years ago
Rob Baily 177ea459f1 Support log pattern properties with logback
Update AbstractLoggingSystem to pass LoggingInitializationContext to
loadDefaults() method to enable access to the environment.
DefaultLogbackConfiguration now uses this to find log pattern overrides.

Fixes gh-3367
Closes gh-3405
9 years ago
Phillip Webb 1fab23c514 Merge pull request #3461 from meowy/patch-1
* pr/3461:
  Fix typo in jOOQ example code
9 years ago
Melvin Kicchi 3d83c6fcb2 Fix typo in jOOQ example code
Closes gh-3461
9 years ago
Phillip Webb ee3de5f38a Add ApplicationRunner support to CLI
Add ApplicationRunner and ApplicationArguments to the CLI compiler
auto-configuration.

See gh-1990
9 years ago
Stephane Nicoll 1ce418cfdc Fix meta-data for logging.level property 9 years ago
Dave Syer 924b9f9dde Add Maven incantation to make STS 3.7 happy 9 years ago
Dave Syer b2a2c5b168 Add Maven incantation to make STS 3.7 happy 9 years ago
Stephane Nicoll 1348acf3e3 Exclude freemarker from hazelcast
Hazelcast introduced a regression in their dependency management as of
3.5 which brings freemarker. This has unfortunate side effect in a Spring
Boot application since the freemarker auto-configuration kicks in for no
apparent reason when hazelcast is used.

An exclusion has been applied until the issue is fixed in hazelcast.

Closes gh-3418
9 years ago
Stephane Nicoll 8ff8afec7c Add "handle-as" hint provider
Replace the enum provider by a more general purpose provider that can
substitute the type of the property for the purpose of auto-completing
the values.

"handle-as" can be used for enums but for any type that the IDE
understands such as locale, charset, mime-type and Spring's resource
abstraction.

Closes gh-3457
9 years ago
Stephane Nicoll f6f74e1aef Polish 9 years ago
Spring Buildmaster 57f26c6bfc Next development version 9 years ago
Phillip Webb 8280004f80 Fix ClasspathLoggingApplicationListener order
Commit 3de25164 inadvertently caused early debug logging from the
ClasspathLoggingApplicationListener. We now set its order relative
to the LoggingApplicationListener.

See gh-2543
9 years ago
Phillip Webb eeb947b382 Polish docs 9 years ago
Phillip Webb e3b59774c8 Merge branch '1.2.x' 9 years ago
Phillip Webb 4b17f3ceef Formatting 9 years ago
Phillip Webb 67f7079cb2 Formatting 9 years ago
Stephane Nicoll e344eece99 Remove hint for server.tomcat.compression
server.tomcat.compression has been removed in 00d594d so the hint for it
is no longer relevant.
9 years ago
Andy Wilkinson a2d58030dd Merge branch '1.2.x' 9 years ago
Andy Wilkinson 68e54e1d5d Favour entries in source jar over standard libraries when repackaging
When writing a jar, once an entry has been written it will never be
overwritten, i.e. the first write of a given entry will win. Previously,
when repackaging a jar, the existing contents were written followed by
any libraries. This caused a problem when repackaged a WAR file and
a library needed to be unpacked as the existing entry in WEB-INF/lib
would prevent the library with the UNPACK comment from being written.
This was addressed in f761916b by inverting the order so libraries
would take precedence over entries in the source jar.

It’s now become apparent that this change in the order causes a problem
for users who are obfuscating their code. The obfuscated code exists in
the source jar but is also provided to the repackager in its original
form as a library. When libraries take precedence, this means that the
code in its original form ends up in the repackaged war and the
obfuscation is lost.

This commit updates the repackager to write libraries that require
unpacking first. This allows the UNPACK comment to be written even if
there’s also a source entry for the library. Next, source entries are
written. This allows obfuscated source entries to take precedence over
any unobfuscated library equivalents. Lastly, standard libraries that
do not require unpacking are written into the repackaged archive.

Closes gh-3444
9 years ago
Stephane Nicoll cf1c0cd04c Polish 9 years ago
Stephane Nicoll c5ae68a1ec Clarify enum provider purpose 9 years ago
Stephane Nicoll 97634e85ac Remove unnecessary keyword 9 years ago
Stephane Nicoll f34508ff8a Remove outdated key
The `spring.metrics.export.redis.aggregate-key-pattern` is no longer
defined but was still referenced in the documentation.
9 years ago
Stephane Nicoll f77b0e4b6a Force documentation of nested group
The `strategy` group is not detected in the meta-data because the
Strategy inner class is not defined at the "right" level in the
hierarchy.

For now, `@NestedConfigurationProperty` was added to workaround the
issue. Once gh-3454 is solved, we should remove them.
9 years ago
Stephane Nicoll 4dda1814e2 Prevent bean early initialization
Fix `CacheManagerValidatorPostProcessor` that could lead to early bean
initialization.

Fixes gh-3440
9 years ago
Stephane Nicoll 8cb6f7bcb8 Polish
See  gh-3372
9 years ago
Stephane Nicoll 5024c0f8a1 Polish
Add documentation for server.session.cookie keys

See gh-3240
9 years ago
Phillip Webb 2a20994833 Document static-resources configuration property
Add `spring.resources.static-locations` to the reference documentation
appendix.

Fixes gh-3372
9 years ago
Phillip Webb 582239b03b Add ApplicationArguments and ApplicationRunner
Add ApplicationArguments interface which allows SpringApplication.run
arguments to be injected into any bean. The interface provides access
to both the raw String[] arguments and also provides some convenience
methods to access the parsed 'option' and 'non-option' arguments.

A new ApplicationRunner interface has also been added which is
similar to the existing CommandLineRunner.

Fixes gh-1990
9 years ago
Phillip Webb 3de2516452 Tweak LoggingApplicationListener order
Provide additional space between the ConfigFileApplicationListener order
and the LoggingApplicationListener order.

Fixes gh-2543
9 years ago
Phillip Webb 3588ca8637 Add session configuration properties
Add support for the following server properties which can be used to
configure the session:

	server.session.tracking-modes
	server.session.cookie.name
	server.session.cookie.domain
	server.session.cookie.path
	server.session.cookie.comment
	server.session.cookie.http-only
	server.session.cookie.secure
	server.session.cookie.max-age

In addition `server.session-timeout` is now deprecated and has been
replaced with `server.session.timeout`.

Fixes gh-3240
9 years ago
Phillip Webb 5938c967a3 Polish 9 years ago
Andy Wilkinson 9cb2a09680 Reinstate output of stack trace accidentally removed in 66d4a2a 9 years ago
Andy Wilkinson 66d4a2a49e Ignore Azure’s default LOGGING_CONFIG env var when initialising logging
When using Tomcat, Azure automatically configures an environment
variable called LOGGING_CONFIG that configures the
java.util.logging.config.file system property.
LoggingApplicationListener finds this configuration via the Spring
environment (it looks for logging.config) and attempts to use it as the
name of the logging configuration file. Since c3d93f7 this failure
causes the app to fail to start, rather than the previous behaviour of
silently falling back to the default configuration.

This commit updates LoggingApplicationListener to only consider
configuration that is a non-empty string and that does not start with
-Djava.util.logging.config.file=, which is the beginning of the default
configuration on Azure, and is very unlikely to be part of the name of a
logging configuration file.

Closes gh-3366
9 years ago
Andy Wilkinson 8225a8a7d5 Upgrade to Reactor and Reactor Spring 2.0.4.RELEASE
Closes gh-3264
9 years ago
Stephane Nicoll a073a505ae Move spring.oauth2.* to security.oauth2.*
Unfortunately, we have no other choice to flip the ignoreUnknownFields
attribute of `SecurityProperties` has many different target are now set
for that namespace outside the class. See gh-3445 for a potential way
to improve that.

Closes gh-3327
10 years ago
Dave Syer 7ceb7ce6f6 Add send count to Integration metrics
Fixed gh-3364
10 years ago
Dave Syer 94e41b4190 Fix assertion in broken test 10 years ago
Dave Syer 7410eee34f Add custom condition for /logfile endpoint
Fixes gh-3360
10 years ago
Dave Syer c71196b92d Better segregation of export and redis keys 10 years ago
Stephane Nicoll 54619bec3f Clarify javadoc
This might just be me but when I read the original javadoc it made me
think that caching worked only if the endpoint is accessed anonymously.
10 years ago
Phillip Webb ef39634e30 Polish 10 years ago