RED-5694 - Upgrade spring-boot to 3.0

- remove versions already defined in spring boot
- add missing PostConstruct annotation
This commit is contained in:
devplant 2023-04-06 13:31:32 +03:00
parent b1b42ce0d7
commit 173428771b
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
<version>3.0.5</version>
</dependency>
<!-- test dependencies -->
@ -122,7 +121,6 @@
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit-test</artifactId>
<version>3.0.3</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -16,6 +16,7 @@ import javax.crypto.spec.SecretKeySpec;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import jakarta.annotation.PostConstruct;
import lombok.SneakyThrows;
@Service
@ -29,6 +30,7 @@ public class EncryptionDecryptionService {
@SneakyThrows
@PostConstruct
protected void postConstruct() {
SecureRandom secureRandom = new SecureRandom();