Browse Source

启动脚本&配置文件

pull/9/head
陈精华 6 years ago committed by kl
parent
commit
236ed405f2
  1. 3
      jodconverter-web/pom.xml
  2. 0
      jodconverter-web/src/main/bin/.gitkeep
  3. 1
      jodconverter-web/src/main/bin/startup.bat
  4. 2
      jodconverter-web/src/main/bin/startup.sh
  5. 0
      jodconverter-web/src/main/conf/.gitkeep
  6. 30
      jodconverter-web/src/main/conf/application.properties
  7. 16
      jodconverter-web/src/main/resources/application-dev.properties
  8. 11
      jodconverter-web/src/main/resources/application-prod.properties
  9. 12
      jodconverter-web/src/main/resources/application-uat.properties
  10. 15
      jodconverter-web/src/main/resources/application.properties

3
jodconverter-web/pom.xml

@ -164,6 +164,9 @@
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/conf</directory>
</resource>
</resources>
<plugins>
<plugin>

0
jodconverter-web/src/main/bin/.gitkeep

1
jodconverter-web/src/main/bin/startup.bat

@ -0,0 +1 @@
java -jar jodconverter-web-1.5.8.RELEASE.jar -> ..\\log\\kkFileView.log

2
jodconverter-web/src/main/bin/startup.sh

@ -0,0 +1,2 @@
#!/bin/bash
nohup java -jar jodconverter-web-1.5.8.RELEASE.jar ../log/kkFileView.log 2>&1 &

0
jodconverter-web/src/main/conf/.gitkeep

30
jodconverter-web/src/main/conf/application.properties

@ -0,0 +1,30 @@
server.port = 8012
spring.http.encoding.charset = utf8
## Freemarker 配置
spring.freemarker.template-loader-path = classpath:/web/
spring.freemarker.cache = false
spring.freemarker.charset = UTF-8
spring.freemarker.check-template-location = true
spring.freemarker.content-type = text/html
spring.freemarker.expose-request-attributes = true
spring.freemarker.expose-session-attributes = true
spring.freemarker.request-context-attribute = request
spring.freemarker.suffix = .ftl
##资源映射路径
file.dir = D:\\kkFileview\\
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice home路径
office.home = C:\\Program Files (x86)\\OpenOffice 4
server.tomcat.uri-encoding = UTF-8
converted.file.charset = GBK
#文件上传限制
spring.http.multipart.max-file-size=100MB
##文本类型
simText = txt,html,xml,java,properties,mp3,mp4,sql
#多媒体类型
media=mp3,mp4,flv,
#缓存实现类型,不配默认为JDK实现,可配置为redis实现(需要配置spring.redisson.address等参数)
#cache.type = redis
#redis连接
#spring.redisson.address = 192.168.1.204:6379

16
jodconverter-web/src/main/resources/application-dev.properties

@ -1,16 +0,0 @@
##资源映射路径
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice home路径
office.home = C:\\Program Files (x86)\\OpenOffice 4
server.tomcat.uri-encoding = UTF-8
converted.file.charset = GBK
#文件上传限制
spring.http.multipart.max-file-size=100MB
##文本类型
simText = txt,html,xml,java,properties,mp3,mp4,sql
#多媒体类型
media=mp3,mp4,flv,rmvb
#缓存及队列实现类型,默认为JDK实现,可选redis(需要加spring.redisson.address等配置)
#cache.type = redis
#spring.redisson.address = 192.168.1.204:6379

11
jodconverter-web/src/main/resources/application-prod.properties

@ -1,11 +0,0 @@
file.dir = /data/file-preview/convertedFile/
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
office.home = /opt/openoffice4
server.tomcat.uri-encoding = utf-8
converted.file.charset = utf-8
spring.http.multipart.max-file-size = 100MB
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,css,cnf
media=mp3,mp4,flv
cache.type = redis
spring.redisson.address = 10.19.140.7:6379
spring.redisson.database = 0

12
jodconverter-web/src/main/resources/application-uat.properties

@ -1,12 +0,0 @@
file.dir = /data/filepreview/
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
openOfficePath = 123
office.home = /opt/openoffice4
server.tomcat.uri-encoding = utf-8
converted.file.charset = utf-8
spring.http.multipart.max-file-size = 100MB
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,css,cnf
media=mp3,mp4,flv
cache.type = redis
spring.redisson.address = 192.168.1.204:6379
spring.redisson.database = 3

15
jodconverter-web/src/main/resources/application.properties

@ -1,15 +0,0 @@
server.port = 8012
spring.http.encoding.charset = utf8
## Freemarker 配置
spring.freemarker.template-loader-path = classpath:/web/
spring.freemarker.cache = false
spring.freemarker.charset = UTF-8
spring.freemarker.check-template-location = true
spring.freemarker.content-type = text/html
spring.freemarker.expose-request-attributes = true
spring.freemarker.expose-session-attributes = true
spring.freemarker.request-context-attribute = request
spring.freemarker.suffix = .ftl
#默认环境
spring.profiles.active=dev
Loading…
Cancel
Save