質問編集履歴
4
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,89 @@
|
|
1
1
|
```ここに言語を入力
|
2
2
|
|
3
|
+
<!DOCTYPE html>
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
8
|
+
|
9
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
14
|
+
|
15
|
+
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
26
|
+
|
27
|
+
<head>
|
28
|
+
|
29
|
+
<meta charset="UTF-8"></meta>
|
30
|
+
|
31
|
+
<title>SNS Web版</title>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<center>
|
38
|
+
|
39
|
+
</head>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<body>
|
44
|
+
|
45
|
+
<h1>SNS Web版</h1>
|
46
|
+
|
47
|
+
<br/><br/>
|
48
|
+
|
49
|
+
<p style="color: red">${errorMessage}</p>
|
50
|
+
|
51
|
+
<br/>
|
52
|
+
|
53
|
+
<head>
|
54
|
+
|
55
|
+
<meta http-equiv="Content-Type" content="/html; charset=UTF-8"/>
|
56
|
+
|
57
|
+
<meta http-equiv="content-style-type" content="/css">
|
58
|
+
|
59
|
+
<link rel="stylesheet" th:href="@{/login.css}" />
|
60
|
+
|
61
|
+
<link rel="stylesheet" href="login.css">
|
62
|
+
|
63
|
+
<link rel="stylesheet" href="login.css" type="/css"/>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<br/>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<p><a class="move_button" tabindex ="5" href="login.jsp"><button type="submit">ログイン画面へ</button></a></p>
|
78
|
+
|
79
|
+
</body>
|
80
|
+
|
81
|
+
</html>
|
82
|
+
|
83
|
+
</center>
|
84
|
+
|
85
|
+
``````ここに言語を入力
|
86
|
+
|
3
87
|
<?xml version="1.0" encoding="UTF-8"?>
|
4
88
|
|
5
89
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
eclipce tomcat エラー404
|
test
CHANGED
File without changes
|
2
追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
eclipce tomcat エラー404
|
1
|
+
ついきeclipce tomcat エラー404
|
test
CHANGED
@@ -115,3 +115,29 @@
|
|
115
115
|
|
116
116
|
|
117
117
|
Apache Tomcat/9.0.17
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
サイト上でhttp://localhost:8080/にアクセスした場合も下記エラーが出ます。
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
HTTPステータス 404 – 見つかりません。
|
130
|
+
|
131
|
+
タイプ ステータスレポート
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
メッセージ /
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
説明 オリジンサーバーは、ターゲットリソースの現在の表現を見つけられなかったか、またはそれが存在することを開示するつもりはありません。
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
Apache Tomcat/9.0.17
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,84 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
|
3
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
4
|
+
|
5
|
+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
6
|
+
|
7
|
+
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
8
|
+
|
9
|
+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
10
|
+
|
11
|
+
id="WebApp_ID" version="3.1">
|
12
|
+
|
13
|
+
<display-name>プロジェクト名</display-name>
|
14
|
+
|
15
|
+
<listener>
|
16
|
+
|
17
|
+
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
18
|
+
|
19
|
+
</listener>
|
20
|
+
|
21
|
+
<filter>
|
22
|
+
|
23
|
+
<filter-name>CharacterEncodingFilter</filter-name>
|
24
|
+
|
25
|
+
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
26
|
+
|
27
|
+
<init-param>
|
28
|
+
|
29
|
+
<param-name>encoding</param-name>
|
30
|
+
|
31
|
+
<param-value>utf-8</param-value>
|
32
|
+
|
33
|
+
</init-param>
|
34
|
+
|
35
|
+
<init-param>
|
36
|
+
|
37
|
+
<param-name>forceEncoding</param-name>
|
38
|
+
|
39
|
+
<param-value>true</param-value>
|
40
|
+
|
41
|
+
</init-param>
|
42
|
+
|
43
|
+
</filter>
|
44
|
+
|
45
|
+
<filter-mapping>
|
46
|
+
|
47
|
+
<filter-name>CharacterEncodingFilter</filter-name>
|
48
|
+
|
49
|
+
<url-pattern>/*</url-pattern>
|
50
|
+
|
51
|
+
</filter-mapping>
|
52
|
+
|
53
|
+
<servlet>
|
54
|
+
|
55
|
+
<servlet-name>dispatcherServlet</servlet-name>
|
56
|
+
|
57
|
+
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
58
|
+
|
59
|
+
<init-param>
|
60
|
+
|
61
|
+
<param-name>contextConfigLocation</param-name>
|
62
|
+
|
63
|
+
<param-value></param-value>
|
64
|
+
|
65
|
+
</init-param>
|
66
|
+
|
67
|
+
<load-on-startup>1</load-on-startup>
|
68
|
+
|
69
|
+
</servlet>
|
70
|
+
|
71
|
+
<servlet-mapping>
|
72
|
+
|
73
|
+
<servlet-name>dispatcherServlet</servlet-name>
|
74
|
+
|
75
|
+
<url-pattern>/</url-pattern>
|
76
|
+
|
77
|
+
</servlet-mapping>
|
78
|
+
|
79
|
+
</web-app>
|
80
|
+
|
1
|
-
eclipse,tomcatを使ってサイトを作ろうとしています。
|
81
|
+
```eclipse,tomcatを使ってサイトを作ろうとしています。
|
2
82
|
|
3
83
|
eclipse上でサーバー実行をしたところ下記エラーになります。
|
4
84
|
|