1 2 3 4 5 ··· 23 下一页

2024年7月5日

摘要: sql注入问题优化,order by 里面不能用下面这种方式,为了防止sql注入,验证输入的值是否合法,比如只能包含英文,数字和下划线应以英文开头 Map<String, Object> parameters = new HashMap<>(); sql.append(" where (lzbh l 阅读全文
posted @ 2024-07-05 14:19 james-roger 阅读(2) 评论(0) 推荐(0) 编辑

2024年7月4日

摘要: 解析出url地址里面的信息,在日志里面打印出来乱码。启动命令添加 -Dfile.encoding=utf-8,一定要在 -jar的前面 java -Dfile.encoding=utf-8 -jar demo.jar 阅读全文
posted @ 2024-07-04 16:50 james-roger 阅读(1) 评论(0) 推荐(0) 编辑

2024年5月16日

摘要: 在@FeignClient 注解上面加 contextId="TestFeignService" TestFeignService 是类名称 阅读全文
posted @ 2024-05-16 12:25 james-roger 阅读(4) 评论(0) 推荐(0) 编辑

2024年3月4日

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

2024年1月5日

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

2023年12月14日

摘要: group: 'org.geotools', name: 'gt-shapefile', version: '23.0'里面自带了 commons-lang3。a56爆大奖在线娱乐最好自己不要再引入commons-lang3的依赖,不然会有冲突 阅读全文
posted @ 2023-12-14 10:38 james-roger 阅读(58) 评论(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 阅读(249) 评论(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 阅读(79) 评论(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 阅读(263) 评论(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 阅读(54) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 23 下一页