Skip to content

Commit 8b9d5a5

Browse files
author
luoqiz
committed
feat: MapUtils增加深度合并两个map的方法
1 parent 74554c2 commit 8b9d5a5

File tree

1 file changed

+2
-0
lines changed
  • continew-starter-core/src/main/java/top/continew/starter/core/util

1 file changed

+2
-0
lines changed

continew-starter-core/src/main/java/top/continew/starter/core/util/MapUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public static Properties toProperties(Map<String, String> source) {
5050
* @param to 需要合并的map
5151
* @param from 需要被合并的map
5252
* @return Map<String, Object> 必须重新使用的map
53+
* @author luoqiz
54+
* @since 2.14.0
5355
*/
5456
public static Map<String, Object> mergeMap(Map<String, Object> to, Map<String, Object> from) {
5557
if (MapUtil.isEmpty(to)) {

0 commit comments

Comments
 (0)