fix
Helius
2022-08-28 e35c3d097d91d5aea14f862bd14ef455c096d080
fix
1 files modified
12 ■■■■ changed files
src/main/java/cc/mrbird/febs/job/SystemInit.java 12 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/job/SystemInit.java
@@ -8,6 +8,7 @@
import cc.mrbird.febs.dapp.chain.ChainService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;
@@ -22,10 +23,15 @@
 **/
@Slf4j
@Component
public class SystemInit {
public class SystemInit extends CommandLineRunner {
    @PostConstruct
    public void init() {
//    @PostConstruct
//    public void init() {
//
//    }
    @Override
    public void run(String... args) throws Exception {
        Map<String, Object> encryptBeans = SpringContextUtil.getBeansWithAnnotation(EncryptEnable.class);
        if (encryptBeans.isEmpty()) {
            return;