利用配置环境可以取到系统变量的特性
xml
log4j.appender.R.File=${catalina.home}/logs/logs_tomcat.log
yml
eureka: client: serviceUrl: defaultZone: "${EUREKA_URL}"