2024年3月4日

摘要: 阅读全文
posted @ 2024-03-04 15:12 james-roger 阅读(6) 评论(0) 推荐(0) 编辑

2024年1月5日

摘要: 第一个原因是 方法上面没有加 @Transactional 第二个原因 有可能是 在同一个service类里面调用了另一个更新数据的方法。可以把更新数据的方法放到另一个类里面,然后引入这个类,再调用方法 阅读全文
posted @ 2024-01-05 09:43 james-roger 阅读(15) 评论(0) 推荐(0) 编辑

2023年12月14日

摘要: group: 'org.geotools', name: 'gt-shapefile', version: '23.0'里面自带了 commons-lang3。所以最好自己不要再引入commons-lang3的依赖,不然会有冲突 阅读全文
posted @ 2023-12-14 10:38 james-roger 阅读(34) 评论(0) 推荐(0) 编辑

2023年12月9日

摘要: nginx配置(11215是服务的端口信息) location ~* ^(/v2|/swagger-resources|/swagger-ui|/swagger-ui/index.html|/webjars/|/favicon.ico/|/doc.html) { proxy_redirect off 阅读全文
posted @ 2023-12-09 20:48 james-roger 阅读(147) 评论(0) 推荐(0) 编辑

2023年9月21日

摘要: 引入依赖 <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.54</version> <scope>compile</scope> </dependency> import co 阅读全文
posted @ 2023-09-21 15:36 james-roger 阅读(68) 评论(0) 推荐(0) 编辑
摘要: import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotat 阅读全文
posted @ 2023-09-21 14:10 james-roger 阅读(193) 评论(0) 推荐(0) 编辑

2023年9月9日

摘要: private void download2(HttpServletResponse response, String zipFilePath, String filename) throws IOException { // 设置响应的内容类型为ZIP文件 response.setContentT 阅读全文
posted @ 2023-09-09 11:55 james-roger 阅读(39) 评论(0) 推荐(0) 编辑

2023年9月6日

摘要: 检查防火墙状态 firewall-cmd --state running//运行中 启动firewall systemctl start firewalld.service 1.查看已开放的端口 firewall-cmd --zone=public --list-ports 2.开放单个端口(开放后 阅读全文
posted @ 2023-09-06 09:18 james-roger 阅读(6) 评论(0) 推荐(0) 编辑

2023年9月3日

摘要: import javax.servlet.*; import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet 阅读全文
posted @ 2023-09-03 18:19 james-roger 阅读(968) 评论(0) 推荐(0) 编辑

2023年8月24日

摘要: 提取对象数组里面的某个字段 List<String> lastTask = lastTasks.stream() .map(HistoricActivityInstance::getActivityId) .limit(1) .collect(Collectors.toList()); 对象数组排序 阅读全文
posted @ 2023-08-24 09:24 james-roger 阅读(4) 评论(0) 推荐(0) 编辑