Commit Graph

81 Commits

Author SHA1 Message Date
Mark Paluch
60aa63ee65 #582 - Build against Spring Boot 2.4 snapshots. 2020-11-19 15:37:39 +01:00
Mark Paluch
475ecccab1 #553 - Upgrade Mongo/Rest examples to Spring Boot 2.3. 2020-05-11 14:23:49 +02:00
Oliver Drotbohm
c546430399 #514 - Switch to HAL explorer for Spring Data REST Starbucks example. 2019-08-08 19:01:13 +02:00
Oliver Drotbohm
fb8dccd9d4 #514 - Prepare upgrade to Spring Data release train Moore.
Upgrade to latest versions of Spring HATOEAS and Spring Plugin.
2019-08-08 18:52:23 +02:00
Oliver Drotbohm
f6245580c0 #504 - Fixing deprecation warnings in JPA and REST examples. 2019-06-07 09:30:43 +02:00
Spring Operator
ccae97890f #491 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 426 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 08:13:14 +01:00
Spring Operator
6d51ebf294 #473 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://mybatis.org/dtd/mybatis-3-config.dtd (301) with 1 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-config.dtd) result SSLHandshakeException).
* http://mybatis.org/dtd/mybatis-3-mapper.dtd (301) with 2 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-mapper.dtd) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 70 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://maven.apache.org/maven-v4_0_0.xsd with 6 occurrences migrated to:
  https://maven.apache.org/maven-v4_0_0.xsd ([https](https://maven.apache.org/maven-v4_0_0.xsd) result 301).
* http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd with 1 occurrences migrated to:
  https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd) result 302).

# Ignored
These URLs were intentionally ignored.

* http://java.sun.com/xml/ns/persistence with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 152 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 77 occurrences

Original pull request: #472
2019-03-20 10:10:59 -05:00
Mark Paluch
1c56cf8fba #381 - Adapt examples to immutable object support.
Provide mutable property accessors to allow object mutation.
2018-07-26 11:57:09 +02:00
Oliver Gierke
d854c6d084 #342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
2018-02-22 11:42:57 +01:00
Oliver Gierke
20c910183e #339 - Upgrade to Spring Boot 2.0 RC2. 2018-02-21 18:35:06 +01:00
Mark Paluch
b3d8749273 #326 - Extend CORS examples.
Add examples for preflight- and rejected requests.
2017-11-30 14:19:45 -08:00
Mark Paluch
674c4e904c #325 - Upgrade to Spring Boot 2.0 M7.
Tweak bom to reflect Spring Framework and Spring Data versions.

Remove reactive Couchbase configuration code required prior to Spring Boot 2.0 M7.

Tweak CORS examples to adapt to Spring Framework's disabled allowCredentials by default.
2017-11-30 14:15:09 -08:00
Oliver Gierke
0e9e979c9a #319 - Upgrade to Spring Boot 2.0 M6.
Tweaked setup of in-memory user accounts in Spring Security example to accommodate the changes in Password encoding.

Tweaked Elasticsearch examples to use Log4j 2 instead of Logback as embedded Elasticsearch requires it to run properly.
2017-11-06 12:22:14 +01:00
Oliver Gierke
a0775f774b #297 - Removed fixing the version of Spring Security to 4.0 from REST samples. 2017-10-06 15:32:15 +02:00
Oliver Gierke
4164bc4607 #297 - Upgraded to Boot 2.0 and Spring Data Kay.
Bumped version number to 2.0. Upgraded to Spring Boot 2.0.

Stuff disabled in the meantime:

- Cassandra: needs API adaptions in configuration
- JPA > Security: test fails with weird Hibernate error
- Redis > Reactive: API updates needed
- Solr: configration updates necessary

adjust versions

Updated elastic search to the new version.

Fixed the reactor version to Bismuth-BUILD-SNAPSHOT. This probably should be undone when boot references the proper bom.
2017-10-06 15:15:53 +02:00
Oliver Gierke
5b80a0b3c1 #263 - StoreRepository now correctly declares UUID as identifier type. 2017-03-06 08:38:37 +01:00
Mark Paluch
605b90dc56 #249 - Add example for Spring Data REST Cross-origin resource sharing. 2017-01-27 13:12:37 +01:00
Oliver Gierke
9ee13be9b5 #197 - Upgraded to Spring Boot 1.4 RC1.
Tweaked the output folder for Querydsl type generation to avoid running into a bug in the Maven compiler plugin 3.5.1 [0].

Fixed an issue in a sample script used to demonstrate MongoDB script execution as the new JavaScript engine seems to be more strict.

Switched to the MongoDB starter and excluded the legacy MongoDB Java driver from projects using Querydsl to consistently make use of the current driver only.

[0] https://issues.apache.org/jira/browse/MCOMPILER-271
2016-07-15 13:05:56 +02:00
Oliver Gierke
6684c8c69b #190 - More simplifications for Spring Boot 1.4 M3.
Replaced all occurrences of @SpringApplicationConfiguration with @SpringBootTest. Using SpringRunner instead of @SpringJUnit4ClassRunner now.
2016-06-10 21:26:46 +02:00
Oliver Gierke
2314c6e726 #186 - Prepare upgrade to Spring Boot 1.4 M2 and Hibernate 5.
Upgraded to Spring Boot 1.4 M2 and thus Hibernate 5.1 transitively.
Switched to H2 as database for all examples using JPA by accident as the
invalid error logging for HSQLDB schema creation got worse in 5.1 (see
[0]). The JPA examples themselves have to stay on HSQLDB as H2 doesn't
support stored procedures. The stored procedures example in turn has to
be downgraded to 5.0.7 as all following versions currently break stored
procedure execution support [1]. Reworked the JPA auditing example as
5.1 breaks on generic types used in support types like AbstractAuditable
[2].

Tweaked content type assertions in some REST related test cases as
Spring 4.3 returns an encoding alongside the media type.

[0] https://hibernate.atlassian.net/browse/HHH-10605
[1] https://hibernate.atlassian.net/browse/HHH-10515
[2] https://hibernate.atlassian.net/browse/HHH-10514
2016-04-13 18:11:09 +02:00
Oliver Gierke
b075ca6358 #177 - Polished domain model.
Inlined Address type into Store. Moved to @Value and removed code that got obsolete with that.

Removed custom WebConfig that's not needed anymore with Spring Boot.
2016-04-05 17:38:33 +02:00
Oliver Gierke
f8bfe5c79e #163 - Upgraded to Hopper RC1.
Removed all previous references to snpahosts. Removed explicit version declaration of Lombok as Boot sets that for us in 1.4.

Upgraded Elasticsearch dependency to 2.2 and uncommented the actual sample module as it needs to be updated due to API changes in Elasticsearch and Spring Data Elasticsearch in turn.

Adapt to API changes in entity lookup configuration for Spring Data REST.

Tweaked Neo4j build setup by using the dedicated embedded driver JAR.
2016-03-18 16:26:11 +01:00
Oliver Gierke
62b2d644cc Updated dependencies and codebase for Querydsl 4. 2016-02-12 14:36:49 +01:00
Oliver Gierke
fe6e2172cd #144 - Make use of the dedicated configuration API for EntityLookups.
Rather than declaring a dedicated EntityLookup bean instance we now use the configuration API introduced on RepositoryRestConfiguration to define the identifier and lookup mapping.

Tweaked readme accordingly.
2015-12-09 16:10:02 +01:00
Oliver Gierke
0de282b2f2 #144 - Added sample for URI customization in Spring Data REST. 2015-12-09 13:01:21 +01:00
Oliver Gierke
9a5c270ec2 #139 - Switched to embedded MongoDB for integration tests.
Removed MongoDB dependency by adding Flapdoodle embedded MongoDB. That allows us to get rid of the utility module we had in place for the MongoDB samples guarding the tests to only run when a MongoDB instance is running.

