mirror of https://github.com/halo-dev/halo
Add application-dev.yaml for development
parent
764d5cfa4f
commit
79eeba7fbd
|
@ -14,6 +14,7 @@ import org.springframework.boot.context.event.ApplicationStartedEvent;
|
|||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -53,6 +54,12 @@ public class StartedListener implements ApplicationListener<ApplicationStartedEv
|
|||
log.info("The scheduled task starts successfully!");
|
||||
}
|
||||
|
||||
@PreDestroy
|
||||
public void onDestroy() {
|
||||
log.info("Destroyed the cron scheduler");
|
||||
CronUtil.stop();
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载主题设置
|
||||
*/
|
||||
|
|
|
@ -62,4 +62,5 @@ logging:
|
|||
level:
|
||||
cc.ryanc.halo: DEBUG
|
||||
org.hibernate: ERROR
|
||||
web: DEBUG
|
||||
file: ./logs/log.log
|
||||
|
|
|
@ -10,6 +10,8 @@ server:
|
|||
session:
|
||||
timeout: 86400s
|
||||
spring:
|
||||
devtools:
|
||||
add-properties: false
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
|
|
Loading…
Reference in New Issue