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 7e4800f

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

File tree

34 files changed

+22
-239
lines changed

34 files changed

+22
-239
lines changed

‎springboot2-mssql-jpa-hibernate-crud-example/pom.xml renamed to ‎springboot-mssql-jpa-hibernate-crud-example/pom.xml

Lines changed: 12 additions & 7 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.0.5.RELEASE</version>
18+
<version>3.0.4</version>
1919
<relativePath /> <!-- lookup parent from reposictory -->
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>
@@ -35,11 +35,16 @@
3535
<artifactId>spring-boot-starter-web</artifactId>
3636
</dependency>
3737

38-
<dependency>
39-
<groupId>com.microsoft.sqlserver</groupId>
40-
<artifactId>sqljdbc4</artifactId>
41-
<version>4.0</version>
42-
</dependency>
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-validation</artifactId>
41+
</dependency>
42+
<!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->
43+
<dependency>
44+
<groupId>com.microsoft.sqlserver</groupId>
45+
<artifactId>mssql-jdbc</artifactId>
46+
<version>12.2.0.jre11</version>
47+
</dependency>
4348

4449
<dependency>
4550
<groupId>org.springframework.boot</groupId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.List;
55
import java.util.Map;
66

7-
import javax.validation.Valid;
7+
import jakarta.validation.Valid;
88

99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.http.ResponseEntity;
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package net.guides.springboot2.crud.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")

0 commit comments

Comments
(0)

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