Upgrade to Spring 6 and Spring Boot 3.

See #654
This commit is contained in:
Christoph Strobl
2022-06-01 11:20:04 +02:00
committed by Mark Paluch
parent e59e147d6f
commit d52d73f34c
2115 changed files with 8303 additions and 9562 deletions

View File

@@ -15,7 +15,7 @@
*/
package example.springdata.redis.reactive;
import javax.annotation.PreDestroy;
import jakarta.annotation.PreDestroy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -15,7 +15,7 @@
*/
package example.springdata.redis.sync;
import javax.annotation.PreDestroy;
import jakarta.annotation.PreDestroy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -75,7 +75,7 @@ class SyncStreamApiTests {
// XADD errors when timestamp is less than the last inserted
assertThatExceptionOfType(RedisSystemException.class).isThrownBy(() -> {
streamOps.add(SensorData.create("1234", "19.8", "invalid").withId(RecordId.of("0-0")));
}).withMessageContaining("ID specified");
});
// XADD with autogenerated id
var autogeneratedId = streamOps.add(SensorData.create("1234", "19.8", null));