- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 Spring Boot 引用外部配置文件
Spring Boot外部配置文件spring.config.locationspring.config.additional-location 我们在启动 spring boot 的时候除了默认配置文件,Spring Boot 还可以加载一些位于项目外部的配置文件。我们可以通过如下 2 个参数,指定外部配置文件的路径:spring.config.locationspring.config.additional-location spring.config.location我们可以先将 Spri
2021-11-19 16:26:39 3315
原创 Java 字符串长度不足,左右补0
Java 字符串长度不足,左右补0 String str = addZero("1234567",12); System.out.println(str); public static String addZero(String str, int strLength) { int strLen = str.length(); StringBuffer sb = null; while (strLen &l
2020-10-09 17:15:31 1417
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人