摘要:
String zipFileName="压缩包名.zip"; // 设置响应头,告诉浏览器返回的是否是一个文件流 response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition" 阅读全文
摘要:
这个命令可以在我们服务器没有telnet命令的时候使用 nc -vz -w 10 ip 端口 如果没有 有curl命令也可以使用 curl -v telnet://ip:port 阅读全文
摘要:
IRuleModel.java /** * 接口类 * @author 。 */ public interface IRuleModel { /** * 执行的方法 * @param paramString * @return */ String execute(String paramString 阅读全文
摘要:
执行sql select pg_terminate_backend(pid) from (select pid from pg_stat_activity where datname = '数据库名称' ) a; 然后再次执行删库就可以了 阅读全文
摘要:
依赖 <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-s3</artifactId> <version>1.11.490</version> </dependency> <dependency> <grou 阅读全文
摘要:
如果路径含有中划线,将无法取到值 如:$.aa964cf2-bf62-36bd4811.53672-bf62-42906dc.6458b-82c1-3a157e2a 这时候就需要转换下 变成 $['aa964cf2-bf62-36bd4811']['53672-bf62-42906dc']['645 阅读全文
摘要:
userList = userList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(()->new TreeSet<>(Comparator.comparing(User::getCity))), Arr 阅读全文
摘要:
后台bean是 private String uName; 但是前端生成的json是 uname 会自动变成小写 如果我们只是个别的几个的话,只需要加个注解 @JsonProperty("uName") private String uName; 这样就可以了 阅读全文
摘要:
{"error":{"root_cause":[{"type":"query_phase_execution_exception","reason":"Result window is too large, from + size must be less than or equal to: [10 阅读全文
摘要:
Invocation of init method failed; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, rea 阅读全文