Commit Graph

829 Commits

Author SHA1 Message Date
Andy Wilkinson 5c0d400c23 Align Hibernate 5 join table names with those from SpringNamingStrategy
Previously, the name of a join table when using Hibernate 5 would
differ from those when using Hibernate 4 with the default
SpringNamingStrategy.

This commit introduces SpringImplicitNamingStrategy which customises the
name of join tables to match those produced by SpringNamingStrategy.

Closes gh-5880
2016-05-11 10:52:43 +01:00
Andy Wilkinson 46407c6763 Align JPA sample with Hibernate 5.1’s table naming
The name of the table for a many-to-many relationship has changed in
Hibernate 5.1.

This commit updates the JPA sample’s import.sql accordingly. It also
updates the repository integration tests to verify that the data has
been imported successfully.

Closes gh-5880
2016-05-10 17:29:23 +01:00
Johnny Lim 38dc9ec441 Polish 2016-05-10 14:48:42 +01:00
Stephane Nicoll 9e60340c0e Upgrade to EhCache 3.0.1
Closes gh-5898
2016-05-10 07:33:39 +02:00
Andy Wilkinson 3348ed5bb3 Make use of new GetMapping and PostMapping annotations
Closes gh-5277
2016-05-09 17:08:16 +01:00
Stephane Nicoll 1d6b1d7d57 Fix broken build 2016-05-09 08:36:58 +02:00
Andy Wilkinson e8e728106e Don’t expect a charset attribute on a text/css Content-Type
Following the encoding change made in 428a10a, the character encoding
of a response is no longer forced.

See gh-5459
2016-05-03 22:07:22 +01:00
Phillip Webb 30e295b5c4 Fix spring-boot-sample-test dependencies 2016-05-02 17:34:00 -07:00
Phillip Webb 2d243f0668 Don't apply multiple session configurations
Add additional @ConditionalOnMissingBean guards to session
configurations to ensure that the first wins. Also reorder imports
to prefer Redis over JDBC.

See gh-5158
2016-05-02 16:42:40 -07:00
Stephane Nicoll ebb4b067a2 Use error attributes in custom error page 2016-04-30 10:04:35 +02:00
Phillip Webb 6d069de79f Add convention based status error pages
Update `spring-boot-sample-web-mustache` to show how convention based
status error pages can be used.

See gh-2691
2016-04-29 14:03:27 -07:00
Phillip Webb 609cb52cd4 Move to relocated web classes
Refactor code to move from recently deprecated classes.

Closes gh-5822
2016-04-28 12:45:15 -07:00
Phillip Webb aea18671c1 Restructure web related classes
Reorganize web related classes for better separation of concerns.
Mainly this involves moving classes from `o.s.b.context.embedded`
that aren't directly tied to embedded servlet containers to
`o.s.b.web` and relocating everything from `o.s.b.context.web`.

See gh-5822
2016-04-28 12:45:15 -07:00
Phillip Webb a7cb689f95 Move @LocalServerPort annotation
Move the @LocalServerPort to org.springframework.boot.context.embedded
since it's only really useful when working with embedded servlet
containers.

See gh-5822
2016-04-28 12:45:15 -07:00
Stephane Nicoll c85948ac0c Fix cache sample README
Closes gh-5800
2016-04-28 09:30:31 +02:00
Stephane Nicoll 4c877a67a2 Fix cache sample README
Closes gh-5807
2016-04-28 09:16:17 +02:00
Eddú Meléndez 81bf3867e3 Fix spring-boot-sample-cache Infinispan example
Closes gh-5800
Closes gh-5806
2016-04-27 13:32:47 -07:00
Eddú Meléndez 7b9844f5de Polish spring-boot-sample-cache README
Closes gh-5807
2016-04-27 13:29:19 -07:00
Fabrizio Cucci c51efda2dc Fix spring-boot-sample-data-neo4j description
Replace "Redis" with "Neo4j".

Closes gh-5812
2016-04-27 13:26:38 -07:00
cjstehno 309f8484a7 Fix remote shell to support custom banners
Update the remote shell to use the `Banner` interface when possible.

Fixes gh-3988
Closes gh-5453
2016-04-26 17:05:19 -07:00
Stephane Nicoll f71a207a81 Polish 2016-04-23 16:15:17 +02:00
Fabrizio Cucci 3c901fef42 Removed redundant override of the configure method
Since the `SampleJerseyApplication` class is already passed in the
`SpringApplicationBuilder` constructor, there is no need to override the
configure method of the `SpringBootServletInitializer` class.

Closes gh-5773
2016-04-23 16:13:34 +02:00
Andy Wilkinson 71e665ba87 Update the spring-boot-samples README
Closes gh-5748
2016-04-21 13:56:39 +01:00
Stephane Nicoll 0cfcbeb40e Add dependency management for Ehcache 3
Closes gh-5725
2016-04-19 13:58:24 +02:00
Andy Wilkinson b9d7a39693 Update sample-parent-context following changes to integration starter
See gh-5528
2016-04-18 15:36:33 +01:00
Andy Wilkinson c068285586 Streamline Integration Starter and add Java DSL to it
This commit streamlines the Integration Starter by removing the file
http, ip, and stream modules as they are not always used by a majority
of apps that use Spring Integration and can also pull in other, unwanted
dependencies.

