自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 springboot+vue项目前后端增加数据文字变问号,数据库数据也是问号

做项目的过程中遇到写入数据变?,数据库也是在检查后台代码的时候,发现application.properties文件中的spring.datasource.url没有设置成utf-8改完后:

2022-03-19 18:23:46 1579

原创 运行vue项目,出现Your application is running here: http://localhost:8080

把config文件下的autoOpenBrowser: false,改为true就ok了

2022-02-15 20:42:59 2533

原创 Could not autowire. No beans of ‘CommentService‘ type found.

粗心大意踩了个坑,记录一下controller中报错Could not autowire. No beans of 'CommentService' type found.仔细复看了一下代码是ServiceImpl少了@Service

2021-08-25 01:23:05 506

原创 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio

今天踩了个SQL的坑,记录一下当看到spring报错我还以为是我哪里多了个 ’ 符号,检查才发现是SQL语句多了个空格,不该犯的错误 ,浪费时间,下次记住记住对于这个报错,我还看到其他可能错的地方传送门:https://blog.csdn.net/qq_41042595/article/details/88591028...

2021-08-24 10:38:42 161

原创 This dependency was not found:* vuTo install it, you can run: npm install --save vue-editor-bridge

今天运行项目后出现了* vue-editor-bridge in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/comp

2021-08-22 22:20:55 706

原创 vue3.0 The `destroyed` lifecycle hook is deprecated. Use `unmounted` instead

用vue3.0使用了destroyed,报错报错意思是:不推荐使用“已销毁”生命周期挂钩。改用“unmounted”在vue3.0 中:destroyed 生命周期选项被重命名为 unmountedbeforeDestroy 生命周期选项被重命名为 beforeUnmount把destroyed 改为 unmounted,就可以了...

2021-08-15 20:41:37 2899

原创 vuex4.x TypeError: Cannot read property ‘getters‘ of undefined

在使用store时,出现'getters' of undefine,页面空白在网上找了vuex3.0和4.0的区别的文章,发现使用对比state // 3.0{ computed:{ name(){ return this.$store.state.name }, ...mapState('moduleName', [...]) }}// 4.x{ setup(){ // 单一值引入

2021-08-14 21:28:31 1137

原创 XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user‘s

解决方法:AJAX 请求 变为异步

2021-08-14 21:20:42 258

原创 vue springboot 报错DOMException: Failed to execute ‘send‘ on ‘XMLHttpRequest‘: Failed to load

记录一下今天在做毕设的时候,在上传文件时,报错之所以会出现这个错误是因为上传的文件太大导致的,解决方案:在application.properties配置文件中指定,上传文件的大小#单个文件大小spring.servlet.multipart.max-file-size=150MB# 设置总上传的文件大小spring.servlet.multipart.max-request-size=200MB参考链接:https://blog.csdn.ne...

2021-08-07 14:23:52 3095

原创 VUE3.0+element-plus el-input无法输入

报错:ncaught TypeError: Cannot read property 'use' of undefined

2021-08-04 22:39:41 4527

原创 Vue3.0+vuex4.0和Vue2.0+vuex的对比

3.0vuex4.0.0-alpha.12.0vuex4.x为了保持和vue3创建方式一致,所以建议使用createStore创建,而且不需要单独再引入vue更详细的分析打开下面的链接参考链接:https://blog.csdn.net/weixin_45517927/article/details/115490784...

2021-07-30 20:20:29 2320

原创 vue3.0设置图片列无显示问题,solt-scope报错

官方文档里的slot、slot-scope已经弃用。但vue 3.x 增加了v-slot的指令,去掉了原来的slot,slot-scope属性。把他改成v-slot就可以了

2021-07-29 20:53:00 492 1

原创 Vue3 Vuex.Store() Uncaught Error: [vuex] must call Vue.use(Vuex) before creating a store instance.

报错:Uncaught TypeError: Cannot read property 'use' of undefined网上查阅资料说不再需要在Store.js中使用Vue.use(Vuex)。于是我就注销了,但是还报错这个报错的是_vuex.default.store 不是一个构造函数因为在我们用vuex的时候需要将用到的actions,mutations模块最终导出,在导出的时候new Vuex.Store中的Store小写了,这里的一定要大写,就相当于我们在使用构造函数(类)的时候首字母要

2021-07-28 12:02:16 1757 1

原创 vue3.0下载element plus

去到项目根目录下,cnpm install element-plus --save

2021-07-27 13:58:09 733

原创 运行项目报错internal/modules/cjs/loader.js:968 throw err; ^