Tweaked Travis setup to not require the MongoDB service anymore.
2015-10-29 17:14:38 +01:00
Oliver Gierke
0c1bee04b3 #128 - Upgraded to Spring Data Gosling GA.
Spring Boot 1.3.0 M2 -> 1.3.0 M4
Spring Framework 4.2.0 -> 4.2.1
2015-09-03 17:14:09 +02:00
Oliver Gierke
9a91c4073f #123 - Dependency polishing.
Configure the Spring HATEOAS version int the Spring Data REST sample root. Upgraded Spring Security to 4.0.2.RELEASE.
2015-08-04 18:10:43 +02:00
Oliver Gierke
bd90bd04d6 #124 - Added missing dependency to Querydsl MongoDB.
Apparently got lost during the merge.
2015-08-04 17:32:08 +02:00
Oliver Gierke
7eab65b53f #124 - Added Querydsl integration to Starbucks example.
Enabled Querydsl query metadata creation to the Starbucks example and added binding customizations to UserRepository.
2015-08-04 16:05:50 +02:00
Thomas Darimont
fbcded19e6 #120 - Added missing main method to Application in multi-store REST example.
Previously a mvn clean install in the Spring Data examples root failed because the Application class in the multi-store example was missing a main method that is required by the Spring Boot Maven plugin.
2015-08-01 20:52:46 +02:00
Oliver Gierke
70547a363b #117 - Removed explicit configuration of main class for Boot plugin in Starbucks example.
The configuration is obsolete as the client has been moved into a test case for a while already.
2015-07-30 11:38:20 +02:00
Oliver Gierke
bca4e65e4f #115 - Harmonized package names.
We now consistently use example.springdata.$store as base package name.
2015-07-16 09:10:20 +02:00
Oliver Gierke
cc6e232ac3 #114 - Upgraded to Spring 4.2 RC3.
Upgraded to Spring RESTDocs 1.0 M1 on the way.
2015-07-16 08:07:02 +02:00
Oliver Gierke
9641cb7f53 #113 - Upgraded to Spring Boot 1.3 M2.
Removed temporary upgrades to Spring Framework build snapshots where possible.
2015-07-15 09:49:50 +02:00
Oliver Gierke
3a138a161c #101 - Fixed security setup for REST / security sample. 2015-06-29 17:59:33 +02:00
Oliver Gierke
7f8a0cc9dc #111 - Stricter tests cases for conditional headers in REST sample.
We now explicitly check for the presence of ETag and Last-Modified headers for all requests.
2015-06-26 06:47:08 +02:00
Chris Beams
a666eae166 #103 - Fix typo in resource URIs. 2015-06-16 11:01:59 +02:00
Chris Beams
5e0d0da8f2 #102 - Add instruction to create mongodb data directory.
Running mongodb fails if the --dbpath directory does not yet exist. This change instructs the user to create the directory first.
2015-06-16 10:56:54 +02:00
Oliver Gierke
bb371b8de4 #99 - Upgraded to Spring Boot 1.3 M1.
Upgraded REST headers sample to Spring 4.2 snapshots to benefit from fix for SPR-13090.
2015-06-13 19:15:53 +02:00
Oliver Gierke
d880972a12 #98 - Switch to Spring 4.2 RC1 for Starbucks example. 2015-06-04 14:37:02 +02:00
Oliver Gierke
a5702d1e11 #96 - Upgraded to Spring Data Gosling M1. 2015-06-02 13:51:54 +02:00
Oliver Gierke
22824e6b24 #89 - Explicitly configured spherical index on Address.location in Starbucks sample. 2015-05-20 14:11:56 +02:00
Oliver Gierke
343d29eeec #87 - Cleanup view template. 2015-05-20 12:46:45 +02:00
Brian Clozel
cc2ac546e7 #87 - Fix WebJARs resource handling in Starbucks example. 2015-05-20 12:46:36 +02:00
Oliver Gierke
5f132037e3 #87 - Switched to version-less WebJARs after recent additions in Spring Framework. 2015-05-20 12:46:26 +02:00
Oliver Gierke
09eea9e0b8 #85 - Simplified usage of RestTemplate in StarbucksClient. 2015-05-18 10:13:57 +02:00
Oliver Gierke
43c0bcda98 #85 - Added a test case to show how to use a RestTempalte to interact with a HAL service. 2015-05-17 17:30:03 +02:00
Oliver Gierke
81b576b663 #84 - StarbucksClient now uses correct base URI. 2015-05-17 16:36:25 +02:00
Oliver Gierke
8ce6ac38c0 #83 - Enable web environment for integration test. 2015-05-12 12:22:55 +02:00