vscode(mac)解决Ctrl+C退出终端时不可用问题
参考博客 官网1.77版本下载地址vscode 1.77 注意:关闭自动升级
Create-React-APP使用搭建项目
设置Npm环境设置淘宝镜像源 npm config set registry https://registry.npm.taobao.org 查看镜像源 npm config get registry 安装React脚手架 npm i -g create-react-app 通过脚手架创建APP create-react-app my-app 启动命令 npm start Create-React-APP目录结构react_first_pro├─ .gitignore // 自动创建本地仓库├─ package.json // 相关配置文件├─ public // 公共资源│ ├─ favicon.ico // 浏览器顶部的icon图标│ ├─ index.html // 应用的 index.html入口│ ├─ logo192.png // 在 manifest 中使用的logo图│ ├─...
MySQL8.0登录提示caching_sha2_password问题解决方法
参考博客:MySQL8.0登录提示caching_sha2_password问题解决方法 修改方式一.修改my.cnf配置文件[mysqld]default_authentication_plugin = mysql_native_password 二.修改身份验证类型(修改密码)ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; flush privileges; 验证结果SELECT Host, User, plugin from user; +-----------+------------------+-----------------------+| Host | User | plugin |+-----------+------------------+-----------------------+| % | root ...
解决shell报错-bash命令无法运行问题
参考博客:解决shell报错-bash: ./test.sh: bin/bash: bad interpreter: No such file or directory 查看*.sh文件格式 cat -A 文件 使用dos2unix文件转命令 yum install -y dos2unix dos2unix *.sh
Vue3安装依赖报错The-engine-node-is-incompatible-with-this-module
参考博客:Vue3安装依赖报错The engine “node“ is incompatible with this module 错误日志: C:\Users\14751\Documents\WorkSpace\gitee\hertzbeat\web-app>yarn installyarn install v1.22.19[1/4] Resolving packages...[2/4] Fetching packages...error eslint-plugin-jsdoc@39.3.25: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18 || ^19". Got "20.3.0"error Found incompatible module.info Visit https://yarnpkg.com/en/docs/cli/install for...
Docker下安装PostgreSQL数据库
参考博客:Docker-10:Docker安装PostgreSQL Docker 方式安装PostgreSql数据库拉取指定版本的PostgreSQL镜像 docker pull postgres:10.21 创建挂载文件目录 mkdir -p /home/docker/postgres/10_21/ 启动镜像 docker run --name postgresql \ --privileged=true \ --restart=always \ -e POSTGRES_PASSWORD=123456 \ -p 15433:5432 \ -v /home/docker/postgres/10_21:/var/lib/postgresql/data \ -d postgres:10.21 Linux下Yum命令安装PostgreSql数据库Linux downloads (Red Hat family) 安装postgreSQL-server yum install...
Maven仓库清理lastUpdated文件
参考博客:Windows下清理maven仓库中的lastUpdated文件 新建clean.bat的文件主要修改REPOSITORY_PATH参数的值,为自己本地仓库的地址。 @echo offset REPOSITORY_PATH=E:\maven\localRepositoryrem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i)rem 搜索完毕pause 使用管理员权限执行文件
若依(ruoyi)开发框架支持将word文档等文件转pdf并通过接口实时访问返回pdf水印文件
文档内链:通过Java对word/xls/image/ppt转pdf文件并添加水印信息 java后台端代码 @Log(title = "预览上传文件", businessType = BusinessType.OTHER)@RequestMapping("/queryPdfFile")public void queryPdfFile( @RequestParam(value = "fileUrl",required = true)String fileUrl, HttpServletResponse response)throws Exception{ //上传文件目录 String defaultBaseDir = RuoYiConfig.getProfile(); //文件真实位置 String filePath =...
Vue前端预览PDF文件
参考博客01(参考):Vue在线预览PDF(不需要安装插件) 参考博客02(推荐):vue+iframe预览pdf,页面显示pdf外框但是内容空白解决 最终实现方式为参考博客02 PdfPreview2.vue代码如下: <template> <div class="app"> <el-button @click="preview1">预览在线PDF</el-button> <el-button @click="preview2">请求后端预览</el-button> <el-dialog v-if="previewShow" title="预览" :visible.sync="previewShow" append-to-body width="90%"> <!--...
谷歌浏览器预览Axure导出Html页面展示
火狐浏览器(不支持) 注意:火狐浏览器无插件支持预览Axure导出页面 谷歌浏览器(推荐)初次打开页面 插件名称:Axure RP Extension for Chrome 插件设置: 至此结束-SUCCESS