Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9cdb898

Browse files
Ramesh FadatareRamesh Fadatare
Ramesh Fadatare
authored and
Ramesh Fadatare
committed
Upgraded to Spring Boot 3 and Java 17
1 parent 7e4800f commit 9cdb898

File tree

105 files changed

+618
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+618
-471
lines changed

‎spring-aop-advice-examples/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
<parent>
1616
<groupId>org.springframework.boot</groupId>
1717
<artifactId>spring-boot-starter-parent</artifactId>
18-
<version>2.1.4.RELEASE</version>
18+
<version>3.0.4</version>
1919
<relativePath /> <!-- lookup parent from repository -->
2020
</parent>
2121

2222
<properties>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2424
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
25-
<java.version>1.8</java.version>
25+
<java.version>17</java.version>
2626
</properties>
2727

2828
<dependencies>
@@ -44,7 +44,10 @@
4444
<groupId>org.springframework.boot</groupId>
4545
<artifactId>spring-boot-starter-aop</artifactId>
4646
</dependency>
47-
47+
<dependency>
48+
<groupId>org.springframework.boot</groupId>
49+
<artifactId>spring-boot-starter-validation</artifactId>
50+
</dependency>
4851
<dependency>
4952
<groupId>org.springframework.boot</groupId>
5053
<artifactId>spring-boot-devtools</artifactId>

‎spring-aop-advice-examples/src/main/java/net/guides/springboot2/springboot2jpacrudexample/controller/EmployeeController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.List;
44
import java.util.Map;
55

6-
import javax.validation.Valid;
6+
import jakarta.validation.Valid;
77

88
import org.springframework.beans.factory.annotation.Autowired;
99
import org.springframework.http.ResponseEntity;

‎spring-aop-advice-examples/src/main/java/net/guides/springboot2/springboot2jpacrudexample/model/Employee.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package net.guides.springboot2.springboot2jpacrudexample.model;
22

3-
import javax.persistence.Column;
4-
import javax.persistence.Entity;
5-
import javax.persistence.GeneratedValue;
6-
import javax.persistence.GenerationType;
7-
import javax.persistence.Id;
8-
import javax.persistence.Table;
3+
import jakarta.persistence.*;
94

105
@Entity
116
@Table(name = "employees")

‎spring-boot-crud-rest/pom.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.0.4.RELEASE</version>
17+
<version>3.0.4</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

2121
<properties>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
24+
<java.version>17</java.version>
2525
</properties>
2626

2727
<dependencies>
@@ -33,15 +33,18 @@
3333
<groupId>org.springframework.boot</groupId>
3434
<artifactId>spring-boot-starter-web</artifactId>
3535
</dependency>
36-
36+
<dependency>
37+
<groupId>org.springframework.boot</groupId>
38+
<artifactId>spring-boot-starter-validation</artifactId>
39+
</dependency>
3740
<dependency>
3841
<groupId>org.springframework.boot</groupId>
3942
<artifactId>spring-boot-devtools</artifactId>
4043
<scope>runtime</scope>
4144
</dependency>
4245
<dependency>
43-
<groupId>mysql</groupId>
44-
<artifactId>mysql-connector-java</artifactId>
46+
<groupId>com.mysql</groupId>
47+
<artifactId>mysql-connector-j</artifactId>
4548
<scope>runtime</scope>
4649
</dependency>
4750
<dependency>

‎spring-boot-crud-rest/src/main/java/com/companyname/springbootcrudrest/controller/UserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.List;
66
import java.util.Map;
77

8-
import javax.validation.Valid;
8+
import jakarta.validation.Valid;
99

1010
import org.springframework.beans.factory.annotation.Autowired;
1111
import org.springframework.http.ResponseEntity;

‎spring-boot-crud-rest/src/main/java/com/companyname/springbootcrudrest/model/User.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22

33
import java.util.Date;
44

5-
import javax.persistence.Column;
6-
import javax.persistence.Entity;
7-
import javax.persistence.EntityListeners;
8-
import javax.persistence.GeneratedValue;
9-
import javax.persistence.GenerationType;
10-
import javax.persistence.Id;
11-
import javax.persistence.Table;
12-
import javax.persistence.Temporal;
13-
import javax.persistence.TemporalType;
5+
import jakarta.persistence.*;
146

157
import org.springframework.data.annotation.CreatedBy;
168
import org.springframework.data.annotation.CreatedDate;

‎spring-boot-crud-rest/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spring.datasource.password = root
66

77
## Hibernate Properties
88
# The SQL dialect makes Hibernate generate better SQL for the chosen database
9-
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
9+
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
1010

1111
# Hibernate ddl auto (create, create-drop, validate, update)
1212
spring.jpa.hibernate.ddl-auto = update

‎spring-propertysource-example/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
<parent>
1414
<groupId>org.springframework.boot</groupId>
1515
<artifactId>spring-boot-starter-parent</artifactId>
16-
<version>2.0.5.RELEASE</version>
16+
<version>3.0.4</version>
1717
<relativePath/> <!-- lookup parent from repository -->
1818
</parent>
1919

2020
<properties>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
23-
<java.version>1.8</java.version>
23+
<java.version>17</java.version>
2424
</properties>
2525

2626
<dependencies>

‎springboot-async-example/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.0.6.RELEASE</version>
17+
<version>3.0.4</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

2121
<properties>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
24+
<java.version>17</java.version>
2525
</properties>
2626

2727
<dependencies>

‎springboot-crud-hibernate-example/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.0.RELEASE</version>
8+
<version>3.0.4</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>net.javaguides.springboot</groupId>
@@ -15,7 +15,7 @@
1515
<description>spring boot crud operations example with hibernate</description>
1616

1717
<properties>
18-
<java.version>1.8</java.version>
18+
<java.version>17</java.version>
1919
</properties>
2020

2121
<dependencies>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /