springboot在项目启动时加载字典表数据进map内存,真实测试经过。

public class DicMap { @Autowired private static CustomerDao customerDao; private static HashMap<String,String> hashMap=new HashMap<>(); static { //在这里咱们不能使用注入进来的customerDao,由于它
相关文章
相关标签/搜索