瀏覽代碼

修改配置文件,增加附件上传的配置项。

zzy.zhiyuan.foxmail 8 年之前
父節點
當前提交
6e78596105
共有 2 個文件被更改,包括 21 次插入2 次删除
  1. 10 1
      src/main/resources/project.properties
  2. 11 1
      src/main/webapp/WEB-INF/web.xml

+ 10 - 1
src/main/resources/project.properties

@ -1,5 +1,5 @@
1 1
dataSource=com.alibaba.druid.pool.DruidDataSource
2
dataSource.url=jdbc:postgresql://127.0.0.1:5432/ekexiu
2
dataSource.url=jdbc:postgresql://121.42.53.174:5432/ekexiu
3 3
dataSource.username=postgres
4 4
dataSource.password=postgres
5 5
dataSource.initialSize::int=1
@ -61,3 +61,12 @@ mailService_Map.map-key-1::java.lang.String=mail.transport.protocol
61 61
mailService_Map.map-val-1::java.lang.String=smtp
62 62
mailService_Map.map-key-2::java.lang.String=mail.smtp.auth
63 63
mailService_Map.map-val-2::java.lang.String=true
64
resFileUploadServlet=org.jfw.web.servlet.fileupload.cached.CachedUploadServletConfig
65
resFileUploadServlet.cacheByMemory::boolean=false
66
resFileUploadServlet.cachePath::java.io.File=/kexiu/www/html/accessory/temp
67
resFileUploadServlet.defaultSizeLimit::long=10485760
68
resFileUploadServlet.defaultCountLimit::int=10
69
com_ekexiu_portal_service_AccessoryService.tmpPath::java.io.File=/kexiu/www/html/accessory/temp
70
com_ekexiu_portal_service_AccessoryService.accessoryPath::java.io.File=/kexiu/www/html/accessory
71
com_ekexiu_portal_service_ImagesService.tmpPath::java.io.File=/kexiu/www/html/tmp
72
com_ekexiu_portal_service_ImagesService.resourcePath::java.io.File=/kexiu/www/html/resource

+ 11 - 1
src/main/webapp/WEB-INF/web.xml

@ -25,7 +25,13 @@
25 25
  	<servlet-name>cachedFileUploadServlet</servlet-name>
26 26
  	<servlet-class>org.jfw.web.servlet.fileupload.cached.CachedUploadServlet</servlet-class>
27 27
  	<load-on-startup>2</load-on-startup>
28
  </servlet>  
28
  </servlet>
29
  <servlet>
30
  	<servlet-name>resFileUploadServlet</servlet-name>
31
  	<servlet-class>org.jfw.web.servlet.fileupload.cached.CachedUploadServlet</servlet-class>
32
  	<load-on-startup>3</load-on-startup>
33
  </servlet>
34
  
29 35
  <servlet-mapping>
30 36
    <servlet-name>ajax</servlet-name>
31 37
    <url-pattern>/ajax/*</url-pattern>
@ -34,4 +40,8 @@
34 40
    <servlet-name>cachedFileUploadServlet</servlet-name>
35 41
    <url-pattern>/ajax/cachedFileUpload</url-pattern>
36 42
  </servlet-mapping>
43
  <servlet-mapping>
44
    <servlet-name>resFileUploadServlet</servlet-name>
45
    <url-pattern>/ajax/resFileUpload</url-pattern>
46
  </servlet-mapping>
37 47
</web-app>