Additionally, a dependency on spring-integration-java-dsl has been
added. This makes it easy for users to configure Spring Integration
using Java configuration (the recommended approach), rather than via
XML. The Integration sample has been updated to use the DSL. Further
improvements could be made once the sample is using Java 8.

Closes gh-5528
2016-04-18 14:55:35 +01:00
Johnny Lim 6d48ee9593 Polish
Closes gh-5714
2016-04-17 09:26:05 +02:00
Phillip Webb 15dee60049 Restore spring-boot-starter-ws
Rename spring-boot-starter-webservices back to spring-boot-starter-ws.
Unfortunately the starter exists in Spring Boot 1.3 so we can't rename
it without consequence.

See gh-5711
2016-04-16 08:30:56 -07:00
Phillip Webb 5881c9c74f Polish 2016-04-15 22:39:35 -07:00
Andy Wilkinson 06c1dd87c9 Fix spring-boot-sample-test pom following Selenium changes in 35270e9 2016-04-15 17:24:22 +01:00
Stephane Nicoll cc0fc07c0e Move `shell.*` to `management.shell.*`
This commit moves the `shell` namespace to `management.shell`

Closes gh-5703
2016-04-15 18:12:35 +02:00
Stephane Nicoll f364d713dd Add `LocalManagementPort`
Add an annotation alias for the actual management port, similar to what
was done for the main context (`LocalServerPort`).

See gh-5548
2016-04-15 14:02:38 +02:00
Stephane Nicoll f561d9d9d8 Polish auto-configuration for Spring Web Services
Closes gh-5645
2016-04-15 11:01:15 +02:00
Vedran Pavic a7b3a913c2 Add auto-configuration for Spring Web Services
Closes gh-1045
2016-04-15 09:00:09 +02:00
Johnny Lim 90d897eb9d Polish
Closes gh-5685
2016-04-14 08:03:52 +02:00
Andy Wilkinson 69499bf329 Make configuration of acceptors and selectors compatible with Jetty 8
The ServerConnector class doesn’t exist in Jetty 8 so we have to
resort to reflection to create and configure a SelectChannelConnector
instead.

Closes gh-5649
See gh-5380
2016-04-11 21:03:06 +01:00
Phillip Webb fa142d929a Restore Jetty 8 compatibility
Acceptors and Selectors aren't supported with Jetty 8.

See gh-5380
2016-04-11 12:17:43 -07:00
Phillip Webb 944a49bd58 Tweak Elasticsearch sample timeout 2016-04-11 11:07:37 -07:00
Stephane Nicoll 99ae6dac53 Customize Couchbase's socket connect timeout
Our Windows build is failing currently because the couchbase server does
not handle a socket connection within a second (the default). This commit
adds a property to customize this option and set it to 10 sec in the
sample.

While investigating this issue, it turns out that while
`CouchbaseConfiguration` is public, it is not really possible to extend
it in user's configuration. This commit fixes this problem and add a test
that demonstrates how it can be used.

Closes gh-5657
2016-04-11 18:23:27 +02:00
Stephane Nicoll 82207ffce5 Attempt to fix Windows build
The couchbase instance in our windows infra seems super slow. Trying to
workaround that issue by increasing the connect timeout from 5 to 10 sec.

See gh-5651
2016-04-11 15:18:08 +02:00
Stephane Nicoll b374c288fa Fix configuration location 2016-04-11 10:52:23 +02:00
Phillip Webb 43d1d92611 Rework ImageBanner Support
Refactor several aspects of the ImageBanner:

- Extract a few new classes and methods from the previous code
- Directly encode ANSI rather than using `${}` properties
- Rework the scaling algorithm to prefer a fixed width
- Allow ImageBanner and TextBanner to be used together
- Rename several of the `banner.image` properties
- Add support for a left hand margin
- Add property meta-data

See gh-4647
2016-04-07 23:21:17 -07:00
Andy Wilkinson 66830ea1e5 Try to make SampleCassandraApplicationTests' port config more robust 2016-04-07 14:34:37 +01:00
Phillip Webb 48800f1818 Polish contribution 2016-04-06 17:05:01 -07:00
Gytis Trikleris a2adc5a130 Add Narayana JTA support
Add support for JBoss Narayana.

Fixes gh-5552
2016-04-06 17:02:53 -07:00
Phillip Webb 1b146f89f0 Fix failing test 2016-04-06 16:59:34 -07:00
Phillip Webb 01c9d72644 Polish 2016-04-06 15:19:58 -07:00
Andy Wilkinson fc6c57413b Update docs to fully reflect BOOT-INF executable archive layout changes
Closes gh-5195
2016-04-06 10:56:47 +01:00
Phillip Webb 1088f70923 Add Hibernate 4 sample
Add a sample showing how Hibernate 4 can be used if necessary.

See gh-2763
2016-04-05 17:54:46 -07:00
Andy Wilkinson e0f9da5afe Remove dependency management for Spring Shell
While the benign exception that Gemfire outputs is unfortunate, it
isn't sufficient justification for adding dependency management for
Spring Shell.

Closes gh-5444
2016-04-05 16:52:51 +01:00