![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring-api-test
kong-kong
记录流水账
展开
-
Byte、KB、MB、GB转化工具类
public class DataSizeTest { @Test public void testSize(){ DataSize size = DataUnit.MEGABYTES.size(); //MB System.out.println("size="+size); assertEquals(size.toBytes(),1024*1024); size = DataSize.ofKilobyt...原创 2020-06-18 19:12:34 · 1348 阅读 · 0 评论 -
PropertyPlaceholderHelper
public class PropertyPlaceholderHelperTest { PropertyPlaceholderHelper helper = new PropertyPlaceholderHelper("${", "}"); /** * 单个变量 */ @Test public void test(){ String text = "name=${name}"; Properties prop...原创 2020-06-17 19:33:59 · 1040 阅读 · 0 评论