Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disconf会一直保持一个Timer线程吗? #45

Closed
zjulbj opened this issue Dec 3, 2015 · 3 comments
Closed

disconf会一直保持一个Timer线程吗? #45

zjulbj opened this issue Dec 3, 2015 · 3 comments

Comments

@zjulbj
Copy link

zjulbj commented Dec 3, 2015

跑demo的时候看见有个timer-0线程保持着,是disconf起的?

@knightliao
Copy link
Owner

那个不是timer,是一个while循环

@zjulbj
Copy link
Author

zjulbj commented Dec 4, 2015

public class DisconfDemoMain {

    protected static final Logger LOGGER = LoggerFactory.getLogger(DisconfDemoMain.class);

    private static String[] fn = null;

    // 初始化spring文档
    private static void contextInitialized() {
        fn = new String[] {"applicationContext.xml"};
    }

    /**
     * @param args
     *
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {

        contextInitialized();
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(fn);
    }
}

我入口改成这样还是会有的,应该不是DisconfDemoTask里面那个while(true)

@knightliao
Copy link
Owner

你是不是用旧版的 disconf ? 先前的有一版是有一个 timer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants