- 博客(11)
- 收藏
- 关注
原创 websocket事件绑定
this.websocketService.webSocket.onmessage = (e)=>{ this.wedSocketMessageHandler(e); }
2021-01-04 22:33:38
306
原创 前后端解析消息
前端解析:wedSocketMessageHandler(e:MessageEvent){ let data = this.messageFilter(e.data); let message = JSON.parse(data); if(data==null){ return } if(message.action=="edit"){ if(message.status==
2021-01-04 22:31:06
851
原创 Angular数组/对象List操作
删除List中不满足条件的元素this.fileInfos = this.fileInfos.filter((pdfInfo,index)=>{ return pdfInfo.name != pdf.name })
2020-11-05 11:48:05
1848
原创 Angular-条件移除按钮或其他元素+获取列表中元素/所选数据对象
当时脑子抽了,当时没想到Angular的指令:*ngIf就可以实现这个操作。<ng-template #modalFooter> <button nz-button nzType="default" (click)="handleCancel()" *ngIf="isSucceed">确认</button> <button nz-button nzType="primary" (click)="handleOk()" *ngIf="!isSucce
2020-11-05 11:42:25
321
原创 Springboot后台打包成jar后成功读取后台根目录文件
有时间Springboot后台项目打成jar包后,运行时不能读取根目录文件,报错。可能是window环境和linux环境不同,所以要要一种比较通用的读取后台外部文件的办法。 @RequestMapping(value = "/file", method = RequestMethod.GET) public ResultJson getFileByDirectory(@RequestParam String fileDirectory){ byte[] buffer = n
2020-11-04 21:17:37
982
原创 Springboot 后台接收并存储pdf文件到项目根目录-jar包可运行 windows、linux通用
试了很多网上说的后台保存文件办法,但是打包成jar包后,保存文件就出错,终于自己在综合多个帖子后才有了以下代码 @RequestMapping(value = "/uploadPDF/{node_key}", method = RequestMethod.POST) public ResultJson upload(@RequestParam("file") MultipartFile file, @PathVariable int node_key){ if (file.
2020-11-04 21:12:32
1084
原创 angular读取后台传过来的文件
后台 @RequestMapping(value = "/file", method = RequestMethod.GET) public ResultJson getGuidePDFInfoByDirectory(@RequestParam String fileDirectory){// System.out.println("收到加载pdf文件请求,路径为:");// System.out.println(fileDirectory);
2020-10-08 13:59:54
941
原创 ERROR; [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.Descr
ERROR; [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.Description()]在写drools规则时遇到了上述的问题,总是在编译的时候报错,执行不下去。看了网上博客说可以关闭strict-mode,如下代码: KnowledgeBuilderConfig...
2020-03-16 22:04:50
2275
1
原创 Go项目的环境变量GOROOT和GOPATH的设置-那些踩过的坑
设置GOROOT和GOPATH那些遇到过的问题import "github.com/xx/xx"出问题?can't resolve the diectoryimport"golang.org/xx/xx"出问题?设置GOROOT和GOPATH先设置系统环境变量设置GOLAND中的GOROOT和GOPATH用命令行编译,运行go项目,包含好几个go文件go项目文件列表如下那些遇到过的问题不知道集...
2020-03-13 23:39:06
27055
转载 Springboot+mybatis整合,实现rest服务,http、json传输
项目结构如下:Controller 控制层 entity 实体层 mapper数据操作层 service 业务逻辑层application.yml application-dev.yml 配置文件idea=>spring initializer=>next配置application.yml及application-dev.y...
2019-03-15 10:48:55
1010
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人