-
Notifications
You must be signed in to change notification settings - Fork 56
/
context.xml
27 lines (23 loc) · 1.23 KB
/
context.xml
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
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<context:component-scan base-package="com.monitorjbl.json.server.controller"/>
<mvc:annotation-driven/>
<bean id="jacksonConfig" class="com.monitorjbl.json.server.JacksonConfiguration">
<constructor-arg ref="mapper"/>
</bean>
<bean id="jsonViewSupport" class="com.monitorjbl.json.JsonViewSupportFactoryBean">
<constructor-arg ref="mapper"/>
<constructor-arg ref="defaultView"/>
</bean>
<bean id="mapper" class="com.fasterxml.jackson.databind.ObjectMapper"/>
<bean id="defaultView" class="com.monitorjbl.json.server.DefaultViewFactory" factory-method="instance"/>
</beans>