Win10导入Deepin到WSL

准备工作首先要确保开启了hyperv注意_virtulbox与这个冲突。方法_控制面板打开或者关闭windows功能打开虚拟化bootcamp可以尝试下面的命令bcdeditsethypervisorlaunchtypeautostart导入deepin下载导入包https_panbaiducomsmxupflkrvalfcrxmfsv_w?pwd=导入deepinexeinstallbackupextvhdxgz验证c_softwarewsldistrosdeepinwsllist适用于linux的wi
阅读更多

后端服务CORS预检请求验证问题探究

问题探索问题引入目前在vitevue的项目中使用fetchapi调用siyuan的api时候如果加上api鉴权就会返回cors错误如下_​根据https_developermozillaorgenusdocsglossarypreflight_request这篇文章的理解在检测到cors跨域复杂请求(例如post等)时候会发送一个options的预检请求请求会返回下一个请求允许的header和method检测请求可以看到可以看到思源服务端返回的accesscontrolrequestheaders并没有a
阅读更多

Java生成验证码图片

生成验证码验证码工具类@name_verificationcode@author_terwer@date__publicclassverificationcode{privatestaticfinalstring[]randomstr={随机生成验证码@returnpublicstaticmapgetverificationcode(){returngetverificationcodewithstr(null)_}利用给定的字符串生成验证码@paramstr指定的字符串@returnpublicstat
阅读更多

SpringBoot中https的配置

配置#https_helpaliyuncomdocument_detailhtml#https协议默认端口号为需要使用其他端口时您可以在此处自定义。serverport=#https_docsoraclecomenjavajavasedocsspecssecuritystandardnameshtml#keystoretypes#您需要使用实际的证书名称替换domain_namepfx。serversslkeystore=classpath_vpfx#填写pfxpasswordtxt文件内的密码。serv
阅读更多

docker部署思源笔记并配置nginx支持https

dockercompsoe的完整配置dockercomposeyml#构建dockercompose项目#dockercomposeloglevelinfoupbuild#dockercomposeloglevelinfoupdbuildversion_services_terwernginx_image_terwernginx_container_name_terwernginxbuild_context_terwernginxdockerfile_dockerfileports_volumes_ter
阅读更多

git删除所有分支

todeleteallthelocaltagssimplerunthefollowingcommandgittag_xargsgittagdtodeleteremotetagsafterdeletingthelocaltagsbyrunningtheabovecommandyoucanrunthecomandbelowgitlsremotetagsrefsorigin_cutf_xargsgitpushorigindeletenote_replaceoriginwithyourremotehandler
阅读更多

pnpm安装electron报错404解决方案

自定义镜像地址和版本解决pnpmconfigsetregistryhttps_registrynpmmirrorcompnpmconfigsetelectron_mirror=https_cdnnpmmirrorcombinarieselectronpnpmconfigsetelectron_custom_dir=参考_https_githubcomelectronelectronissues‍
阅读更多