- 博客(5)
- 收藏
- 关注
原创 solr接口重新dataimport 导入索引 http://localhost:8983/solr/new_core/mmseg4j/reloadwords
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import org.apache.log4j.Logger; public class SolrIndexUpdater { .
2020-10-28 11:28:57
21
转载 把集合数据复制到另一个集合,有相同字段就会复制
public class ListUtils<T> { public void copyList(Object obj, List<T> list2, Class<T> classObj) { if ((!Objects.isNull(obj)) && (!Objects.isNull(list2))) { List list1 = (List) obj; list1.forEach(
2020-09-25 10:08:37
39
转载 判断数组是否存在某个值。
检查数组是否包含某个值的方法 使用List public static boolean useList(String[] arr, String targetValue) { return Arrays.asList(arr).contains(targetValue); } 使用Set public static boolean useSet(String[] arr, String targetValue) { Set set = new HashSet(Arrays.asList(arr)); ret
2020-09-16 20:29:17
15
空空如也
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