-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplicationContext.xml
47 lines (38 loc) · 1.45 KB
/
applicationContext.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/springframeworkg-beans.dtd">
<beans>
<bean id="openOfficeConnection" class="com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection"
destroy-method="disconnect">
<!-- OOo port number -->
<constructor-arg>
<value>libreoffice</value>
</constructor-arg>
<constructor-arg>
<value>8100</value>
</constructor-arg>
</bean>
<bean id="documentFormatRegistry" class="com.artofsolving.jodconverter.XmlDocumentFormatRegistry">
<constructor-arg type="java.io.InputStream">
<value>classpath:/documentFormats.xml</value>
</constructor-arg>
</bean>
<bean id="documentConverter" class="com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter">
<constructor-arg index="0">
<ref bean="openOfficeConnection" />
</constructor-arg>
<constructor-arg index="1">
<ref bean="documentFormatRegistry" />
</constructor-arg>
</bean>
<!-- File Upload settings -->
<bean id="fileItemFactory" class="org.apache.commons.fileupload.disk.DiskFileItemFactory" />
<bean id="fileUpload" class="org.apache.commons.fileupload.servlet.ServletFileUpload">
<constructor-arg>
<ref bean="fileItemFactory" />
</constructor-arg>
<property name="sizeMax">
<value>4194304</value><!-- 4MB -->
</property>
</bean>
</beans>