Skip to content

Commit 8eee61f

Browse files
committed
Upgrade critter project to Spring 3.3 and Java 21
1 parent 9bb319f commit 8eee61f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

starter/critter/pom.xml

Lines changed: 9 additions & 4 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.2.2.RELEASE</version>
8+
<version>3.3.5</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.udacity.jdnd.course3</groupId>
@@ -15,7 +15,7 @@
1515
<description>Starter code for Critter Chronologer project</description>
1616

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

2121
<dependencies>
@@ -35,8 +35,13 @@
3535
</dependency>
3636

3737
<dependency>
38-
<groupId>mysql</groupId>
39-
<artifactId>mysql-connector-java</artifactId>
38+
<groupId>org.postgresql</groupId>
39+
<artifactId>postgresql</artifactId>
40+
<scope>runtime</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.h2database</groupId>
44+
<artifactId>h2</artifactId>
4045
<scope>runtime</scope>
4146
</dependency>
4247

starter/critter/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
server.port=8082
33

44
# Data Source Setup
5-
# Note: Users must create a mysql db that they will reference here, create a user that has access to it on localhost
5+
# Note: Users must create a H2 db that they will reference here, create a user that has access to it on localhost
66
# and provide the credentials below to access it
77

88
# uncomment the below lines to view sql output in console

0 commit comments

Comments
 (0)