apt-get update
apt-get install -y curl unzip telnet
cat >> /etc/profile <<\EOF
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export JAVA_HOME
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
export CLASSPATH
PATH=$JAVA_HOME/bin:$PATH
export PATH
EOF
source /etc/profile
注意:
@Slf4j
=>private static final Logger log = LoggerFactory.getLogger(CommonController.class);