|
|
@@ -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
|
|
|
+}
|