![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题分享
宋大王
下忍
展开
-
cas + shiro 前后端分离单点登录后从定向问题
cas + shiro 前后端分离单点登录后从定向问题问题描述问题描述再未认证状态下,请求需要认证的资源当接口为get请求时,再cas登录后会重定向到get请求的接口,类似浏览器直接访问get请求接口如图当改为post请求是,cas登录后会重定向到前端页面,并在页面接收到这个请求的结果,就是正常想要达到的结果目前还没有解决 只能先使用post请求查询了...原创 2020-03-28 17:48:35 · 864 阅读 · 0 评论 -
vue transition无效
vue transition无效模仿iview drawer过程中,使用vue的transition组件,发现当transition的样式写在,transition .dashboard样式上面时,transition动画无效 <transition name="drawer"> <div class="dashboard" v-show="dashboar...原创 2020-03-12 15:06:32 · 3010 阅读 · 1 评论 -
shiro + cas前后端分离遇到的奇怪问题
shiro + cas前后端分离遇到的奇怪问题记录@Value的奇怪问题项目背景shiro + cas前后端分离项目先看一下代码package com.jsong.wiki.backend.filter;import com.alibaba.fastjson.JSON;import lombok.extern.log4j.Log4j2;import org.apache.shir...原创 2020-03-07 10:56:44 · 402 阅读 · 0 评论 -
问题记录 spring boot interceptor中@Autowired空指针
问题记录 spring boot interceptor中@Autowired空指针报错的写法解决后自己学习工程中遇到这个问题,记录下来参考了这位老师的博客https://www.cnblogs.com/weknow619/p/8549566.html造成null的原因是因为拦截器加载是在springcontext创建之前完成的,所以在拦截器中注入实体自然就为null报错的写法@Auto...原创 2020-03-03 20:46:49 · 520 阅读 · 0 评论 -
前端获取不到cookie问题
问题描述在学习shiro+cas单点登录 前后端分离的项目过程中,前台获取不到cookie看了很多大佬有关nginx配置的问题,后来发现我的问题没有那么复杂只是cookie domain和path的问题没有设置cookie的domain和path Cookie[] cookies = request.getCookies(); for (int i = 0;...原创 2020-03-01 22:04:33 · 3551 阅读 · 0 评论 -
The 'Access-Control-Allow-Origin' header has a value 'http://localhost:28080' that is not equal to t
记录一个问题在学习shiro+cas 前后端分离单点登录过程中,遇到跨域重定向的问题其中登录后,在访问cas客户端的controller时,浏览器出现了这个跨域问题Access to XMLHttpRequest at 'http://127.0.0.1:18081/blog-backend/shiro/hello' (redirected from 'http://localhost:28...原创 2020-02-27 21:21:50 · 5474 阅读 · 1 评论 -
Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[
Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]]报错的pom文件正常运行的pom报错日志记录一个奇怪的...原创 2020-02-17 11:29:19 · 4128 阅读 · 1 评论 -
shiro 登录后不走doGetAuthorizationInfo方法
shiro 登录后不走doGetAuthorizationInfo方法解决办法jsp注解java测试代码shiro权限注解在学习shiro+cas认证登录过程中,环境搭建好后发现请求的时候一直不走doGetAuthorizationInfo这个方法,其实还是配置的问的,自己没有弄懂shirodoGetAuthenticationInfo登录认证时会进入这个方法doGetAuthor...原创 2020-02-13 14:46:37 · 1437 阅读 · 2 评论 -
Spring cache + redis 乱码问题
Spring cache + redis 乱码问题问题代码正确代码最近学习Spring cache + redis过程中发现一个比较奇怪的redis缓存乱码问题。分享一下使用**redisCacheConfiguration.**的形式就会乱码redisCacheConfiguration.serializeKeysWith(RedisSerializationContext.Seriali...原创 2019-12-25 19:45:21 · 777 阅读 · 0 评论 -
Failure to find org.springframework:spring-framework-bom:pom:2.1.11.RELEASE in http://maven.aliyun.c
Failure to find org.springframework:spring-framework-bom:pom:2.1.11.RELEASE in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempte...原创 2019-12-23 11:15:39 · 6353 阅读 · 2 评论 -
ERROR com.rabbitmq.client.impl.ForgivingExceptionHandler - An unexpected connection driver error occ
ERROR com.rabbitmq.client.impl.ForgivingExceptionHandler - An unexpected connection driver error occured java.net.SocketException: socket closed解决办法vhost解决办法添加vhost.\rabbitmqctl.bat add_vhost {v...原创 2019-10-25 14:40:53 · 8744 阅读 · 0 评论 -
echarts动态折线图拉扯变形问题
echarts动态折线图拉扯变形问题在使用echarts折线图 做动态数据展示时,发现一个bug当折线图的一个数值较高点紧挨着一个数值为零的点,guyong时图形会被拉扯,应该是echart的bug,如图我的解决方法是给全部的值加0.01,就不会产生零点,在tooltip的显示值中减0.01 直观上显示的数值不变...原创 2019-04-11 10:16:48 · 2159 阅读 · 0 评论 -
js set get 方法踩坑 Maximum call stack size exceeded
js set get 方法踩坑 Maximum call stack size exceeded做angular项目的时候写一个 写了一个类的set get方法出现了内存溢出的错误 Maximum call stack size exceeded其实就是循环调用了 死循环错误写法export class ChartOption { chart_name: string; set ...原创 2019-04-12 17:13:40 · 1574 阅读 · 0 评论 -
gulp AssertionError [ERR_ASSERTION]: Task function must be specified
gulp AssertionError [ERR_ASSERTION]: Task function must be specified问题代码// gulp3 可以 gulp4 不可以gulp.task('default', ['script', 'html'], done => { console.log('default') done()})gulp 4 解...原创 2019-04-13 16:44:40 · 7471 阅读 · 0 评论 -
nohup &退出shell终端后,服务仍然断开
nohup &退出shell终端后,服务断开我的命令但是推出shell后 服务就断了我的命令nohup npm start >app.logs 2>&1nohupno hang up 不挂起npm start 启动命令>app.logs 输出日志2>&1 将错误也输出到日志& 后台运行但是推出shell后 服务就断了正...原创 2019-05-19 18:40:53 · 9390 阅读 · 5 评论 -
gulp打包时报错 Error: ENOENT: no such file or directory, chmod 'E:\Practice\myWorld\build\img\bg'
gulp打包时报错 Error: ENOENT: no such file or directory, chmod 'E:\Practice\myWorld\build\img\bg'gulp任务顺序文件目录gulpfile.jsconsolegulp任务顺序task clean 在打包之前,先清空build文件夹gulp.task('clean', d => { if (chec...原创 2019-05-24 14:14:23 · 2697 阅读 · 0 评论 -
本地静态页面访问node_modules里的文件时404
本地静态页面访问node_modules里的文件时404分享一个自己开发静态网页时候的问题,一开始静态页面都可以正常访问,但是当我把它放到nginx容器后,再停止掉容器,在访问本地静态资源时,node_modules中的资源会访问不到,404。而且只有index.html中引用的资源访问不到,其他的node_modules的资源可以访问。解决办法就是重新npm install 就好啦...原创 2019-05-18 14:46:27 · 1512 阅读 · 0 评论 -
clean-webpack-plugin源码学习,TypeError: CleanWebpackPlugin is not a constructor
clean-webpack-plugin源码学习,TypeError: CleanWebpackPlugin is not a constructor"clean-webpack-plugin": "^3.0.0""clean-webpack-plugin": "^2.0.2","clean-webpack-plugin": "^1.0.1"问题解决啦本文是在学习webpack时,做一个小的项目...原创 2019-05-31 15:55:21 · 1366 阅读 · 2 评论 -
一个懵b的数组打印问题
一个懵b的数组打印问题场景是这样的,一个有300多条数据的数组console.log(这条数组)展开后这个数组只有一条,这是为什么呢之后还能可以取得第10条的数据懵b这条数组之后会被截取,console都是在这之前发生的自己模拟了一下代码,但是没有重现问题 var a = []; var i = 0; while (i < 300) { a.push({ ...原创 2019-07-12 14:41:56 · 278 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.embedded.Embedded
阿里druid连接池报错搭建druid连接池时出现了这个错了搭建druid连接池时出现了这个错了Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.embedded.Embeddedorg.springframework.beans.factory.UnsatisfiedDepend...原创 2019-03-13 18:51:20 · 11025 阅读 · 0 评论