質問編集履歴
3
ソースの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<body>
|
78
78
|
|
79
|
-
<a href="BusinessScreen
|
79
|
+
<a href="./hellowebapplication/BusinessScreen">業務画面へ</a>
|
80
80
|
|
81
81
|
|
82
82
|
|
@@ -114,7 +114,7 @@
|
|
114
114
|
|
115
115
|
|
116
116
|
|
117
|
-
<a href="
|
117
|
+
<a href=".">メニュー画面へ</a>
|
118
118
|
|
119
119
|
|
120
120
|
|
2
ソースの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,7 +126,7 @@
|
|
126
126
|
|
127
127
|
|
128
128
|
|
129
|
-
|
129
|
+
MenuScreenController.java
|
130
130
|
|
131
131
|
```
|
132
132
|
|
@@ -134,77 +134,89 @@
|
|
134
134
|
|
135
135
|
|
136
136
|
|
137
|
-
import java.text.DateFormat;
|
138
|
-
|
139
|
-
import java.util.Date;
|
140
|
-
|
141
|
-
import java.util.Locale;
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
import org.slf4j.Logger;
|
146
|
-
|
147
|
-
import org.slf4j.LoggerFactory;
|
148
|
-
|
149
137
|
import org.springframework.stereotype.Controller;
|
150
138
|
|
139
|
+
import org.springframework.web.bind.annotation.RequestMapping;
|
140
|
+
|
141
|
+
import org.springframework.web.bind.annotation.RequestMethod;
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
/**
|
146
|
+
|
147
|
+
* Handles requests for the application home page.
|
148
|
+
|
149
|
+
*/
|
150
|
+
|
151
|
+
@Controller
|
152
|
+
|
153
|
+
public class MenuScreenController {
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
/**
|
160
|
+
|
161
|
+
* Simply selects the home view to render by returning its name.
|
162
|
+
|
163
|
+
*/
|
164
|
+
|
165
|
+
@RequestMapping(value = "/", method = RequestMethod.GET)
|
166
|
+
|
167
|
+
public String home() {
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
return "MenuScreen";
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
BusinessScreenController.java
|
188
|
+
|
189
|
+
```
|
190
|
+
|
191
|
+
package com.example.hellowebapplication;
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
import org.springframework.stereotype.Controller;
|
196
|
+
|
151
197
|
import org.springframework.ui.Model;
|
152
198
|
|
153
199
|
import org.springframework.web.bind.annotation.RequestMapping;
|
154
200
|
|
155
|
-
|
201
|
+
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
/**
|
160
|
-
|
161
|
-
* Handles requests for the application home page.
|
162
|
-
|
163
|
-
*/
|
164
202
|
|
165
203
|
@Controller
|
166
204
|
|
205
|
+
@RequestMapping("BusinessScreen")
|
206
|
+
|
167
|
-
public class
|
207
|
+
public class BusinessScreenController {
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
208
|
+
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
209
|
+
|
176
|
-
|
177
|
-
|
210
|
+
|
178
|
-
|
179
|
-
|
211
|
+
|
180
|
-
|
212
|
+
|
181
|
-
|
213
|
+
@RequestMapping
|
182
|
-
|
214
|
+
|
183
|
-
|
215
|
+
public String index(Model model) {
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
216
|
+
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
// Date date = new Date();
|
192
|
-
|
193
|
-
// DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
|
194
|
-
|
195
|
-
//
|
196
|
-
|
197
|
-
// String formattedDate = dateFormat.format(date);
|
198
|
-
|
199
|
-
//
|
200
|
-
|
201
|
-
// model.addAttribute("serverTime", formattedDate );
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
217
|
+
return "BusinessScreen";
|
206
|
-
|
218
|
+
|
207
|
-
|
219
|
+
}
|
208
220
|
|
209
221
|
|
210
222
|
|
1
タグの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|