会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
james-roger
导航
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
24
下一页
2024年5月16日
springcloud feign名称冲突 The bean 'dp-service.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.
摘要: 在@FeignClient 注解上面加 contextId="TestFeignService" TestFeignService 是类名称
阅读全文
posted @ 2024-05-16 12:25 james-roger
阅读(38)
评论(0)
推荐(0)
2024年3月4日
maven通过lib引入自己下载的依赖包
摘要:
阅读全文
posted @ 2024-03-04 15:12 james-roger
阅读(73)
评论(0)
推荐(0)
2024年1月5日
jpa报错 Caused by: javax.persistence.TransactionRequiredException: Executing an update/delete query
摘要: 第一个原因是 方法上面没有加 @Transactional 第二个原因 有可能是 在同一个service类里面调用了另一个更新数据的方法。可以把更新数据的方法放到另一个类里面,然后引入这个类,再调用方法
阅读全文
posted @ 2024-01-05 09:42 james-roger
阅读(466)
评论(0)
推荐(0)
2023年12月14日
java导出shp文件时的注意事项
摘要: group: 'org.geotools', name: 'gt-shapefile', version: '23.0'里面自带了 commons-lang3。所以最好自己不要再引入commons-lang3的依赖,不然会有冲突
阅读全文
posted @ 2023-12-14 10:38 james-roger
阅读(169)
评论(0)
推荐(0)
2023年12月9日
nginx代理knife4j接口文档
摘要: 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
阅读(610)
评论(0)
推荐(0)
2023年9月21日
java通过连接ssh来实现postgres数据库的数据备份
摘要: 引入依赖 <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
阅读(150)
评论(0)
推荐(0)
java通过jdbc复制表数据实现备份
摘要: 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
阅读(404)
评论(0)
推荐(0)
2023年9月9日
java下载文件代码
摘要: private void download2(HttpServletResponse response, String zipFilePath, String filename) throws IOException { // 设置响应的内容类型为ZIP文件 response.setContentT
阅读全文
posted @ 2023-09-09 11:55 james-roger
阅读(78)
评论(0)
推荐(0)
2023年9月6日
centos常用命令笔记
摘要: 检查防火墙状态 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
阅读(26)
评论(0)
推荐(0)
2023年9月3日
java过滤器拦截sql注入和xss
摘要: import javax.servlet.*; import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet
阅读全文
posted @ 2023-09-03 18:18 james-roger
阅读(2598)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
24
下一页
公告