摘要: 记得之前两个web服务,一个可以用 IP 连接数据库,一个必须得用localhost连接数据库,否则报错 今天发现本来可以用 ip 连接数据库的服务也报了同样的错 Could not open JDBC Connection for transaction; nested exception is 阅读全文
posted @ 2021-08-13 18:53 1156740846 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 记得之前两个web服务,一个可以用 IP 连接数据库,一个必须得用localhost连接数据库,否则报错 今天发现本来可以用 ip 连接数据库的服务也报了同样的错 Could not open JDBC Connection for transaction; nested exception is 阅读全文
posted @ 2021-08-13 18:53 1156740846 阅读(322) 评论(0) 推荐(0) 编辑
摘要: https://tianqiapi.com/index/doc?version=v1 https://api.apiopen.top/api.html 各种接口 https://api.apiopen.top/getJoke 笑话 阅读全文
posted @ 2021-08-13 17:47 1156740846 阅读(137) 评论(0) 推荐(0) 编辑
摘要: npm init -y初始化包管理npm i express -S 安装express 创建app.js const express =require('express') const app = express() app.use(express.static('./dist')) app.lis 阅读全文
posted @ 2021-08-13 17:35 1156740846 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 昨天把vue前端打包到服务器上去发布,但是发布后出现了很奇怪的问题,每个接口都会被请求两次 原来是因为前端跨域访问后端,前端需要先发一个预检请求(不会携带数据)问问后端给不给访问,如果后端返回允许,前端才会发送真正的请求(携带真正的请求数据) 后端处理第一个预检请求: if (request.get 阅读全文
posted @ 2021-08-13 17:22 1156740846 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 浏览器装了fehelper,访问接口的时候,显示结果突然变了,吓我一激灵,仔细一看,还挺好,肯定时fehelper给我美化的 阅读全文
posted @ 2021-08-13 16:54 1156740846 阅读(83) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u014586621/article/details/116534156?utm_term=vue%E6%AF%8F%E6%AC%A1%E4%BF%AE%E6%94%B9%E9%83%BD%E9%87%8D%E6%96%B0%E6%89%93%E5%8C% 阅读全文
posted @ 2021-08-13 15:37 1156740846 阅读(407) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jyughynj/p/11207436.html 需要一个配置文件,能在项目打包(build)时不被打包,方便修改,同时项目刷新时读取改配置。 实现方法如下: 1.在项目的static目录下创建project.config.json文件(名称随意,建议 阅读全文
posted @ 2021-08-13 15:13 1156740846 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 【Vue】vue-cli 配置的proxyTable代理请求api只能在开发环境下用吗?运行build打包后放到apache上不起作用 proxyTable: { '/api': { target: 'http://news-at.zhihu.com', changeOrigin: true, pa 阅读全文
posted @ 2021-08-13 14:25 1156740846 阅读(81) 评论(0) 推荐(0) 编辑
摘要: const express = require('express'); const proxy = require('http-proxy-middleware'); const cors = require('cors'); var app = express(); app.use(cors({ 阅读全文
posted @ 2021-08-13 14:15 1156740846 阅读(1519) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个很奇怪的问题,我写了两个springboot项目,本机24,连的同一个电脑16的数据库,两个项目都能正常运行,我打包两个项目放到16上以后,其中一个可以正常运行,另一个报错,提示连接数据库失败 Access denied for user 'root'@'WIN-1V93UI5AND2' 阅读全文
posted @ 2021-08-13 10:49 1156740846 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://www.baidufe.com/fehelper/index/index.html 提供的三种方式都下载不了 https://github.com/zxlie/FeHelper/tree/master/apps/static/screenshot/crx 很全,但是下载不了 http 阅读全文
posted @ 2021-08-13 10:35 1156740846 阅读(140) 评论(0) 推荐(0) 编辑