用static块还是用@PostContruct加载要用到的资源好

郑州到西安2022-10-04  13

使用static block或@ postcontract加载要使用的资源。用static block还是@ postcontract加载要用的资源更好?简介:现在你需要使用一个地图来存储数据,并在你想开始时添加它。spring框架中用static好还是用@ postcontract好?解决方法:用静态就好。你为什么这么麻烦?@ ltspan style = quot字体系列:
转载请注明原文地址:https://juke.outofmemory.cn/read/1903293.html

最新回复(0)