Explorar el Código

Merge remote-tracking branch 'origin/master'

xie.kaifeng hace 7 meses
padre
commit
34b896d82a
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10 10
      mtp3-century/src/main/resources/readme.md

+ 10 - 10
mtp3-century/src/main/resources/readme.md

@@ -19,13 +19,13 @@ spring下为redis、rabbitmq、datasource配置
 
 运行时加参数--spring.config.location, 指定到jar包目录的config文件夹,参考如下:
 
-    function start_newmanage_service(){
-        local jar_path=$product_home/mtp2_newmanage_service
-        local jar_file=$jar_path/mtp2_newmanage_service_r30.jar
-        if [ -e "$jar_file" ]; then
-            echo "start $jar_file"
-            # cd 运行目录,否则无法生成log文件
-            cd $product_home
-            java -jar $jar_file --spring.config.location=file:$jar_path/config/ &
-        fi
-    }
+function start_newmanage_service(){
+  local jar_path=$product_home/mtp2_newmanage_service
+  local jar_file=$jar_path/mtp2_newmanage_service_r30.jar
+  if [ -e "$jar_file" ]; then
+	echo "start $jar_file"
+	# cd 运行目录,否则无法生成log文件
+	cd $product_home
+	java -jar $jar_file --spring.config.location=file:$jar_path/config/ --logging.config=file:$jar_path/config/logback-spring.xml &
+  fi
+}