Spring - the way in the study

来源:互联网 发布:template.js 编辑:程序博客网 时间:2024/05/16 10:47

Recently changed work and the new project used spring almost everywhere,logged something while studying it.I'll continue write something here additional.


1 First one that happened yesterday,i aim to create a static ThreadPool and config the thread pool size in the config file and use @Value to adjust auto config thread pool.But i failed,seems spring don't support annotate for static field,also confirmed from my technical manager.

He suggested me to split the threadPool service from that class,and clean the responsibilities for each class,we can built that single class and init the thread pool while container started.

So this issue kind resolved.

0 0
原创粉丝点击