Skip to content

Commit 87449d3

Browse files
authored
https://jira.baeldung.com/browse/BAEL-8994 new module (jarkarta-servl… (#18954)
* https://jira.baeldung.com/browse/BAEL-8994 new module (jarkarta-servlets-3 * https://jira.baeldung.com/browse/BAEL-8994 new module (jarkarta-servlets-3
1 parent f82c7de commit 87449d3

File tree

5 files changed

+66
-2
lines changed

5 files changed

+66
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.baeldung.javax-servlets</groupId>
7+
<artifactId>jakarta-servlets-3</artifactId>
8+
<version>1.0-SNAPSHOT</version>
9+
<packaging>war</packaging>
10+
<name>jakarta-servlets-3</name>
11+
12+
<parent>
13+
<groupId>com.baeldung</groupId>
14+
<artifactId>web-modules</artifactId>
15+
<version>1.0.0-SNAPSHOT</version>
16+
</parent>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>jakarta.servlet</groupId>
21+
<artifactId>jakarta.servlet-api</artifactId>
22+
<version>${jakarta.servlet-api.version}</version>
23+
<scope>provided</scope>
24+
</dependency>
25+
</dependencies>
26+
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-compiler-plugin</artifactId>
32+
<configuration>
33+
<source>21</source>
34+
<target>21</target>
35+
</configuration>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
40+
<properties>
41+
<jakarta.servlet-api.version>6.1.0</jakarta.servlet-api.version>
42+
</properties>
43+
44+
</project>

web-modules/jakarta-servlets-2/src/main/java/com/baeldung/jakartaeetomcat/CurrentDateAndTime.java renamed to web-modules/jakarta-servlets-3/src/main/java/com/baeldung/jakartaeetomcat/CurrentDateAndTime.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
3434
processRequest(request, response);
3535
}
3636

37-
38-
3937
}
4038

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<root level="INFO">
11+
<appender-ref ref="STDOUT" />
12+
</root>
13+
</configuration>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://java.sun.com/xml/ns/javaee"
4+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5+
http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"
6+
version="3.1">
7+
8+
</web-app>

web-modules/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<module>java-takes</module>
2626
<module>jakarta-servlets</module>
2727
<module>jakarta-servlets-2</module>
28+
<module>jakarta-servlets-3</module>
2829
<module>jee-7</module>
2930
<module>jersey</module>
3031
<module>jersey-2</module>

0 commit comments

Comments
 (0)