Bläddra i källkod

删除服务器文件-pro 8200

wuweihao 3 år sedan
förälder
incheckning
557e8512d9
2 ändrade filer med 8 tillägg och 1 borttagningar
  1. 7 0
      gis_application/src/main/resources/application-pro.properties
  2. 1 1
      run.sh

+ 7 - 0
gis_application/src/main/resources/application-pro.properties

@@ -56,6 +56,13 @@ file.path=/root/user/cms_bin_scene_data/
 #server.domain =http://47.107.252.54:8105/
 server.domain =http://www.4dmodel.com/
 
+#静态资源目录
+server.file.path=/root/data/big_scene_data
+
+spring.mvc.static-path-pattern=/**
+### 匹配路径, 注意file后面的/ ,windows:\\  , linxu:全路径, 不需要特别加斜杠
+spring.resources.static-locations=file:${server.file.path}
+
 # 七牛 oss info
 oss.file.path=data/
 oss.domain=https://super.4dage.com/

+ 1 - 1
run.sh

@@ -1,6 +1,6 @@
 #!/bin/sh
 APP_NAME=big_scene.jar
-APP_PORT=8105
+APP_PORT=8200
 APP_EVN=$2   #执行环境 sit|pro
 APP_ORDER=$1   #执行方法  start|stop|restart
 # 获取进程号