Skip to content

Commit c991d68

Browse files
committed
Adapt dependency versions to resolve version incompatibilities.
1 parent 595a545 commit c991d68

File tree

3 files changed

+24
-44
lines changed

3 files changed

+24
-44
lines changed

pom.xml

+24-39
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,44 @@
2020
</plugins>
2121
</build>
2222

23-
2423
<dependencies>
2524
<dependency>
2625
<groupId>org.springframework</groupId>
2726
<artifactId>spring-core</artifactId>
28-
<version>5.2.24.RELEASE</version>
27+
<version>5.1.8.RELEASE</version>
2928
</dependency>
3029
<dependency>
3130
<groupId>org.springframework</groupId>
3231
<artifactId>spring-context</artifactId>
33-
<version>5.2.22.RELEASE</version>
32+
<version>5.1.8.RELEASE</version>
3433
</dependency>
3534
<dependency>
3635
<groupId>org.projectlombok</groupId>
3736
<artifactId>lombok</artifactId>
38-
<version>LATEST</version>
37+
<version>1.18.8</version>
38+
<scope>provided</scope>
3939
</dependency>
4040
<dependency>
4141
<groupId>org.springframework</groupId>
4242
<artifactId>spring-test</artifactId>
43-
<version>LATEST</version>
43+
<version>5.1.8.RELEASE</version>
44+
<scope>test</scope>
4445
</dependency>
4546
<dependency>
4647
<groupId>org.springframework</groupId>
4748
<artifactId>spring-web</artifactId>
48-
<version>6.0.0</version>
49+
<version>5.1.8.RELEASE</version>
4950
</dependency>
5051
<dependency>
5152
<groupId>org.aspectj</groupId>
5253
<artifactId>aspectjrt</artifactId>
53-
<version>LATEST</version>
54+
<version>1.9.4</version>
5455
</dependency>
5556
<dependency>
5657
<groupId>org.aspectj</groupId>
5758
<artifactId>aspectjweaver</artifactId>
58-
<version>LATEST</version>
59+
<version>1.9.4</version>
5960
</dependency>
60-
6161
<dependency>
6262
<groupId>mysql</groupId>
6363
<artifactId>mysql-connector-java</artifactId>
@@ -66,78 +66,63 @@
6666
<dependency>
6767
<groupId>org.springframework</groupId>
6868
<artifactId>spring-jdbc</artifactId>
69-
<version>LATEST</version>
69+
<version>5.1.8.RELEASE</version>
7070
</dependency>
7171
<dependency>
7272
<groupId>com.h2database</groupId>
7373
<artifactId>h2</artifactId>
74-
<version>2.1.210</version>
74+
<version>1.4.199</version>
7575
</dependency>
7676
<dependency>
7777
<groupId>org.springframework</groupId>
7878
<artifactId>spring-orm</artifactId>
79-
<version>LATEST</version>
79+
<version>5.1.8.RELEASE</version>
8080
</dependency>
8181
<dependency>
8282
<groupId>javax.persistence</groupId>
8383
<artifactId>javax.persistence-api</artifactId>
84-
<version>LATEST</version>
84+
<version>2.2</version>
8585
</dependency>
8686
<dependency>
8787
<groupId>org.hibernate</groupId>
8888
<artifactId>hibernate-entitymanager</artifactId>
89-
<version>LATEST</version>
89+
<version>5.4.3.Final</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>org.springframework.data</groupId>
9393
<artifactId>spring-data-jpa</artifactId>
94-
<version>1.11.23.RELEASE</version>
94+
<version>2.1.8.RELEASE</version>
9595
</dependency>
96-
<dependency>
97-
<groupId>org.springframework</groupId>
98-
<artifactId>spring-web</artifactId>
99-
<version>6.0.0</version>
100-
</dependency>
101-
<!-- Normally spring-webmvc contains many of the dependency declared above, like spring-web, spring-beans......
102-
For learning purpose, we write every dependency needed in our project.
103-
-->
10496
<dependency>
10597
<groupId>org.springframework</groupId>
10698
<artifactId>spring-webmvc</artifactId>
107-
<version>5.2.20.RELEASE</version>
99+
<version>5.1.8.RELEASE</version>
108100
</dependency>
109-
110101
<dependency>
111102
<groupId>javax.servlet</groupId>
112-
<artifactId>servlet-api</artifactId>
113-
<version>LATEST</version>
103+
<artifactId>javax.servlet-api</artifactId>
104+
<version>4.0.1</version>
105+
<scope>provided</scope>
114106
</dependency>
115-
116-
117107
<dependency>
118108
<groupId>org.springframework.boot</groupId>
119109
<artifactId>spring-boot</artifactId>
120-
<version>2.7.18</version>
110+
<version>2.1.6.RELEASE</version>
121111
</dependency>
122-
123112
<dependency>
124113
<groupId>org.springframework.boot</groupId>
125114
<artifactId>spring-boot-starter-web</artifactId>
126-
<version>2.5.12</version>
115+
<version>2.1.6.RELEASE</version>
127116
</dependency>
128-
129-
130117
<dependency>
131118
<groupId>org.springframework.security</groupId>
132119
<artifactId>spring-security-core</artifactId>
133-
<version>4.2.17.RELEASE</version>
120+
<version>5.1.6.RELEASE</version>
134121
</dependency>
135-
136122
<dependency>
137123
<groupId>org.springframework.security</groupId>
138124
<artifactId>spring-security-web</artifactId>
139-
<version>5.2.10.RELEASE</version>
125+
<version>5.1.6.RELEASE</version>
140126
</dependency>
141127
</dependencies>
142-
143-
</project>
128+
</project>

src/main/java/ioc/commun/Person.java

-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
@EqualsAndHashCode
1111
@ToString
1212
public class Person {
13-
1413
private String name;
1514
private int age;
1615
private LocalDate dateOfBirth;
1716
private Profession profession;
18-
19-
2017
}

src/main/java/ioc/question_06/MyApplicationContext.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
package ioc.question_06;
2-
import org.springframework.test.context.ContextConfiguration;
3-
import org.springframework.test.context.web.WebAppConfiguration;
42

53

64
/**

0 commit comments

Comments
 (0)