--spring.profiles.active=t2,t3,xextest
--spring.profiles.include=quartz-jp
-Djava.ext.dirs=libs
-Dspring.config.location=/data/apps/DBconfig
-cp "config/*"
start.sh
#!/bin/bash
//配置远程调试端口,suspend 是否启动调试
java -Xdebug -Xrunjdwp:transport=dt_socket,address=9329,server=y,suspend=n \
-Djava.ext.dirs=libs/ \
com.example.demo.DemoApplication \
--spring.profiles.active=dev \
--spring.profiles.include=dev_db
tomcat catalina.sh 头部加
#!/bin/sh
CATALINA_OPTS="-Dfile.encoding=UTF-8 -server -Xmx4096m -Xms4096m -Xmn1024m -XX:SurvivorRatio=2 -XX:MaxTenuringThreshold=15 -XX:+DisableExplicitGC"
JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8096,server=y,suspend=n"
JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=dev"
JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.include=path,dev_db"