在项目启动的时候需要做一些初始化的操作,比如初始化线程池、提前加载mysql数据库到缓存等。Springboot中CommandLineRunner接口的 Component 会在所有 Spring Beans都初始化之后SpringApplication.run()之前执行,非常适合在应用程序启动 Read More
1、neo4j服务为例 vim neo4jwatch.sh #!/bin/bash while true; do time1=$(date "+%Y-%m-%d %H:%M:%S") echo $time1 count=`ps -ef|grep /opt/neo4j-community-3.4.7- Read More