forked from JavaOPs/topjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1_4_switch_to_war.patch
More file actions
83 lines (80 loc) · 2.46 KB
/
1_4_switch_to_war.patch
File metadata and controls
83 lines (80 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Index: src/main/webapp/users.jsp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/webapp/users.jsp (revision )
+++ src/main/webapp/users.jsp (revision )
@@ -0,0 +1,10 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+ <title>Users</title>
+</head>
+<body>
+<h3><a href="index.html">Home</a></h3>
+<h2>Users</h2>
+</body>
+</html>
\ No newline at end of file
Index: src/main/webapp/index.html
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/webapp/index.html (revision )
+++ src/main/webapp/index.html (revision )
@@ -0,0 +1,13 @@
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>Java Enterprise (Topjava)</title>
+</head>
+<body>
+<h3>Проект <a href="https://github.com/JavaWebinar/topjava" target="_blank">Java Enterprise (Topjava)</a></h3>
+<hr>
+<ul>
+ <li><a href="users">Users</a></li>
+</ul>
+</body>
+</html>
Index: src/main/webapp/WEB-INF/web.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/webapp/WEB-INF/web.xml (revision )
+++ src/main/webapp/WEB-INF/web.xml (revision )
@@ -0,0 +1,19 @@
+<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
+ http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
+ version="3.1">
+
+ <display-name>Topjava</display-name>
+
+ <servlet>
+ <servlet-name>userServlet</servlet-name>
+ <servlet-class>ru.javawebinar.topjava.web.UserServlet</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>userServlet</servlet-name>
+ <url-pattern>/users</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Index: pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pom.xml (date 1499898097000)
+++ pom.xml (revision )
@@ -4,7 +4,7 @@
<groupId>ru.javawebinar</groupId>
<artifactId>topjava</artifactId>
- <packaging>jar</packaging>
+ <packaging>war</packaging>
<version>1.0-SNAPSHOT</version>