Merge pull request #10311 from kwoyke/JAVA-3570
JAVA-3570: Upgrade parent-boot-2 to Spring Boot 2.4.0
This commit is contained in:
commit
91f6a5c82c
|
@ -21,7 +21,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security.oauth</groupId>
|
<groupId>org.springframework.security.oauth</groupId>
|
||||||
<artifactId>spring-security-oauth2</artifactId>
|
<artifactId>spring-security-oauth2</artifactId>
|
||||||
<version>${spring-boot.version}</version>
|
<version>${spring-security-oauth2.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
|
@ -88,6 +88,7 @@
|
||||||
<bouncycastle.version>1.58</bouncycastle.version>
|
<bouncycastle.version>1.58</bouncycastle.version>
|
||||||
<jsch.version>0.1.55</jsch.version>
|
<jsch.version>0.1.55</jsch.version>
|
||||||
<apache-mina.version>2.5.1</apache-mina.version>
|
<apache-mina.version>2.5.1</apache-mina.version>
|
||||||
|
<spring-security-oauth2.version>2.4.0.RELEASE</spring-security-oauth2.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
<rest-assured.version>3.3.0</rest-assured.version>
|
<rest-assured.version>3.3.0</rest-assured.version>
|
||||||
<!-- plugins -->
|
<!-- plugins -->
|
||||||
<thin.version>1.0.22.RELEASE</thin.version>
|
<thin.version>1.0.22.RELEASE</thin.version>
|
||||||
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
<spring-boot.version>2.4.0</spring-boot.version>
|
||||||
<aspectjweaver.version>1.9.1</aspectjweaver.version>
|
<aspectjweaver.version>1.9.1</aspectjweaver.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -10,15 +10,15 @@ import org.junit.runner.RunWith;
|
||||||
import org.mockito.InjectMocks;
|
import org.mockito.InjectMocks;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
import org.mockito.Spy;
|
import org.mockito.Spy;
|
||||||
|
import org.mockito.junit.MockitoJUnitRunner;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
|
|
||||||
import com.baeldung.spring.redis.configuration.entity.Book;
|
import com.baeldung.spring.redis.configuration.entity.Book;
|
||||||
import com.baeldung.spring.redis.configuration.repository.BooksRepository;
|
import com.baeldung.spring.redis.configuration.repository.BooksRepository;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class BooksControllerUnitTest {
|
public class BooksControllerUnitTest {
|
||||||
|
|
||||||
@Spy
|
|
||||||
@InjectMocks
|
@InjectMocks
|
||||||
private BooksController booksController;
|
private BooksController booksController;
|
||||||
|
|
||||||
|
|
|
@ -11,16 +11,16 @@ import org.junit.runner.RunWith;
|
||||||
import org.mockito.InjectMocks;
|
import org.mockito.InjectMocks;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
import org.mockito.Spy;
|
import org.mockito.Spy;
|
||||||
|
import org.mockito.junit.MockitoJUnitRunner;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.data.redis.core.ValueOperations;
|
import org.springframework.data.redis.core.ValueOperations;
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
|
|
||||||
import com.baeldung.spring.redis.configuration.entity.Book;
|
import com.baeldung.spring.redis.configuration.entity.Book;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class BooksRepositoryUnitTest {
|
public class BooksRepositoryUnitTest {
|
||||||
|
|
||||||
@Spy
|
|
||||||
@InjectMocks
|
@InjectMocks
|
||||||
private BooksRepository booksRepository;
|
private BooksRepository booksRepository;
|
||||||
|
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
<commons-collections4.version>4.1</commons-collections4.version>
|
<commons-collections4.version>4.1</commons-collections4.version>
|
||||||
<jetty-reactive-httpclient.version>1.0.3</jetty-reactive-httpclient.version>
|
<jetty-reactive-httpclient.version>1.0.3</jetty-reactive-httpclient.version>
|
||||||
<okhttp.version>4.0.1</okhttp.version>
|
<okhttp.version>4.0.1</okhttp.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -64,4 +64,8 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -86,5 +86,6 @@
|
||||||
<spring-boot-admin-starter-client.version>2.2.2</spring-boot-admin-starter-client.version>
|
<spring-boot-admin-starter-client.version>2.2.2</spring-boot-admin-starter-client.version>
|
||||||
<spring-boot-admin-server-ui-login.version>1.5.7</spring-boot-admin-server-ui-login.version>
|
<spring-boot-admin-server-ui-login.version>1.5.7</spring-boot-admin-server-ui-login.version>
|
||||||
<spring-boot-maven-plugin.version>2.0.4.RELEASE</spring-boot-maven-plugin.version>
|
<spring-boot-maven-plugin.version>2.0.4.RELEASE</spring-boot-maven-plugin.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -197,6 +197,7 @@
|
||||||
<subethasmtp.version>3.1.7</subethasmtp.version>
|
<subethasmtp.version>3.1.7</subethasmtp.version>
|
||||||
<springcloud.version>2.0.2.RELEASE</springcloud.version>
|
<springcloud.version>2.0.2.RELEASE</springcloud.version>
|
||||||
<httpclient.version>4.5.8</httpclient.version>
|
<httpclient.version>4.5.8</httpclient.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -144,6 +144,7 @@
|
||||||
<subethasmtp.version>3.1.7</subethasmtp.version>
|
<subethasmtp.version>3.1.7</subethasmtp.version>
|
||||||
<springcloud.version>2.0.2.RELEASE</springcloud.version>
|
<springcloud.version>2.0.2.RELEASE</springcloud.version>
|
||||||
<httpclient.version>4.5.8</httpclient.version>
|
<httpclient.version>4.5.8</httpclient.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
<artifactId>kotlin-stdlib-jre8</artifactId>
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
<version>${kotlin.version}</version>
|
<version>${kotlin.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
<hibernate.version>5.2.10.Final</hibernate.version>
|
<hibernate.version>5.2.10.Final</hibernate.version>
|
||||||
<springdoc.version>1.2.32</springdoc.version>
|
<springdoc.version>1.2.32</springdoc.version>
|
||||||
<asciidoctor-plugin.version>1.5.6</asciidoctor-plugin.version>
|
<asciidoctor-plugin.version>1.5.6</asciidoctor-plugin.version>
|
||||||
<kotlin.version>1.2.71</kotlin.version>
|
<kotlin.version>1.4.0</kotlin.version>
|
||||||
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
|
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<version>2.2.2.RELEASE</version>
|
<version>${spring-boot.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>pre-integration-test</id>
|
<id>pre-integration-test</id>
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -25,5 +25,6 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
|
@ -46,6 +46,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
<spring-cloud-dependencies.version>Hoxton.SR4</spring-cloud-dependencies.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -21,5 +21,6 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<springframework.version>5.2.7.RELEASE</springframework.version>
|
<springframework.version>5.2.7.RELEASE</springframework.version>
|
||||||
<spring-cloud-starter-zookeeper-discovery.version>1.0.3.RELEASE</spring-cloud-starter-zookeeper-discovery.version>
|
<spring-cloud-starter-zookeeper-discovery.version>1.0.3.RELEASE</spring-cloud-starter-zookeeper-discovery.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
|
<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<start-class>com.baeldung.sample.App</start-class>
|
<start-class>com.baeldung.sample.App</start-class>
|
||||||
<!-- Spring -->
|
<!-- Spring -->
|
||||||
<org.springframework.version>5.2.2.RELEASE</org.springframework.version>
|
<org.springframework.version>5.3.0</org.springframework.version>
|
||||||
<annotation-api.version>1.3.2</annotation-api.version>
|
<annotation-api.version>1.3.2</annotation-api.version>
|
||||||
<!-- persistence -->
|
<!-- persistence -->
|
||||||
<hibernate.version>5.2.5.Final</hibernate.version>
|
<hibernate.version>5.2.5.Final</hibernate.version>
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<start-class>com.baeldung.books.SpringDataRestApplication</start-class>
|
<start-class>com.baeldung.books.SpringDataRestApplication</start-class>
|
||||||
<maven.version>1.0</maven.version>
|
<maven.version>1.0</maven.version>
|
||||||
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -5,3 +5,6 @@ spring.mvc.pathmatch.use-suffix-pattern=true
|
||||||
#spring.mvc.contentnegotiation.favor-path-extension=true
|
#spring.mvc.contentnegotiation.favor-path-extension=true
|
||||||
#spring.mvc.contentnegotiation.favor-parameter=true
|
#spring.mvc.contentnegotiation.favor-parameter=true
|
||||||
#spring.mvc.contentnegotiation.parameter-name=mediaType
|
#spring.mvc.contentnegotiation.parameter-name=mediaType
|
||||||
|
|
||||||
|
# https://github.com/spring-projects/spring-boot/issues/24207
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<rest-assured.version>3.1.0</rest-assured.version>
|
<rest-assured.version>3.1.0</rest-assured.version>
|
||||||
<oauth.version>2.3.3.RELEASE</oauth.version>
|
<oauth.version>2.4.0.RELEASE</oauth.version>
|
||||||
<oauth-auto.version>2.1.1.RELEASE</oauth-auto.version>
|
<oauth-auto.version>2.4.0</oauth-auto.version>
|
||||||
<spring-security-kerberos.version>1.0.1.RELEASE</spring-security-kerberos.version>
|
<spring-security-kerberos.version>1.0.1.RELEASE</spring-security-kerberos.version>
|
||||||
<apacheds-jdbm1.version>2.0.0-M2</apacheds-jdbm1.version>
|
<apacheds-jdbm1.version>2.0.0-M2</apacheds-jdbm1.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
@ -2,6 +2,7 @@ server:
|
||||||
port: 8083
|
port: 8083
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /ui2
|
context-path: /ui2
|
||||||
|
register-default-servlet: true
|
||||||
session:
|
session:
|
||||||
cookie:
|
cookie:
|
||||||
name: UI2SESSION
|
name: UI2SESSION
|
||||||
|
|
|
@ -2,6 +2,7 @@ server:
|
||||||
port: 8082
|
port: 8082
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /ui
|
context-path: /ui
|
||||||
|
register-default-servlet: true
|
||||||
session:
|
session:
|
||||||
cookie:
|
cookie:
|
||||||
name: UISESSION
|
name: UISESSION
|
||||||
|
|
|
@ -61,27 +61,6 @@
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.security</groupId>
|
|
||||||
<artifactId>spring-security-test</artifactId>
|
|
||||||
<version>${spring.mvc.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.security</groupId>
|
|
||||||
<artifactId>spring-security-web</artifactId>
|
|
||||||
<version>${spring.mvc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.security</groupId>
|
|
||||||
<artifactId>spring-security-config</artifactId>
|
|
||||||
<version>${spring.mvc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-webmvc</artifactId>
|
|
||||||
<version>${spring.mvc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.servlet</groupId>
|
<groupId>javax.servlet</groupId>
|
||||||
<artifactId>javax.servlet-api</artifactId>
|
<artifactId>javax.servlet-api</artifactId>
|
||||||
|
@ -104,7 +83,6 @@
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring.mvc.version>5.2.2.RELEASE</spring.mvc.version>
|
|
||||||
<javax.version>4.0.1</javax.version>
|
<javax.version>4.0.1</javax.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
spring.social.facebook.appId=1715784745414888
|
spring.social.facebook.appId=1715784745414888
|
||||||
spring.social.facebook.appSecret=abefd6497e9cc01ad03be28509617bf0
|
spring.social.facebook.appSecret=abefd6497e9cc01ad03be28509617bf0
|
||||||
spring.thymeleaf.cache=false
|
spring.thymeleaf.cache=false
|
||||||
|
server.servlet.register-default-servlet=true
|
|
@ -114,7 +114,7 @@
|
||||||
<awaitility.version>3.1.6</awaitility.version>
|
<awaitility.version>3.1.6</awaitility.version>
|
||||||
<junit.jupiter.version>5.7.0</junit.jupiter.version>
|
<junit.jupiter.version>5.7.0</junit.jupiter.version>
|
||||||
<junit.commons.version>1.7.0</junit.commons.version>
|
<junit.commons.version>1.7.0</junit.commons.version>
|
||||||
<spring.version>5.2.8.RELEASE</spring.version>
|
<spring.version>5.3.0</spring.version>
|
||||||
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
|
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
|
||||||
<javax.persistence.version>2.1.1</javax.persistence.version>
|
<javax.persistence.version>2.1.1</javax.persistence.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
Loading…
Reference in New Issue