会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不是安逸
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2021年12月29日
通过反射找出两个实体类中不同的值
摘要: 功能:主要有一个修改日志的需求,在修改时需要修改前后的值做一个日志 解释:传入两个实体对象,通过getClass().getDeclaredFields()获取对象的字段,然后比较不相同的值存到map里面,移除不需要的字段值后存到string里面返回 /** 获取修改的内容*/public stat
阅读全文
posted @ 2021-12-29 15:36 不是安逸
阅读(267)
评论(0)
推荐(0)
2021年10月14日
SpringBoot + Junit5 + MockMvc 写单元测试
摘要: 1.1 junit5 版本5.6.0 pom文件如下: <properties> <junit.jupiter.version>5.6.0</junit.jupiter.version> </properties> <dependency> <groupId>org.junit.jupiter</g
阅读全文
posted @ 2021-10-14 17:28 不是安逸
阅读(749)
评论(0)
推荐(0)
2021年9月18日
springboot中使用FeignClient调用http请求
摘要: 1. 在.pom文件中添加openfeign的依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId></dependenc
阅读全文
posted @ 2021-09-18 11:01 不是安逸
阅读(1701)
评论(0)
推荐(0)
springboot中获取配置文件的值
摘要: 1.在application.properties中ds-portal_service_port=http://192.168.**.**:10001 2.在java中@Autowiredprivate Environment environment; String portalPort = env
阅读全文
posted @ 2021-09-18 10:47 不是安逸
阅读(432)
评论(1)
推荐(0)
2021年9月14日
查看硬盘序列号
摘要: 1.win + r 输入cmd进入命令窗口 输入diskpart 2.输入 list disk 查看硬盘列表 3.输入 select disk 0 进入该磁盘 再输入detail disk 查看硬盘序列号(硬盘id即为硬盘序列号)
阅读全文
posted @ 2021-09-14 14:11 不是安逸
阅读(12555)
评论(0)
推荐(0)
2021年9月8日
windows杀占用端口
摘要: 通过命令查找某一特定端口,在命令窗口中输入命令中输入 netstat -ano |findstr "端口号",然后回车就可以看到这个端口被哪个应用占用。 查看到对应的进程id之后,就可以通过id查找对应的进程名称,使用命令 tasklist |findstr "进程id号" 通过命令杀掉进程,或者是
阅读全文
posted @ 2021-09-08 14:02 不是安逸
阅读(648)
评论(0)
推荐(0)
2021年9月7日
js调用后台接口下载excel文件
摘要: // 下载模板function DownloadExcel() { console.log("进入方法"); const xhr = new XMLHttpRequest(); xhr.open("GET",url地址); xhr.send(); xhr.responseType = 'blob';
阅读全文
posted @ 2021-09-07 15:18 不是安逸
阅读(1712)
评论(0)
推荐(0)
2021年9月6日
IDEA热布署报错java.lang.IllegalStateException: Restarter has not been initialized
摘要: *************************** APPLICATION FAILED TO START *************************** Description: Binding to target [Bindable@31133b6e type = org.sprin
阅读全文
posted @ 2021-09-06 11:12 不是安逸
阅读(326)
评论(0)
推荐(0)
2021年9月3日
idea maven 打包错误 [ERROR] javac options source files
摘要: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rcs-maapapi: Compilation failur
阅读全文
posted @ 2021-09-03 14:29 不是安逸
阅读(939)
评论(1)
推荐(1)
上一页
1
2
3
公告