質問編集履歴

1

コードを載せました

2018/03/01 12:02

投稿

sususu
sususu

スコア99

test CHANGED
File without changes
test CHANGED
@@ -36,6 +36,62 @@
36
36
 
37
37
 
38
38
 
39
+ ```
40
+
41
+ 当該コード
42
+
43
+ <?xml version="1.0" encoding="UTF-8"?>
44
+
45
+
46
+
47
+ <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
48
+
49
+ xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
50
+
51
+ xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
52
+
53
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
54
+
55
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
56
+
57
+
58
+
59
+ <!-- Uncomment and your base-package here:
60
+
61
+ <context:component-scan
62
+
63
+ base-package="org.springframework.samples.web"/> -->
64
+
65
+
66
+
67
+ <context:component-scan base-package=”jp.ssie.helloworld.web”/>
68
+
69
+ <mvc:annotation-driven />
70
+
71
+
72
+
73
+ <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
74
+
75
+ <!-- Example: a logical view name of 'showMessage' is mapped to '/WEB-INF/jsp/showMessage.jsp' -->
76
+
77
+ <property name="prefix" value="/WEB-INF/view/"/>
78
+
79
+ <property name="suffix" value=".jsp"/>
80
+
81
+ </bean>
82
+
83
+
84
+
85
+ </beans>
86
+
87
+
88
+
89
+ ```
90
+
91
+
92
+
93
+
94
+
39
95
  開発環境
40
96
 
41
97
  OS windows10