晚上做项目还好好的,今早一起来运行报错在网上找到说重新安装依赖环境,先rimraf node_modules,再cnpm install重新下载node_modules,问题就解决了,

2021-07-27 10:30:39 985

原创 vue3.0 在使用el-dialog中的visible报错‘.sync‘ modifier on ‘v-bind‘ directive is deprecated. Use ‘v-model:pro

根据它的提示改为

2021-07-25 14:23:14 7598

原创 vue3.0 `slot` attributes are deprecated.`slot`属性已弃用

用vue3.0做项目是发现:`slot`属性已弃用但vue 3.0增加了v-slot的指令,在<templatev-slot:dropdown></el-dropdown>就ok了

2021-07-21 22:53:27 17244 4

原创 vue3.0中使用bus总线和vue2.0中使用bus总线

Vue3.0集成BusVue到3.0之后的Bus的方式变成了使用mitt。2.0是通过创建一个空的Vue来作为总线Vue3.0中使用emit来注册 bus.emit(‘事件’,参数)Vue3.0中使用on来监听,bus.on(‘taskLrowClick’, (e)=>{ console.log(e);其他的逻辑操作 })emit和on是成对出现的,一个发起,一个接收,并且接收方可以是多个组件,只要第一个参数匹配,都可以接收到3.0,,2.03.0,,2.03.0,,...

2021-07-20 23:32:06 729 1

原创 vue3.0首页左侧菜单不显示, <template> <el-menu-item :index=“item.index“ :key=“item.index“>

这样写首页的菜单栏不显示,删掉菜单显示出来,,but这边又报错了,一直提示我<template v-for>` key should be placed on the `<template>` tag,道理我也懂,加template标签bug更大改成就O了。小白一枚,就是记录一下踩过的坑,如果你也遇到同样的bug,希望能给你一些参考,当然希望你也不要遇到(哈哈哈)...

2021-07-20 21:52:08 2408 1

原创 vue3.0修改登录成功或失败的弹窗样式

1、我做的项目点击登录后,出来的弹框是,height很高,想修改又没看到class,看到别人说在this.$notify里面customClass:'notify-success' 添加customClass属性覆盖原有样式,我试了不行2、我就在浏览器f12看弹框的class(这个样式会消失,手速要快,双击class名复制),然后设置它的高度就ok了...

2021-07-19 21:56:22 903

原创 GET http://192.168.0.104:8080/sockjs-node/info?t=1626680941861 net::ERR_CONNECTION_TIMED_OUT

vue项目运行时浏览器报错:GET http://192.168.0.104:8080/sockjs-node/info?t=1626680941861 net::ERR_CONNECTION_TIMED_OUT点击错误,看到self.xhr.send(payload);报错找到node_modules/sockjs-client/dist/sockjs.js目录下,删除或注销这句话,就O了...

2021-07-19 15:57:49 1171

原创 Caused by: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot

在写vue后台的时候报错Caused by: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot跨域配置报错,将.allowedOrigins替换成.allowedOriginPatterns在SpringBoot2.0.0中,用.allowedOrigins在SpringBoot2.4.4中,用.allowedOriginPatterns报错就解决了...

2021-07-18 10:58:21 970

原创 npm ERR! code E404npm ERR! 404 Not Found - GET https://cdn.npm.taobao.org/string..trimstart/-/stri

npm ERR! code E404npm ERR! 404 Not Found - GET https://cdn.npm.taobao.org/string..trimstart/-/string..trimstart-1.0.4.tgznpm ERR! 404npm ERR! 404 'string..trimstart@https://registry.nlark.com/string..trimstart/download/string..trimstart-1.0.4.tgz' is.

2021-07-18 10:15:21 3161 1

原创 在vue项目中遇到“字符缩进问题出现的报错”

"indent":["off",2]关掉字符缩进问题出现的报错,放在package.json的rules下

2021-07-18 02:00:46 442

原创 运行用vue+Element-ui实现登录注册表单运行后页面空白

删去main.js中关于element-ui引入的代码后,恢复正常,所用的element-ui引用方式是之前针对vue2.0版本的引用方式,需要调用Vue对象,在vue3.0中已经没有了vue对象 vue3.0用的是element-plus,检查你的项目下的node_modules中是element-plus还是element-ui,如果是element-ui就先卸载element-ui,再下载element-plus 下载element-plus 在main.js 中写入element-plus的导

2021-07-18 02:00:04 459

原创 vue eslint报错

去掉package.json"extends"下的:"@vue/standard",防止eslint报错

2021-07-18 01:58:52 78

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除