Commit Graph

5314 Commits (4596844b901f8552d8d99ce03b0bf3478998e054)
 

Author SHA1 Message Date
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
Phillip Webb 7dcb79b3b3 Support more lenient DB2 product lookups
Update DataSourceHealthIndicator to support pattern based matching for
DB2 products. Prior to this commit product identifiers of the form
`DB2/LINUXX8664` were not supported.

Fixes gh-3377
10 years ago
Phillip Webb 85535f0882 Disable DB migrations in ApplicationHierarchyTests 10 years ago
Phillip Webb 52643529a3 Merge pull request #3435 from eddumelendez/gh-3434
* pr/3435:
  Add flyway and liquibase endpoint documentation
  Add 'flyway' and 'liquibase' actuator endpoints
  Add serialization endpoint tests
10 years ago
Phillip Webb a087dbc9c3 Add flyway and liquibase endpoint documentation
See gh-3434
10 years ago
Eddú Meléndez 3995c16ba6 Add 'flyway' and 'liquibase' actuator endpoints
Add `/flyway` and `/liquibase` actuator endpoints to provide details of
any database migrations that have been applied.

Fixes gh-3434
Closes gh-3435
10 years ago
Phillip Webb 7e58483ead Add serialization endpoint tests
Test basic serialization in Endpoint tests to ensure that JSON
can always be produced.
10 years ago
Phillip Webb 223a6bd062 Merge branch '1.2.x' 10 years ago
Phillip Webb 7da808918f Fix Flyway and Liquibase JPA 'depends-on' setup
Ensure that FlywayAutoConfiguration and LiquibaseAutoConfiguration occur
after HibernateJpaAutoConfiguration so that the DependsOnPostProcessor
condition can correctly check for a LocalContainerEntityManagerFactory
bean.

Fixes gh-3437
10 years ago
Phillip Webb 7c84e4fe07 Revert "Use Spring Data Gosling snapshots"
This reverts commit 8f16ebd059.
10 years ago
Phillip Webb 9b78f5d52e Replace @ConditionalOnExpression conditions
Replace @ConditionalOnExpression usage in auto-configuration in favor
of faster direct Environment access.
10 years ago
Phillip Webb 71dbec381a Create @ManagementContextConfiguration annotation
Replace the previously used `EndpointWebMvcConfiguration`
`spring.factories` key with a dedicated ManagementContextConfiguration
annotation.

Also renamed the EndpointWebMvcHypermediaConfiguration and
EndpointWebMvcConfiguration classes to make it clearer that they are
for the management context.

See gh-3345
10 years ago
Phillip Webb b2fcd77d93 Rework EndpointWebMvcAutoConfiguration port logic
Update the `ManagementServerPort` detection logic to attempt direct
property resolution before looking for a local property bean
definition. Bean definitions provided by auto-configuration classes
are ignored.

This change allow `OnManagementMvcCondition` to use the
`ManagementServerPort` to determine when `EndpointWebMvcConfiguration`
should apply (removing the need to create a temporary context).

See gh-3345
10 years ago
Phillip Webb e885dab752 Polish 10 years ago
Phillip Webb 4c8c376829 Refactor EndpointPathRequestMatcher
Refactor `EndpointPathRequestMatcher` so that the side effect of setting
`endpointHandlerMapping` in the parent class is a little more obvious.
10 years ago
Phillip Webb c8137ef3f8 Remove `data` from .gitignore
Not sure why it's there but it's far too broad.
10 years ago
Andy Wilkinson 2263095bbb Update launch.script to match chkconfig start levels with defaults
Closes gh-3419
10 years ago
Andy Wilkinson 5fc781e7e2 Upgrade to Spring Integration 4.2.0.M2
Closes gh-3286
10 years ago
Dave Syer 4581c5a273 Rationalize AMQP sample 10 years ago
Stephane Nicoll 406d4ea771 Polish 10 years ago
Stephane Nicoll fa9bb21a0e Merge pull request #3431 from lucassaldanha/master
* pr/3431:
  Polish AMQP doc
  Add AMQP section to the documetation
10 years ago
Stephane Nicoll 4602558a73 Polish AMQP doc
Closes gh-3431
10 years ago
Lucas Saldanha 0ce7be4413 Add AMQP section to the documetation
Closes gh-3348
10 years ago
Stephane Nicoll 61c5258246 Merge pull request #3429 from izeye/patch-32
* pr/3429:
  Fix deployment title section
10 years ago
izeye 8c9f7247d9 Fix deployment title section
Closes gh-3429
10 years ago
Stephane Nicoll 6f25884ef7 Merge pull request #3428 from izeye/patch-31
* pr/3428:
  Fix typo
10 years ago
izeye dd77ab90a0 Fix typo
Closes gh-3428
10 years ago
Phillip Webb 5fd947027e Merge pull request #3370 from izeye/patch-29
* pr/3370:
  Fix Restarter.setEnabled() to use parameter
10 years ago
izeye 7e49a02356 Fix Restarter.setEnabled() to use parameter
Closes gh-3370
10 years ago
Phillip Webb 36faae95f9 Merge pull request #3374 from mdeinum/boot-3365
* pr/3374:
  Extend TemplateViewResolverProperties for Groovy
10 years ago
Marten Deinum a3e62676af Extend TemplateViewResolverProperties for Groovy
Use AbstractTemplateViewResolverProperties as the base class for
GroovyTemplateProperties since the Spring GroovyMarkupViewResolver is
an AbstractTemplateViewResolver.

The auto-configuration for Groovy is now more aligned with the existing
Freemarker and Velocity auto-configuration, with a `resourceLoaderPath`
property being used instead of `prefix`.

Fixes gh-3365
Closes gh-3374
10 years ago
Phillip Webb 098392d77a Merge pull request #3414 from JamieFarrelly/patch-1
* pr/3414:
  Clarify MultipartConfigFactory javadoc
10 years ago
JamieFarrelly 205f6d92e7 Clarify MultipartConfigFactory javadoc
Update MultipartConfigFactory javadoc to make it clear that you are
passing in the size in bytes.

Fixes gh-3414
10 years ago
Phillip Webb 155f04ef30 Switch ConfigFileAppListener to use DeferredLog
Update ConfigFileApplicationListener to use the recently introduced
DeferredLog class rather than storing its own log messages.
10 years ago
Phillip Webb 0cf6efca4f Polish 10 years ago
Stephane Nicoll afd357f45a Reduce ConfigFileApplicationListener logs
Previously, all attempts to log a configuration file were logged at DEBUG
level which lead to a lot of noise as Spring Boot looks in many places by
default.

We now only log the files that are effectively found at DEBUG level and
all failed attempts at TRACE level.

Closes gh-3129
10 years ago
Dave Syer 067c7a295c Extra logging detail if file is empty 10 years ago
Stephane Nicoll e307fe3137 Honor outputDirectory properly
Previously, if the repackaged file was different from the main artifact
of the build, the maven plugin wrongly considered that it should attach
the file with a classifier.

The outputDirectory is honored properly now, regardless of the fact a
classifier is defined or not.

Fixes gh-3177
10 years ago
Stephane Nicoll 17582de439 Merge pull request #3409 from eddumelendez/gh-3408
* pr/3409:
  Polish
  Add mail server connection check
10 years ago