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.ApplicationListener;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import javax.annotation.PreDestroy;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -53,6 +54,12 @@ public class StartedListener implements ApplicationListener<ApplicationStartedEv
|
||||||
log.info("The scheduled task starts successfully!");
|
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:
|
level:
|
||||||
cc.ryanc.halo: DEBUG
|
cc.ryanc.halo: DEBUG
|
||||||
org.hibernate: ERROR
|
org.hibernate: ERROR
|
||||||
|
web: DEBUG
|
||||||
file: ./logs/log.log
|
file: ./logs/log.log
|
||||||
|
|
|
@ -10,6 +10,8 @@ server:
|
||||||
session:
|
session:
|
||||||
timeout: 86400s
|
timeout: 86400s
|
||||||
spring:
|
spring:
|
||||||
|
devtools:
|
||||||
|
add-properties: false
|
||||||
output:
|
output:
|
||||||
ansi:
|
ansi:
|
||||||
enabled: always
|
enabled: always
|
||||||
|
|
Loading…
Reference in New Issue