Skip to content

Commit f7896db

Browse files
Merge pull request #5 from darbyluv2code/feature/upgrade-spring-boot-4.0.1
Upgrade all Spring Boot projects from 3.5.9 to 4.0.1
2 parents 8541d8a + ce28750 commit f7896db

File tree

7 files changed

+31
-21
lines changed
  • section-12-spring-boot-3-quick-start/01-spring-boot-demo
  • section-13-spring-boot-3-rest-apis-quick-start
    • 01-spring-boot-rest-crud-hello-world
    • 02-spring-boot-rest-crud-students-list-base
    • 03-spring-boot-rest-crud-students-list-refactored
    • 04-spring-boot-rest-crud-students-path-variable-get-single-student
  • section-14-spring-boot-3-spring-mvc-quick-start
    • 01-thymeleafdemo-helloworld
    • 02-thymeleafdemo-helloworld-css

7 files changed

+31
-21
lines changed

section-12-spring-boot-3-quick-start/01-spring-boot-demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code.springboot.demo</groupId>
@@ -20,12 +20,12 @@
2020
<dependencies>
2121
<dependency>
2222
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<artifactId>spring-boot-starter-webmvc</artifactId>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-test</artifactId>
28+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>

section-13-spring-boot-3-rest-apis-quick-start/01-spring-boot-rest-crud-hello-world/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code</groupId>
@@ -20,12 +20,12 @@
2020
<dependencies>
2121
<dependency>
2222
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<artifactId>spring-boot-starter-webmvc</artifactId>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-test</artifactId>
28+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>

section-13-spring-boot-3-rest-apis-quick-start/02-spring-boot-rest-crud-students-list-base/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code</groupId>
@@ -20,12 +20,12 @@
2020
<dependencies>
2121
<dependency>
2222
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<artifactId>spring-boot-starter-webmvc</artifactId>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-test</artifactId>
28+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>

section-13-spring-boot-3-rest-apis-quick-start/03-spring-boot-rest-crud-students-list-refactored/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code</groupId>
@@ -20,12 +20,12 @@
2020
<dependencies>
2121
<dependency>
2222
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<artifactId>spring-boot-starter-webmvc</artifactId>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-test</artifactId>
28+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>

section-13-spring-boot-3-rest-apis-quick-start/04-spring-boot-rest-crud-students-path-variable-get-single-student/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code</groupId>
@@ -20,12 +20,12 @@
2020
<dependencies>
2121
<dependency>
2222
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<artifactId>spring-boot-starter-webmvc</artifactId>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-test</artifactId>
28+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>

section-14-spring-boot-3-spring-mvc-quick-start/01-thymeleafdemo-helloworld/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code.springboot</groupId>
@@ -24,7 +24,7 @@
2424
</dependency>
2525
<dependency>
2626
<groupId>org.springframework.boot</groupId>
27-
<artifactId>spring-boot-starter-web</artifactId>
27+
<artifactId>spring-boot-starter-webmvc</artifactId>
2828
</dependency>
2929

3030
<dependency>
@@ -35,7 +35,12 @@
3535
</dependency>
3636
<dependency>
3737
<groupId>org.springframework.boot</groupId>
38-
<artifactId>spring-boot-starter-test</artifactId>
38+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
39+
<scope>test</scope>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-starter-thymeleaf-test</artifactId>
3944
<scope>test</scope>
4045
</dependency>
4146
</dependencies>

section-14-spring-boot-3-spring-mvc-quick-start/02-thymeleafdemo-helloworld-css/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.9</version>
9+
<version>4.0.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.luv2code.springboot</groupId>
@@ -24,7 +24,7 @@
2424
</dependency>
2525
<dependency>
2626
<groupId>org.springframework.boot</groupId>
27-
<artifactId>spring-boot-starter-web</artifactId>
27+
<artifactId>spring-boot-starter-webmvc</artifactId>
2828
</dependency>
2929

3030
<dependency>
@@ -35,7 +35,12 @@
3535
</dependency>
3636
<dependency>
3737
<groupId>org.springframework.boot</groupId>
38-
<artifactId>spring-boot-starter-test</artifactId>
38+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
39+
<scope>test</scope>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-starter-thymeleaf-test</artifactId>
3944
<scope>test</scope>
4045
</dependency>
4146
</dependencies>

0 commit comments

Comments
 (0)