Commit Graph

4266 Commits

Author SHA1 Message Date
Phillip Webb
aaa2ff54dd Extract @ConditionalOnEnabledEndpoint
Extract @ConditionalOnEnabledEndpoint to a top level class.

See gh-2798
2015-06-02 11:17:23 -07:00
Phillip Webb
968b68c322 Polish 2015-06-02 11:17:16 -07:00
Josh Thornhill
10f7031e46 Fix typo in documentation
Closes gh-3077
2015-06-02 11:50:49 +02:00
Phil Parker
eb92dfbb3b Fix link to Groovy documentation
Closes gh-3054
2015-05-28 15:28:48 +02:00
Stephane Nicoll
4b825163a2 Upgrade to Tomcat 8.0.23
Closes gh-3058
2015-05-28 13:34:10 +02:00
Stephane Nicoll
f25ce8a381 Fix artifact extension retrieval
Do not rely on the packaging type to figure out what the extension of the
main artifact will be. So far, using `jar` and `war` packaging for `.jar`
and `.war` files worked by chance.

We know retrieve the actual extension as provided by Maven's
`ArtifactHandler`.

Fixes gh-2762
2015-05-26 16:21:00 +02:00
Stephane Nicoll
160f2d341f Fix Gzip filter properties
Fix `excludeAgentPatterns`, `excludePaths` and `excludePathPatterns`
properties. Introduce `excludedMimeTypes` property.

Fixes gh-3042
2015-05-26 15:00:54 +02:00
Stephane Nicoll
676b7d713a Refine log message
Rework c03e14b to avoid an extra empty space in log message

See gh-3033
2015-05-26 11:23:01 +02:00
Stephane Nicoll
c03e14bee4 Fix missing space in log message
Fixes gh-3033
2015-05-25 18:25:11 +02:00
Joe Kutner
dbe310b806 Update Heroku deployment documentation
Closes gh-3000
2015-05-20 10:58:42 +02:00
Andy Wilkinson
bb877ed579 Upgrade to Spring Batch 3.0.4.RELEASE
Closes gh-2950
2015-05-20 09:54:35 +01:00
Andy Wilkinson
6ad6cf0356 Upgrade to Spring Social 1.1.2.RELEASE
Closes gh-3015
2015-05-20 09:54:00 +01:00
Andy Wilkinson
c5b5932c0c Upgrade to thymeleaf-extras-springsecurity3 2.1.2.RELEASE
Closes gh-2975
2015-05-18 13:47:30 +01:00
Andy Wilkinson
615e1afe80 Upgrade to Spring Loaded 1.2.3.RELEASE
Closes gh-2974
2015-05-18 13:47:30 +01:00
Andy Wilkinson
3d68216bf7 Upgrade to Liquibase 3.3.3
Closes gh-2973
2015-05-18 13:47:30 +01:00
Andy Wilkinson
83d718de79 Upgrade to HornetQ 2.4.7.Final
Closes gh-2972
2015-05-18 13:47:29 +01:00
Andy Wilkinson
f9b8c85de1 Upgrade to Hibernate 4.3.10.Final
Closes gh-2971
2015-05-18 13:47:29 +01:00
Andy Wilkinson
fc2b4ea8c3 Upgrade to Jetty 9.2.10
Closes gh-2970
2015-05-18 13:47:29 +01:00
Andy Wilkinson
28bfdef325 Upgrade to ActiveMQ 5.10.2
Closes gh-2969
2015-05-18 13:47:24 +01:00
Andy Wilkinson
cdac992ff5 Upgrade to thymeleaf-layout-dialect 1.2.8
Closes gh-2968
2015-05-18 13:42:27 +01:00
Andy Wilkinson
b2f5b1ed46 Upgrade to mysql-connector-java 5.1.35
Closes gh-2967
2015-05-18 13:41:57 +01:00
Andy Wilkinson
ffabf16a02 Upgrade to Jackson 2.4.6
Closes gh-2966
2015-05-18 13:41:29 +01:00
Andy Wilkinson
b7d27145e8 Upgrade to Spring Integration 4.1.4.RELEASE
Fixes gh-2811
2015-05-15 21:17:32 +01:00
Andy Wilkinson
e5451ab4fe Upgrade to Tomcat 8.0.22
Closes gh-2955
2015-05-15 21:17:04 +01:00
Andy Wilkinson
18d8564d85 Upgrade to Spring Social 1.1.1.RELEASE
Closes gh-2954
2015-05-15 21:16:11 +01:00
Andy Wilkinson
fc31115668 Rely soley on underlying logger for isEnabled in Liquibase logger
Previously, CommonsLoggingLiquibaseLogger referred to its
configured level and the underlying Commons Logging log when
determining if logging was enabled for a particular level. This did
not work as intended as setLogLevel was never called leaving the
configured level stuck at its default value of INFO. As a result of
this any logging at levels below INFO would not be output,
irrespective of the configuration of the underlying logging framework.

