- 博客(26)
- 资源 (2)
- 收藏
- 关注
转载 Vue在跨域请求时携带cookie的配置withCredentials: true
前言如题代码// 默认请求地址Axios.defaults.baseURL = baseURL// 超时时间Axios.defaults.timeout = 5000// 允许携带cookie请求Axios.defaults.withCredentials = true// 请求格式及编码Axios.defaults.headers.post['Content-Type...
2019-12-30 11:05:02 3081
原创 【vue】To install them, you can run: npm install --save aws-sdk module
前言错误信息:These dependencies were not found:* aws-sdk in ./node_modules/fsevents/node_modules/node-pre-gyp/lib/info.js, ./node_modules/fsevents/node_modules/node-pre-gyp/lib/publish.js and 1 other...
2019-12-29 14:37:14 5448 1
转载 Spring静态注入bean
前言转载代码实现示例package com.website.server.system.util.dto;import com.core.server.entity.BaseUser;import com.website.server.system.feign.AllFeignServiceApi;import org.springframework.beans.facto...
2019-12-29 13:14:57 141
原创 【vue】 js参数赋值给data(一)
前言场景:把js中的list赋值给引入它的data代码以下是示例menu.jsconst menuList = [{ path: '/', label: '首页', icon: 's-home', }, { path: "/video", label: '视频管理', icon: 'video-play' }, ...
2019-12-23 09:59:52 2088
原创 SpringSecurity配置(三)
前言粗略配置,没有测试,仅做保存代码package com.core.server.system.security;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Bean;import org.springf...
2019-12-20 19:14:25 184
转载 vue之element-ui表单验证
前言参考文档:https://www.jianshu.com/p/8f1f8b5aa8a1实现方式form表单必须加 :mdoel=“obj”el-from :rules=“rules”el-from-item 中prop与rules中属性名对应
2019-12-20 16:44:58 143
原创 Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON:
前言错误信息: Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: (was java.lang.NullPointerException); nested exception is com.fasterxml.jackson.databind...
2019-12-18 19:29:56 9868
转载 element ui左侧菜单栏从后台获取数据
前言菜单栏数据实现从后天获取实现代码<el-menu background-color="#393e46" text-color="#fff"> <el-menu-item :class="getMenuSwitchState?'close':'open'"> <i class="el-icon-position" style="color...
2019-12-18 09:45:55 4777 8
转载 vuex持久化 vuex-persistedstate
前言代码搬自博客:https://www.jianshu.com/p/c22861ec5f21使用安装起步:npm i -S vuex-persistedstate作为组件引入import persistedState from 'vuex-persistedstate'export default new Vuex.Store({ // ... plugi...
2019-12-17 20:10:04 255
原创 【vue】This dependency was not found: * module in (webpack)/lib/NormalModule.js, (webpack)/lib/node/
前言集成vuex模块化,开始是可以运行的,但是后面就不可以了。报错信息如下:This dependency was not found:* module in (webpack)/lib/NormalModule.js, (webpack)/lib/node/NodeTargetPlugin.jsTo install it, you can run: npm install --sa...
2019-12-17 17:12:21 9961
原创 in ./node_modules/npm/bin/npm-cli.js Module parse failed: Unexpected character '#' (1:0)
前言错误信息: ERROR Failed to compile with 1 errors 3:27:14 PM error in ./node_modules/npm/bin/npm-cli.jsModule parse failed: Unexpected character '#' (1:0)You may n...
2019-12-17 15:45:24 1389
转载 Vuex 模块化
参考文档https://blog.csdn.net/Dear_Mr/article/details/84576029状态管理的使用第一种方式安装完毕Vuex,写一个store文件:比如_bak.js然后在main.js引入这个_bak.js把这个框内的路径,换成_bak.js的即可,然后在下面的vue实例的时候,放入。就可以使用了。更详细的介绍,以及使用方法,参考上一篇...
2019-12-15 14:26:01 246
转载 通过 sass-resources-loader 全局注册 Sass/Less 变量
前言内容在上面的转载信息里面。写的时候,需要注意:如果是less,则需要修改为less-loader。
2019-12-14 15:58:45 266
转载 【vue】Access to XMLHttpRequest at ‘http://localhost:20001/toLogin‘ from origin ‘http://localhost:8080
前言报错信息:Access to XMLHttpRequest at 'http://localhost:20001/toLogin' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control c...
2019-12-12 10:39:09 6227
转载 vue中配置vuex状态管理
前言文档:https://www.cnblogs.com/Zbaozi/p/10135719.html文档:https://www.cnblogs.com/yhquan/p/10369140.html使用方式
2019-12-12 08:54:02 279
原创 Action: Correct the classpath of your application so that it contains a single, compatible version
前言因为本maven仓库的servlet-api-2.5.jar的原因,导致启动报错。错误描述也是各种都有,我这边是: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at java.util....
2019-12-11 09:49:35 6677
转载 java8 快速实现List转map 、分组、过滤等操作
其他的在上面的转载地址里面。对象求和转载自:https://blog.csdn.net/hsz2568952354/article/details/89886743集合转map 使用扩展修改key改变key的类型list转setlist根据参数去重java8去重:根据年级和专业,当年级和专业都相同的情况下看做是重复数据java8去重:根据对象内的地址去重,当有对象内地址一样的时候看做是重复数据......
2019-12-10 10:17:20 577
转载 Web app root system property already set to different value: 'webapp.root'
前言Web app root system property already set to different value: 'webapp.root' 解决办法参考文档https://blog.csdn.net/u013628152/article/details/46647943修改app1的web.xml ,如果没有,则添加。...
2019-12-07 23:29:05 111
转载 SpringSecurity密码正确依然提示错误
前言账号密码正确,点击登录,依然提示错误https://blog.csdn.net/weixin_44580977/article/details/98491875
2019-12-07 23:20:41 7694
原创 org.springframework.util.Assert.noNullElements(Ljava/util/Collection;Ljava/lang/String;)V
…待补充
2019-12-01 12:41:15 1860
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人