Commit Graph

4672 Commits (fbfdbce266641f724bfe7059abdf6ce39ab63f54)
 

Author SHA1 Message Date
Andy Wilkinson 5e4a745620 Don’t register Jackson Module beans with all ObjectMappers
Previously, JacksonAutoConfiguration would register any Jackson Module
beans with every ObjectMapper found in the application context. This
was not consistent with the rest of the Jackson auto-configuration,
which is only applied to ObjectMappers that are created or configured
via the auto-configured Jackson2ObjectMapperBuilder.

This commit removes the code that registers Jackson Module beans with
every ObjectMapper. Such beans will still be registered with
ObjectMappers created or configured using the auto-configured
Jackson2ObjectMapperBuilder. This aligns the configuration of Module
with the rest of the ObjectMapper configuration and makes it possible
for users to create an ObjectMapper bean and still have complete control
over the modules that are registered with it.

Closes gh-2489
10 years ago
Andy Wilkinson 2a1bca6806 Update field that’s checked reflectively to match Spring MVC’s internals 10 years ago
Andy Wilkinson 9be1d158a6 Don't use reflection to verify interceptor registration
A recent change to the internals of RequestMappingHandlerMapping
broke to Spring Mobile-related tests as they were using reflection
to verify that the configuration had been applied correctly.

This commit makes the tests more robust by using the Java API to
access the interceptors for a request and verify that the expected
interceptor is present. To further simplify the tests, the unnecessary
use of an embedded servlet container factory has also been removed.
10 years ago
Andy Wilkinson b7a02feda8 Make the Maven plugin’s start and stop tests more robust
- Verify that isReady has been called
 - When forking, use a random port for JMX
 - Don’t wait for application termination as it introduces a race
   condition and verifying that shutdown has been requested is
   sufficient

See gh-2525
10 years ago
Andy Wilkinson 50af2b144b Add dependency management for hibernate-validator-annotation-processor
Closes gh-3006
10 years ago
Andy Wilkinson af7aae51d0 Add dependency management for hibernate-core
Closes gh-3005
10 years ago
Andy Wilkinson d3806df88a Remove hibernate-entitymanager.version property
Users that wish to override the version of Hibernate need to override
the hibernate.version property, as it’s the one used when declaring the
dependency management for Hibernate’s modules, so the
hibernate-entitymanager.version property is of little value.

Closes gh-3004
10 years ago
Stephane Nicoll e0dfe9fb86 Add start/stop goals to maven plugin
SpringApplicationLifecycle provides basic lifecycle operations on the
current Spring Boot application (that is checking if the application has
fully started and gracefully terminate the app). It can be registered as
an MBean of the platform MBean server if a specific property is set.

The Maven plugin uses that MBean to check that the application is ready
before ending the "start" phase. It uses it to trigger a proper shutdown
of the application during the "stop" phase.

If the process has to be forked, the platform MBean server is exposed on
a configurable port so that the maven plugin can connect to it.

Such change permits the maven plugin to integrate a classical integration
test scenario where the "start" goal is invoked during the
pre-integration phase and the "stop" goal during the post-integration
phase.

Closes gh-2525
10 years ago
Andy Wilkinson 129c24926e Fix metrics speed tests on Windows
Write to NUL on Windows and /dev/null on other platforms. Increase the
default number of iterations to avoid problems with the reduced timing
precision on Windows.

Closes gh-2976
10 years ago
Stephane Nicoll 2de791f53e Merge pull request #3002 from eddumelendez/gh-2132
* gh-2132:
  polish batch table prefix customization
  Customize table prefix of batch meta-data tables
10 years ago
Stephane Nicoll e0f59d8a74 polish batch table prefix customization
See gh-2132
10 years ago
Eddú Meléndez d6818e96f5 Customize table prefix of batch meta-data tables
Add 'spring.batch.table-prefix' to customize the prefix of the
batch meta-data tables.

