- Remove old ExportController
- Add support for simple REST transformation
This commit is contained in:
@@ -15,15 +15,10 @@
|
||||
<context:annotation-config/>
|
||||
<mvc:annotation-driven/>
|
||||
|
||||
|
||||
<!-- To enable @RequestMapping process on type level and method level -->
|
||||
<!--<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>-->
|
||||
<!--<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>-->
|
||||
|
||||
<bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
|
||||
<property name="classesToBeBound">
|
||||
<list>
|
||||
<value>com.wisemapping.rest.model.RestMindMap</value>
|
||||
<value>com.wisemapping.rest.model.RestMindmap</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -33,11 +28,14 @@
|
||||
<property name="favorPathExtension" value="true"/>
|
||||
<property name="mediaTypes">
|
||||
<map>
|
||||
<entry key="xml" value="text/xml"/>
|
||||
<entry key="html" value="text/html"/>
|
||||
<entry key="xml" value="text/xml"/>
|
||||
<entry key="json" value="application/json"/>
|
||||
<entry key="freemind" value="application/freemind"/>
|
||||
<entry key="pdf" value="application/pdf"/>
|
||||
<entry key="png" value="application/png"/>
|
||||
<entry key="png" value="image/png"/>
|
||||
<entry key="jpeg" value="image/jpg"/>
|
||||
<entry key="svg" value="image/svg+xml"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="viewResolvers">
|
||||
@@ -76,5 +74,7 @@
|
||||
<constructor-arg value="application/freemind"/>
|
||||
</bean>
|
||||
|
||||
|
||||
<bean id="transformViewSvg" class="com.wisemapping.rest.view.TransformView">
|
||||
<constructor-arg value="image/svg+xml"/>
|
||||
</bean>
|
||||
</beans>
|
Reference in New Issue
Block a user