摘要:
sql注入问题优化,order by 里面不能用下面这种方式,为了防止sql注入,验证输入的值是否合法,比如只能包含英文,数字和下划线应以英文开头 Map<String, Object> parameters = new HashMap<>(); sql.append(" where (lzbh l 阅读全文
2024年7月5日
2024年7月4日
摘要:
解析出url地址里面的信息,在日志里面打印出来乱码。启动命令添加 -Dfile.encoding=utf-8,一定要在 -jar的前面 java -Dfile.encoding=utf-8 -jar demo.jar 阅读全文
2024年5月16日
摘要:
在@FeignClient 注解上面加 contextId="TestFeignService" TestFeignService 是类名称 阅读全文
2024年3月4日
2024年1月5日
摘要:
第一个原因是 方法上面没有加 @Transactional 第二个原因 有可能是 在同一个service类里面调用了另一个更新数据的方法。可以把更新数据的方法放到另一个类里面,然后引入这个类,再调用方法 阅读全文
2023年12月14日
摘要:
group: 'org.geotools', name: 'gt-shapefile', version: '23.0'里面自带了 commons-lang3。a56爆大奖在线娱乐最好自己不要再引入commons-lang3的依赖,不然会有冲突 阅读全文
2023年12月9日
摘要:
nginx配置(11215是服务的端口信息) location ~* ^(/v2|/swagger-resources|/swagger-ui|/swagger-ui/index.html|/webjars/|/favicon.ico/|/doc.html) { proxy_redirect off 阅读全文
2023年9月21日
摘要:
引入依赖 <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.54</version> <scope>compile</scope> </dependency> import co 阅读全文
摘要:
import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotat 阅读全文
2023年9月9日
摘要:
private void download2(HttpServletResponse response, String zipFilePath, String filename) throws IOException { // 设置响应的内容类型为ZIP文件 response.setContentT 阅读全文