Closes gh-2132, gh-3002
10 years ago
Andy Wilkinson a0c0822293 Use array of correct size when turning List<MetricReader> into an array 10 years ago
Andy Wilkinson a334e93cb9 Upgrade to Surefire 2.18.1
Closes gh-2963
10 years ago
Andy Wilkinson 54b0613179 Gracefully handle null readers in MetricExportAutoConfiguration 10 years ago
Andy Wilkinson d8af7980ed Upgrade to Jedis 2.6.3
Closes gh-2996
10 years ago
Andy Wilkinson 23a6a5300b Upgrade to SnakeYAML 1.15
Closes gh-2995
10 years ago
Andy Wilkinson 1d6a9b18ee Upgrade to Spring HATEOAS 0.17.0.RELEASE
Closes gh-2994
10 years ago
Andy Wilkinson 4cfdecf677 Upgrade to mongo-java-driver 2.13.1
Closes gh-2993
10 years ago
Andy Wilkinson baefb47899 Upgrade to Jolokia 1.3.0
Closes gh-2992
10 years ago
Andy Wilkinson da3dd533a1 Upgrade to Jersey 2.17
Closes gh-2991
10 years ago
Andy Wilkinson 6c6cf56e2d Upgrade to Elasticsearch 1.4.5
Closes gh-2990
10 years ago
Andy Wilkinson 0f72eab429 Upgrade to Janino 2.7.8
Closes gh-2989
10 years ago
Andy Wilkinson f00b33bbb3 Upgrade to solr-solrj 4.10.4
Closes gh-2988
10 years ago
Andy Wilkinson a67fd2d9a1 Upgrade to log4j2 2.3
Closes gh-2987
10 years ago
Andy Wilkinson dfe4c24f29 Upgrade to Apache Derby 10.11.1.1
Closes gh-2986
10 years ago
Andy Wilkinson 15ea23b2fa Upgrade to commons-pool2 2.3
Closes gh-2985
10 years ago
Andy Wilkinson 933b9069ad Upgrade to commons-dbcp2 2.1
Closes gh-2984
10 years ago
Andy Wilkinson 6ffb7953fc Upgrade to nekohtml 1.9.22
Closes gh-2983
10 years ago
Andy Wilkinson e87b56315a Upgrade to EhCache 2.10.0
Closes gh-2982
10 years ago
Andy Wilkinson 9a27473209 Upgrade to Undertow 1.2.6.Final
Closes gh-2981
10 years ago
Andy Wilkinson e33cbdbb75 Upgrade to java-statsd-client 3.1.0
Closes gh-2980
10 years ago
Andy Wilkinson 01e1729a07 Upgrade to sendgrid-java 2.2.1
Closes gh-2979
10 years ago
Andy Wilkinson 8d8c41248e Upgrade to Hazelcast 3.4.2
Closes gh-2978
10 years ago
Andy Wilkinson bfd8f300da Upgrade to Jackson 2.5.3
Closes gh-2977
10 years ago
Dave Syer 20cea2aefc Remove duplicate declaration of s-i-core 10 years ago
Dave Syer a065b80e57 Add MetricsEndpointMetricReader for exporting all metrics
User can add a bean of type MetricsEndpointMetricReader to opt in
to exporting all metrics via the MetricsEndpoint (instead of via
MetricReaders). There are disadvantages (like no accurate timestamps)
so it's best to leave it as an opt in.

Also improved tests for metric auto configuration a bit.
10 years ago
Dave Syer 5ceb35473d Allow multiple readers/writers to be @ActuatorMetric*
In principle you might have multiple "system" repositories, all
of which you want to go to public metrics or not be metrics exporters.
This change adds a new annotation and renames the old one, so that
reades and writers can be distinguished, and also changes the
autowiring of them to accept multiple values.

Also adds automatic public metrics for Spring Integration.
10 years ago
Stephane Nicoll 6f38b54800 Merge pull request #2997 from Riggs333/patch-1
* patch-1:
  Fix typo in javadoc
10 years ago
Thomas Traude 8b7f318d6b Fix typo in javadoc
Closes gh-2997
10 years ago
Andy Wilkinson 5cd18e121b Merge branch '1.2.x' 10 years ago
Andy Wilkinson c5b5932c0c Upgrade to thymeleaf-extras-springsecurity3 2.1.2.RELEASE
Closes gh-2975
10 years ago
Andy Wilkinson 615e1afe80 Upgrade to Spring Loaded 1.2.3.RELEASE
Closes gh-2974
10 years ago
Andy Wilkinson 3d68216bf7 Upgrade to Liquibase 3.3.3
Closes gh-2973
10 years ago
Andy Wilkinson 83d718de79 Upgrade to HornetQ 2.4.7.Final
Closes gh-2972
10 years ago
Andy Wilkinson f9b8c85de1 Upgrade to Hibernate 4.3.10.Final
Closes gh-2971
10 years ago
Andy Wilkinson fc2b4ea8c3 Upgrade to Jetty 9.2.10
Closes gh-2970
10 years ago
Andy Wilkinson 28bfdef325 Upgrade to ActiveMQ 5.10.2
Closes gh-2969
10 years ago
Andy Wilkinson cdac992ff5 Upgrade to thymeleaf-layout-dialect 1.2.8
Closes gh-2968
10 years ago
Andy Wilkinson b2f5b1ed46 Upgrade to mysql-connector-java 5.1.35
Closes gh-2967
10 years ago