Skip to content

Commit 82bcb80

Browse files
Merge pull request #27 from bobocode-projects/GP-135-migrate-java-web-course-to-java-17
2 parents 7ade4bb + bc1577b commit 82bcb80

File tree

34 files changed

+52
-66
lines changed

34 files changed

+52
-66
lines changed

.github/workflows/projectActions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
uses: srggrs/[email protected]
1717
if: github.event.action == 'opened' || contains(github.event.issue.labels.*.name, 'java-web')
1818
with:
19-
project: 'https://github.com/bobocode-projects/java-web-course/projects/1'
19+
project: 'https://github.com/bobocode-projects/java-web-exercises/projects/1'

0-0-intro/0-0-1-welcome-to-java-web-course/README.MD renamed to 0-0-intro/0-0-1-welcome-to-java-web-exercises/README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/> Welcome to Java Web Course
1+
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/> Welcome to Java Web Exercises
22

33
This is a welcome test project to check if everything works okay on your computer
44

55
### You should have installed on your local machine ❗️
6-
* [JDK 11+](https://jdk.java.net/15/)
6+
* [JDK 17+](hhttps://jdk.java.net/17/)
77
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
88

99
### How to start ❓
1010

1111
* Just **clone the repository** to your computer
12-
* Open project in your IDE and **configure JDK 11** for the project
12+
* Open project in your IDE and **configure JDK 17** for the project
1313
* Open terminal and **run a command** `./mvnw clean package` (UNIX) or `mvnw.cmd clean package` (Windows)
1414
* Open class `WelcomeToJavaWebCourseApp` and **run** `main()`
1515
* [Click here](http://localhost:8080/welcome) 🔗

0-0-intro/0-0-1-welcome-to-java-web-course/pom.xml renamed to 0-0-intro/0-0-1-welcome-to-java-web-exercises/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

12-
<artifactId>0-0-1-welcome-to-java-web-course</artifactId>
12+
<artifactId>0-0-1-welcome-to-java-web-exercises</artifactId>
1313

1414
<properties>
15-
<maven.compiler.source>11</maven.compiler.source>
16-
<maven.compiler.target>11</maven.compiler.target>
1715
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1816
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1917
</properties>

0-0-intro/0-0-1-welcome-to-java-web-course/src/main/resources/templates/welcome.html renamed to 0-0-intro/0-0-1-welcome-to-java-web-exercises/src/main/resources/templates/welcome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</head>
77
<body align="center">
88
<p style="font-size: 64px; margin-top: 10%" th:text="${name != null} ? ${name} + ',' : '&nbsp;'"></p>
9-
<p style="font-size: 64px; margin-top: 8%">Welcome to <b>Java Web Course</b></p>
9+
<p style="font-size: 64px; margin-top: 8%">Welcome to <b>Java Web Exercises</b></p>
1010
<div>
1111
<img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/bobo_logo.png"
1212
style="width: 30%"/>

0-0-intro/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
@@ -12,7 +12,7 @@
1212
<artifactId>0-0-intro</artifactId>
1313
<packaging>pom</packaging>
1414
<modules>
15-
<module>0-0-1-welcome-to-java-web-course</module>
15+
<module>0-0-1-welcome-to-java-web-exercises</module>
1616
</modules>
1717

1818
</project>

1-0-networking-and-http/1-0-0-hello-network-socket/README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Learn **Sockets** – the essential part of Java networking 💪
2020

2121
---
2222

23-
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-course/tree/main/0-0-intro#introduction)
23+
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-exercises/tree/main/0-0-intro#introduction)
2424

2525
##
2626
<div align="center"><img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/animation/GitHub%20Star_3.gif" height=50/></div>

1-0-networking-and-http/1-0-0-hello-network-socket/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>1-0-0-hello-network-socket</artifactId>
13-
<properties>
14-
<maven.compiler.source>11</maven.compiler.source>
15-
<maven.compiler.target>11</maven.compiler.target>
16-
</properties>
1713

1814

1915
</project>

1-0-networking-and-http/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

2-0-servlet-api/2-0-1-hello-servlet-api/README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Start learning Servlet API – the foundation of Java web applications 💪
33

44
### Pre-conditions ❗
5-
You're supposed to be familiar with [Java Fundamentals](https://github.com/bobocode-projects/java-fundamentals-course#welcome-to-the-java-fundamentals-course)
5+
You're supposed to be familiar with [Java Fundamentals](https://github.com/bobocode-projects/java-fundamentals-exercises#welcome-to-the-java-fundamentals-exercises)
66

77
### Objectives
88
* **install** [Apache Tomcat Container](https://tomcat.apache.org/download-90.cgi) locally (if you don't have it yet) ✅
@@ -43,7 +43,7 @@ todo
4343
[![Linked List](https://yt-embed.herokuapp.com/embed?v=s11Fjue5Svs)](https://youtu.be/s11Fjue5Svs)
4444

4545
---
46-
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-course/tree/main/0-0-intro#introduction)
46+
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-exercises/tree/main/0-0-intro#introduction)
4747

4848
##
4949
<div align="center"><img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/animation/GitHub%20Star_3.gif" height=50/></div>

2-0-servlet-api/2-0-1-hello-servlet-api/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
<packaging>war</packaging>
1414

1515
<properties>
16-
<maven.compiler.source>11</maven.compiler.source>
17-
<maven.compiler.target>11</maven.compiler.target>
1816
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1917
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2018
</properties>

2-0-servlet-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

3-0-spring-framework/3-0-0-hello-spring-framework/README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You're supposed to be familiar with *Spring IoC* and *Dependency injection*
2323
[![Linked List](https://yt-embed.herokuapp.com/embed?v=IjyYJhIRNG4)](https://youtu.be/IjyYJhIRNG4)
2424

2525
---
26-
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-course/tree/main/0-0-intro#introduction)
26+
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-exercises/tree/main/0-0-intro#introduction)
2727

2828
##
2929
<div align="center"><img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/animation/GitHub%20Star_3.gif" height=50/></div>

3-0-spring-framework/3-0-0-hello-spring-framework/src/test/java/com/bobocode/ApplicationContextTest.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
package com.bobocode;
22

3+
import static org.assertj.core.api.Assertions.assertThat;
4+
35
import com.bobocode.dao.AccountDao;
4-
import com.bobocode.dao.FakeAccountDao;
56
import com.bobocode.service.AccountService;
6-
import org.junit.jupiter.api.*;
7+
import java.util.Map;
8+
import org.junit.jupiter.api.DisplayName;
9+
import org.junit.jupiter.api.MethodOrderer;
10+
import org.junit.jupiter.api.Order;
11+
import org.junit.jupiter.api.Test;
12+
import org.junit.jupiter.api.TestMethodOrder;
713
import org.springframework.beans.factory.annotation.Autowired;
814
import org.springframework.context.ApplicationContext;
915
import org.springframework.context.annotation.ComponentScan;
1016
import org.springframework.context.annotation.Configuration;
1117
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
1218

13-
import java.util.Map;
14-
15-
import static org.assertj.core.api.Assertions.assertThat;
16-
import static org.junit.jupiter.api.Assertions.assertNotNull;
17-
1819
@SpringJUnitConfig
1920
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
2021
class ApplicationContextTest {

3-0-spring-framework/3-0-1-hello-spring-mvc/README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Improve your *SSpring MVC* skills
66

77
---
88

9-
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-course/tree/main/0-0-intro#introduction)
9+
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-exercises/tree/main/0-0-intro#introduction)
1010

1111
##
1212
<div align="center"><img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/animation/GitHub%20Star_3.gif" height=50/></div>

3-0-spring-framework/3-0-2-view-resolver/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
<maven.compiler.source>11</maven.compiler.source>
18-
<maven.compiler.target>11</maven.compiler.target>
1917
</properties>
2018

2119
<dependencies>

3-0-spring-framework/3-1-1-dispatcher-servlet-initializer/README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You're supposed to be familiar with *Spring MVC*
1919
todo
2020

2121
---
22-
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-course/tree/main/0-0-intro#introduction)
22+
#### 🆕 First time here? – [See Introduction](https://github.com/bobocode-projects/java-fundamentals-exercises/tree/main/0-0-intro#introduction)
2323

2424
##
2525
<div align="center"><img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/animation/GitHub%20Star_3.gif" height=50/></div>

3-0-spring-framework/3-1-1-dispatcher-servlet-initializer/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-war-plugin</artifactId>
36-
<version>2.6</version>
36+
<version>3.3.2</version>
3737
<configuration>
3838
<failOnMissingWebXml>false</failOnMissingWebXml>
3939
</configuration>

3-0-spring-framework/3-2-1-account-rest-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<plugin>
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-war-plugin</artifactId>
47-
<version>2.6</version>
47+
<version>3.3.2</version>
4848
<configuration>
4949
<failOnMissingWebXml>false</failOnMissingWebXml>
5050
</configuration>

3-0-spring-framework/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

4-0-spring-boot-rest-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

5-0-spring-boot-rest-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/>Welcome to the Java Web Course
1+
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/>Welcome to the Java Web Exercises
22
Build strong networking and web development skills that you will need for real-world Enterprise Java development
33

44
## Why

java-web-course-util/java-web-util/pom.xml renamed to java-web-exercises-util/java-web-util/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course-util</artifactId>
6+
<artifactId>java-web-exercises-util</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

java-web-course-util/pom.xml renamed to java-web-exercises-util/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<packaging>pom</packaging>
1212

13-
<artifactId>java-web-course-util</artifactId>
13+
<artifactId>java-web-exercises-util</artifactId>
1414

1515
<modules>
1616
<module>spring-framework-exercises-model</module>

java-web-course-util/spring-framework-exercises-model/pom.xml renamed to java-web-exercises-util/spring-framework-exercises-model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course-util</artifactId>
6+
<artifactId>java-web-exercises-util</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>

java-web-course-util/spring-framework-exercises-util/pom.xml renamed to java-web-exercises-util/spring-framework-exercises-util/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course-util</artifactId>
6+
<artifactId>java-web-exercises-util</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
@@ -19,9 +19,9 @@
1919
<version>1.0-SNAPSHOT</version>
2020
</dependency>
2121
<dependency>
22-
<groupId>io.codearte.jfairy</groupId>
22+
<groupId>com.devskiller</groupId>
2323
<artifactId>jfairy</artifactId>
24-
<version>0.5.7</version>
24+
<version>0.6.5</version>
2525
</dependency>
2626
</dependencies>
2727
</project>

java-web-course-util/spring-framework-exercises-util/src/main/java/com/bobocode/TestDataGenerator.java renamed to java-web-exercises-util/spring-framework-exercises-util/src/main/java/com/bobocode/TestDataGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import com.bobocode.model.Account;
44
import com.bobocode.model.Gender;
5-
import io.codearte.jfairy.Fairy;
6-
import io.codearte.jfairy.producer.person.Person;
7-
5+
import com.devskiller.jfairy.Fairy;
6+
import com.devskiller.jfairy.producer.person.Person;
87
import java.math.BigDecimal;
98
import java.time.LocalDate;
109
import java.time.LocalDateTime;
1110
import java.util.concurrent.ThreadLocalRandom;
1211

1312
public class TestDataGenerator {
13+
1414
public Account generateAccount() {
1515
Fairy fairy = Fairy.create();
1616
Person person = fairy.person();
@@ -30,7 +30,7 @@ private Account convertToAccount(Person person) {
3030
account.setEmail(person.getEmail());
3131
account.setBirthday(LocalDate.of(
3232
person.getDateOfBirth().getYear(),
33-
person.getDateOfBirth().getMonthOfYear(),
33+
person.getDateOfBirth().getMonth(),
3434
person.getDateOfBirth().getDayOfMonth()));
3535
account.setGender(Gender.valueOf(person.getSex().name()));
3636
return account;

lesson-demo/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>java-web-course</artifactId>
6+
<artifactId>java-web-exercises</artifactId>
77
<groupId>com.bobocode</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>lesson-demo</artifactId>
1313

14-
<properties>
15-
<maven.compiler.source>11</maven.compiler.source>
16-
<maven.compiler.target>11</maven.compiler.target>
17-
</properties>
18-
1914
<dependencies>
2015
<dependency>
2116
<groupId>jakarta.servlet</groupId>

0 commit comments

Comments
 (0)