This commit updates CommonsLoggingLiquibaseLogger to rely purely on
the Commons Logging log when determining whether or not logging for
a particular level is enabled. This brings the implementation into
line with liquibase-slf4j [1] which provides similar functionality,
albeit using SLF4J rather than Commons Logging

Closes gh-2916

[1] https://github.com/mattbertolini/liquibase-slf4j/blob/master/src/main/java/liquibase/ext/logging/slf4j/Slf4jLogger.java
2015-05-11 17:26:35 +01:00
Andy Wilkinson
4977e48ec5 Don’t rely on deduction of main application class when running tests
Previously, when SpringApplicationContextLoader created a
SpringApplication and used it to load the test’s application context,
it relied upon SpringApplication correctly deducing the application’s
main class. This would result in the wrong class being deduced as the
application’s main method is not called so the test runner’s main method
would be found instead.

This commit updates SpringApplicationContextLoader to explicitly set
SpringApplication’s main class to be the current test’s class. While
not strictly the application’s main class, it is the next best thing
available in this situation and prevents misleading log messages and
application versions from being logged.

Fixes gh-2930
2015-05-11 15:43:44 +01:00
Andy Wilkinson
2053f4b2bf Clear JAVA_OPTS in CLI tests; avoid permsize config error with Java 8
When a Java 8 JVM is launched with -XX:MaxPermSize a warning message
is output indicating that the option will be ignored. This causes the
CLI tests that assert that no error output has been produced to fail.

This commit updates the CLI's integration test harness to remove
JAVA_OPTS from the environment of the CLI process. This prevents any
unwanted max perm size configuration from leaking into that
environment and breaking the build.
2015-05-11 12:22:02 +01:00
Mario A. Alvarez Garcia
ca94bd4b94 Upgrade to Hibernate 4.3.9.Final
Closes gh-2928
2015-05-11 10:45:13 +01:00
Davide Angelocola
3179d278a2 Upgrade to SLF4J 1.7.12
Closes gh-2931
2015-05-11 10:45:08 +01:00
Andy Wilkinson
d3d5b211ed Upgrade to Spring AMQP 1.4.5.RELEASE
Closes gh-2932
2015-05-11 10:38:01 +01:00
Andy Wilkinson
66be012e78 Upgrade to Undertow 1.1.4.Final
Closes gh-2754
2015-05-11 10:37:27 +01:00
Craig Walls
88d72e0598 Upgrade to Spring Social Facebook 2.0.1.RELEASE
While this is a breaking change, continuing with Spring Social
Facebook 1.1.x is also broken as it is no longer compatible with
Facebook's API. Upgrading to 2.0.1.RELEASE may require some changes
to be made to users' applications, but it will allow their
applications to use the Facebook API once again.

Closes gh-2837
2015-05-06 15:08:45 +01:00
pasali
1cc0b19f29 Upgrade to Dropwizard Metrics 3.1.2
Closes gh-2920
2015-05-06 15:00:51 +01:00
Andy Wilkinson
ffcc854d42 Include exception in warning message when pid file cannot be created
Closes gh-2905
2015-05-05 16:40:48 +01:00
Josh Thornhill
b16a973d6a Honor the endpoint.enabled property when registering MBeans
Fixes gh-2873
Closes gh-2890
2015-04-30 15:28:45 +01:00
yinheli
ef49ced12a Polish Gradle example for using Undertow
Closes gh-2896
2015-04-30 15:17:01 +01:00
Dave Syer
efa7ad8370 Only use PropertySource.getValue() as a fallback
It converts everything to a String so it isn't helpful to use
it as a default.

Fixes gh-2891.
2015-04-28 11:47:50 +01:00
Rob Winch
b54960f072 Management Security uses Spring Realm
Previously ManagementSecurityAutoConfiguration used Spring Security's
default realm of "Realm" when authentication failed. This was confusing
because when prompted for authentication (i.e. no credentials provided)
the realm "Spring" was requested.

This commit ensures the Realm that is used is consistent for all of of the
security auto configuration.

