- 博客(60)
- 资源 (1)
- 收藏
- 关注
原创 idea整合deepseek实现AI辅助编程
5.回到idea配置api信息,File->Settings->Tools->CodeGPT->Providers->Custom OpenAI。model: deepseek-reasoner或deepseek-chat。mode: deepseek-reasoner或deepseek-chat。deepseek-reasoner为DeepSeek-R1。API key填写deepseek的api key。deepseek-chat为DeepSeek-V3。Code Completions分页下。
2025-02-06 13:08:43
2496
1
原创 springdatajpa解决postgresql数据库字段驼峰命名问题
为了满足其他服务需求,数据库字段使用驼峰命名,但是在执行sql时发现字段被自动转成了下划线命名,如deviceId,被转成了device_id,但数据库字段为deviceId。建议:Perhaps you meant to reference the column "ap1_0.deviceId".于是想到了pgsql是大小写不敏感的,执行的sql会自动转成小写。所以,最终解决方案是加上上述配置,注解改成以下写法。发现执行的sql确实被转成了驼峰命名,但仍然报错。
2024-08-22 10:39:21
632
1
原创 JSON.stringify(map)返回{}
今天将Map对象转字符串保存到localStorage中实现本地存储的时候,发现调用JSON.stringify(map)返回了{}解决方法:把map转为对象,然后再调用JSON.stringify()方法。
2023-12-06 15:29:01
1023
原创 vue axios实现下载文件及responseType:blob注意事项
正常情况下后端返回二进制数据,当后端服务器出错时,往往会以json形式返回错误信息,例如{"code":500,"msg":"未知异常"}。因为设置了blob类型,axios会强制把数据转为blob,导致json格式的响应没办法正常解析,需要使用FileReader对象来处理,FileReader是一种异步读取文件机制。readAsDataURL(file):读取文件内容,结果用data:url的字符串形式表示。readAsBinaryString(file):按字节读取文件内容,结果为文件的二进制串。
2023-08-29 15:51:04
3889
原创 vue前端下载文件
window.location.href =文件请求地址。使用js-file-download插件下载。安装js-file-download。
2023-05-31 16:20:56
387
原创 vue实现打开多个可拖动弹窗
此时已实现弹窗框的可拖动效果,但还未达到我的需求,接下来需要实现打开弹出框可以继续操作页面。弹出框默认是有遮罩层的,需要关闭遮罩层,同时关闭通过点击 modal 关闭 Dialog。实现可拖动这一功能的话网上教程很多,而我需要在此基础上实现点击页面打开多个可拖动弹出框。首先以下执行命令,安装vuedraggable,通过vuedraggable 实现拖动过渡动画比较好。在页面中通过v-dialogDrag命令绑定到组件上,实现拖动效果。注意:css样式一定要写对位置,否则会不生效。加上下边css样式即可。
2023-04-27 16:21:14
2933
4
原创 openEuler忘记密码(超详细)
1.重启虚拟机,在内核选择界面输入英文字母e进入grub2配置页面2.输入字母e后可能会出现下图情况(未出现,直接跳过该步骤),需要用户输入单用户用户名密码,系统默认用户名
2023-03-29 14:59:52
16025
2
原创 nginx: [emerg] unknown directive “锘? in C:\Users\dell\Desktop\nginx/conf/nginx.conf:3
nginx: [emerg] unknown directive "锘? in C:\Users\dell\Desktop\nginx/conf/nginx.conf:3
2023-03-06 09:11:19
802
原创 如何修改VMware虚拟机的配置文件.vmx
如何修改VMware虚拟机的配置文件.vmx①右击需要要修改.vmx的虚拟机,在弹出的对话框中点击打开虚拟机目录。
2023-02-09 10:29:47
9132
原创 Exception in thread “main“ java.lang.UnsatisfiedLinkError: Unable to load library ‘virt‘
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'virt'
2023-01-05 16:52:01
2174
原创 com.fasterxml.jackson.core.JsonParseException: Unrecognized token ‘Alarm‘: was expecting (JSON Stri
nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Alarm': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
2022-12-29 12:01:46
16565
原创 vue使用js-file-download插件下载文件乱码
在开发vue项目时遇到使用js-file-download插件下载后端传过来的二进制文件流时报错。
2022-10-24 14:42:18
1503
原创 请求报错:Required String parameter ‘id‘ is not present
请求报错:Required String parameter 'id' is not present
2022-10-21 15:22:08
8075
原创 vue-router传递参数方式详解
在开发项目中遇到需要携带参数跳转页面的需求,来记个笔记方法1.(params传值)以下是主页面跳转方法toEditInfo() { this.$router.push({ path: '/XXX/XXX', params:{ edit:true } });}以下是目标页面方法created(){ this.editStatus = this.$route.query.params;
2022-05-16 21:59:37
648
原创 npm ERR Unsupported URL Type “npm:“: npm:vue-loader@16.1.2
今天在执行vue项目中执行命令npm i 安装依赖时发生报错。。。报错:npm ERR! Unsupported URL Type "npm:": npm:vue-loader@16.1.2原因:npm版本过低需要更新解决:npm install -g npm
2022-04-15 08:51:13
1566
原创 安装MySQL报错:The service already existsThe current server installed
报错:The service already exists!The current server installed: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld" MySQL解决方法:1.以管理员身份打开命令行2.输入sc query mysql3.输入sc delete mysql如下图:
2022-03-09 13:20:17
5446
1
原创 Syntax Error: TypeError: this.getOptions is not a function
报错:ERROR Failed to compile with 1 error 下午1:45:19error in ./src/assets/styles/element-variables.scssSyntax Error: TypeError: this.getOptions is not a function@ ./src/assets/styles/element-variabl...
2022-02-23 13:52:40
2211
原创 Syntax Error: Error: Node Sass does not yet support your current environment:
报错:ERROR Failed to compile with 1 error 上午11:47:18error in ./src/assets/styles/fat.scssSyntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit withFor more informa...
2022-02-23 13:20:20
8450
原创 java可以开启线程吗?
答案:不可以;原因:java运行在虚拟机上,无法直接操作硬件,在start方法中调用了本地方法start0,通过C++操作底层源码:public synchronized void start() { /** * This method is not invoked for the main method thread or "system" * group threads created/set up by the VM. Any new fun.
2022-02-15 10:55:50
381
原创 Cannot get a text value from a numeric cell
通过poi来读取excel文件过程中,通过cell.getStringCellValue()方法尝试从一个数字类型的Cell读取出一个字符串时报错。报错:Exception in thread "main" java.lang.IllegalStateException: Cannot get a text value from a numeric cell at org.apache.poi.xssf.usermodel.XSSFCell.typeMismatch(XSS...
2021-12-31 15:03:05
1060
原创 The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals
报错:Exception in thread "main" org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of PO
2021-12-31 14:29:14
3140
原创 git操作命令
命令名称 作用 git config --global user.name 用户名 设置用户签名 git config --global user.email 邮箱 设置用户签名 git init 初始化本地库 git status 查看本地库状态 git add 文件名 添加到暂存区 git commit -m "日志信息" 文件名 提交到本地库 git reflog 查看版本信息 git reset --h...
2021-12-30 16:59:47
153
原创 DiskGenius 百度云下载链接
链接: https://pan.baidu.com/s/1mT1yyEqOOec0xYe5CZkGOQ 提取码: w5ye
2021-12-29 09:29:46
23018
11
原创 ideaIU-2019.3.3 百度云下载链接
链接:https://pan.baidu.com/s/1awxRcZvJpGHp8YWdc52Rnw提取码:uc4w
2021-12-29 09:26:22
8672
原创 java中字符串分割String.split()用法
问题:今天在使用String.split(".")分割字符串时发现得到的字符数组为空解决方法:"."和"|"都需要转义,也就是在前边加上"\\"正确写法:// 使用"."作为分隔:String.split("\\.");// 使用"|"作为分隔:String.split("\\|");...
2021-12-09 09:23:52
368
3
原创 There was an unexpected error (type=Not Found, status=404)
报错:There was an unexpected error (type=Not Found, status=404)问题:springboot项目启动,访问接口报错,可能时类没有被扫描到解决方法:在application类中添加包扫描,代码如下:@ComponentScan("com.example.*")...
2021-10-18 11:24:07
666
转载 mongodb 命令行基本命令使用大全
(先声明下,下面的命令,我没有都测试过,这是我转载的,以备后用,所以喷子且留情,不然小心我三十米的大刀!!!想想我都怕!!!)成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令:show dbs:显示数据库列表show collections:显示当前数据库中的集合(类似关系数据库中的表)show users:显示用户use <db name>:切换当前数据库,这和MS-SQL里面的意思一样db.hel...
2021-10-15 16:12:43
2068
原创 Repository is not clean. Please commit or stash any changes before updating.
在执行ng update @angular/core @angular/cli命令时报错:Repository is not clean. Please commit or stash any changes before updating.解决方法:执行命令:ng update --all --force --allow-dirty
2021-10-14 13:30:43
3027
原创 stack Error: Could not find any Visual Studio installation to use
在安装ng-zorro时报错:报错:npm ERR! code 1npm ERR! path C:\Users\xx\Desktop\angular\wyy\node_modules\fibersnpm ERR! command failednpm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuildnpm ERR! gyp info it worked if it ends with oknpm ERR!
2021-09-30 16:03:52
8117
原创 electron-vue报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1
报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1(index):1 Uncaught ReferenceError: process is not defined at (index):1renderer.js:1 Uncaught ReferenceError: module is not defined at renderer.js:1解决方法:在窗口的web...
2021-09-08 09:26:59
1810
原创 electron报错:Error: Electron failed to install correctly, please delete node_modules/electron and try
在win10上在搭建electron-vue项目时,使用npm install命令报错报错:Error: Electron failed to install correctly, please delete node_modules/electron and try installing again解决方法:命令行进入项目中node_modules/electron目录,运行node install.js命令即可...
2021-09-07 16:32:39
948
原创 electron报错:Uncaught TypeError: Cannot read property ‘BrowserWindow‘ of undefined
electron版本14+使用remote模块时出现问题,代码如下:const BrowserWindow = require('electron').remote.BrowserWindow;报错:Uncaught TypeError: Cannot read property 'BrowserWindow' of undefined解决方法:新版的 electron 由于安全原因默认关闭了 remote模块,需要在主窗体中开启remote,也就是在webPreferen
2021-09-03 08:10:38
4963
2
原创 xxxx.jar中没有主清单属性
报错:C:\Users\xxx\Desktop\java\upload\upload_jar>java -jar upload-1.0-SNAPSHOT.jarxxxx.jar中没有主清单属性过程:在将java maven项目打成jar包并通过java -jar xxx.jar命令运行时报错解决办法:首先通过压缩软件编辑jar包中的MANIFEST.MF文件,添加Main-Class配置项目(见图1),根据自己的工程结构来写(见图2)图1:图2:.
2021-08-25 15:12:53
355
原创 Exception in thread “main“ java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONObject
Exception in thread "main" java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONObject报错:C:\Users\li\Desktop\java\upload\upload_jar>java -jar upload-1.0-SNAPSHOT.jar......Exception in thread "main" java.lang.NoClassDefFoundError: com/alibab
2021-08-25 15:00:59
3434
原创 seaweedFS基本使用
启动master:(-mdir路径自定义,-ip自定义)```java./weed master -mdir="./data/master"或者./weed master -mdir="./data/master" -ip=“127.0.0.1”```#通常设置IP,而不是默认的localhost启动volume:```java./weed volume -mserver="127.0.0.1:9333" -dir="./data/volb"```
2021-08-12 14:26:50
2081
原创 wait()和sleep()的区别
两者都是线程暂停执行的方法。1.他们来自不同的类,分别是Thread和Object,sleep方法属于Thread类中的静态方法,wait属于Object的成员方法。2.sleep()是线程类(Thread)的方法,不涉及线程通信,调用时会暂停此线程指定的时间,但监控依然保持,不会释放对象锁,到时间自动恢复;wait()是Object的方法,用于线程的通信,调用时会放弃对象锁,进入等待队列,待调用notify()/notifyAll()唤醒指定的线程或者所有线程,才进入对象锁定池准备获得对象锁进入运行状
2021-08-11 09:47:14
215
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人