forked from elunez/eladmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
郑杰
committed
Dec 26, 2018
1 parent
d140f35
commit d787ed3
Showing
3 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/me/zhengjie/monitor/config/VisitsInitialization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package me.zhengjie.monitor.config; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import me.zhengjie.monitor.service.VisitsService; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 初始化站点统计 | ||
*/ | ||
@Slf4j | ||
@Configuration | ||
public class VisitsInitialization { | ||
|
||
public VisitsInitialization(VisitsService visitsService){ | ||
log.info("--------------- 初始化站点统计,如果存在今日统计则跳过 ---------------"); | ||
visitsService.save(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters