springboot在項目啓動時加載字典表數據進map內存,真實測試通過。

public class DicMap { @Autowired private static CustomerDao customerDao; private static HashMap<String,String> hashMap=new HashMap<>(); static { //在這裏我們不能使用注入進來的customerDao,因爲它
相關文章
相關標籤/搜索