Fixes #2466
2015-04-27 17:32:47 -05:00
Andy Wilkinson
bc27a8aa6e Show different Gradle repository config for snapshots vs releases
Closes gh-2838
2015-04-22 17:29:22 +01:00
Andy Wilkinson
3e3395304b Upgrade to javax.mail:javax.mail-api 1.5.3
Closes gh-2835
2015-04-21 15:30:01 +01:00
izeye
68ed4dec9b Polish production ready features documentation
Closes gh-2832
2015-04-21 15:28:07 +01:00
izeye
b8a45d9117 Fix typo in deployment documentation
Closes gh-2836
2015-04-21 15:19:40 +01:00
Kamil Szymanski
88d03b76e9 Fix Groovy templates ViewResolver class name and id in How-to docs
Closes gh-2846
2015-04-21 15:17:57 +01:00
Xiang Li
71ce0f6c95 Remove duplicate json.version property from spring-boot-parent pom.xml
Closes gh-2854
2015-04-21 15:16:09 +01:00
Andy Wilkinson
dabbb02dfe Prevents tests that use Elasticsearch from polluting the filesystem
By default, Elasticsearch writes it data to ./data. This led to data
being left on the filesystem after a mvn clean which could cause
failures when moving between branches that use different versions of
Elasticsearch.

This commit updates the tests for the Elasticsearch sample and
the Elasticsearch auto-configuration classes to write the
Elasticsearch data and logs into the target directory.
2015-04-21 14:53:43 +01:00
Stephane Nicoll
326bdf29c2 Remove unused configuration map
Remove the configuration map defined in `GroovyTemplateProperties` which
isn't used. Ironically, that configuration map was exposed with the exact
same prefix as `GroovyMarkupConfigurer`, which broke IDEs support since
two entries had the exact same prefix.

Fixes gh-2840
2015-04-21 13:33:31 +02:00
Andy Wilkinson
337673b31d Support String values for factoryBeanObjectType attribute on bean def
To allow us to determine the type that Spring Integration’s
GatewayProxyFactoryBean will create, the bean definition created by
MessagingGatewayRegistrar needs to set the factoryBeanObjectType
attribute. The current implementation of BeanTypeRegistry requires the
attribute’s value to be a Class, however this would require Spring
Integration’s namespace handler to load the class and class loading
should be avoided in namespace handlers.

This commit updates BeanTypeRegistry so that it supports both Class and
String values for the factoryBeanObjectType. If the value is a String
it will interpret it as a class name and attempt to load it.

See gh-2811
2015-04-16 09:42:50 +01:00
Andy Wilkinson
ebb8d0c55f Read the time of a JarEntryData using MSDOS Date Time format
The format is rather unusual.

The time is 16 bits: 5 bits for the hour, 6 bits for the minutes, and 5
bits for the seconds. 5 bits only allows 32 values (0-31) so the number
must be doubled, meaning that the time is only accurate to the nearest
two seconds. Also, the JDK rounds this down by subtracting one. The
doubling and rounding is performed by shifting one place to the left
and masking off the right-most bit respectively.

The date is 16 bits: 7 bits for the year, 4 bits for the month, and 5
bits for the day. The year is from 1980, i.e. the earliest date that
can be represented is 1980-01-01.

See http://mindprod.com/jgloss/zip.html for more details of the format.

Fixes gh-2826
2015-04-15 17:03:06 +01:00
Andy Wilkinson
764e34b9db Don’t start child context for actuator endpoints when not embedded
Prior to this commit, EndpointWebMvcAutoConfiguration would start a
child context if the management port was different to the server port
and the application context was a web application context. This caused
two problems:

If a user built an executable war and configured the management port so
that it was different to the server port, their application would run
successfully when launched with java -jar, but it would fail when
deployed to Tomcat as an attempt would be made to start embedded Tomcat.

Secondly, if a user ran a test annotated with @WebAppConfiguration the
main embedded Tomcat instance would not be started, but the child
context would trigger the creation of a Tomcat instance listening on the
configured management port. This is unexpected as @WebIntegrationTest
or @IntegrationTest and @WebAppConfiguration should be required to have
the test trigger full startup of the application and listen on the
configured ports.

This commit updates EndpointWebMvcAutoConfiguration so that it will only
start a child context when the management port is different to the
server port and the EmbeddedWebApplicationContext has an embedded
servlet container. This resolves the two problems described above as
there will be no embedded servlet container when deployed to a
standalone container or when a test is run without @IntegrationTest.

Fixes gh-2798
2015-04-15 13:47:30 +01:00