質問編集履歴
1
ApplicationContext.xmlを追加いたしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -204,14 +204,33 @@
|
|
204
204
|
|
205
205
|
}
|
206
206
|
```
|
207
|
-
###試したこと
|
208
|
-
|
207
|
+
ApplicationContext.xml
|
208
|
+
```xml
|
209
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
210
|
+
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
|
211
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
|
212
|
+
xmlns:context="http://www.springframework.org/schema/context"
|
213
|
+
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
214
|
+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
215
|
+
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
209
216
|
|
217
|
+
<annotation-driven />
|
218
|
+
|
219
|
+
<resources mapping="/resources/**" location="/resources/" />
|
220
|
+
|
210
|
-
|
221
|
+
<beans:bean
|
222
|
+
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
223
|
+
<beans:property name="prefix" value="/WEB-INF/echo/" />
|
224
|
+
<beans:property name="suffix" value=".jsp" />
|
211
|
-
<
|
225
|
+
</beans:bean>
|
226
|
+
|
227
|
+
<beans:bean id="appProps" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
228
|
+
<beans:property name="ignoreResourceNotFound" value="true"/>
|
229
|
+
<beans:property name="locations" value="classpath:app.properties"/>
|
230
|
+
</beans:bean>
|
231
|
+
|
212
|
-
|
232
|
+
<context:component-scan base-package="example.app" />
|
213
|
-
|
233
|
+
|
214
|
-
<spring-test.version>4.1.6.RELEASE</spring-test.version>
|
215
|
-
|
234
|
+
</beans:beans>
|
235
|
+
|
216
|
-
```
|
236
|
+
```
|
217
|
-
pom.xmlに記述追加
|