@@ -0,0 +1,762 @@
+package me.zhengjie.modules.monitor.config;%0A%0Aimport me.zhengjie.modules.monitor.service.VisitsService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.ApplicationArguments;%0Aimport org.springframework.boot.ApplicationRunner;%0Aimport org.springframework.stereotype.Component;%0A%0A/**%0A * %E5%88%9D%E5%A7%8B%E5%8C%96%E7%AB%99%E7%82%B9%E7%BB%9F%E8%AE%A1%0A * @author jie%0A */%0A@Component%0Apublic class VisitsInitialization implements ApplicationRunner %7B%0A%0A    @Autowired%0A    private VisitsService visitsService;%0A%0A    @Override%0A    public void run(ApplicationArguments args) throws Exception %7B%0A        System.out.println(%22--------------- %E5%88%9D%E5%A7%8B%E5%8C%96%E7%AB%99%E7%82%B9%E7%BB%9F%E8%AE%A1%EF%BC%8C%E5%A6%82%E6%9E%9C%E5%AD%98%E5%9C%A8%E4%BB%8A%E6%97%A5%E7%BB%9F%E8%AE%A1%E5%88%99%E8%B7%B3%E8%BF%87 ---------------%22);%0A        visitsService.save();%0A        System.out.println(%22--------------- %E5%88%9D%E5%A7%8B%E5%8C%96%E7%AB%99%E7%82%B9%E7%BB%9F%E8%AE%A1%E5%AE%8C%E6%88%90 ---------------%22);%0A    %7D%0A%7D

add VisitsInitialization 启动时初始化站点统计