![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java学习日记
-茄-
这个作者很懒,什么都没留下…
展开
-
微服务项目SpringSecurity使用Redis共享session问题
因为SpringSecurity登录成功后的session信息存在SecurityContextHolder里,所以登录成功后访问首页向另一个模块发送请求时读不到登录信息,导致被弹回登录也界面。原创 2023-04-27 19:47:45 · 475 阅读 · 0 评论 -
maven依赖不爆红,但无法导入
直接从以前的项目复制来的,那个项目父模块dependencies外包了一层dependencyManagement,所以子模块的引用不需要版本号。没注意直接复制过来了= =搞了两天才发现。原创 2023-03-18 03:05:42 · 374 阅读 · 0 评论 -
(报错记录)org.apache.ibatis.type.TypeException: Could not resolve type alias ‘xxx‘
做微服务拆分的时候碰到的,关键在于Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘com.mindskip.xzs.viewmodel.admin.message.MessagePageRequestVM’.原创 2023-03-18 05:16:17 · 773 阅读 · 0 评论 -
(报错记录)mybatis整合mybatis-plus错误org.apache.ibatis.binding.BindingException: Invalid bound statement
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mindskip.xzs.repository.SubjectMapper.page at com.baomidou.mybatisplus.core.override.PageMapperMethod$SqlCommand.<init>(PageMapperMethod.java:261) ~[mybatis-plus-co原创 2023-03-21 15:01:38 · 1092 阅读 · 0 评论 -
Error: Get proxy targetObject exception ! Cause:org.springframework.beans.factory.BeanCreationExcep
解决方法:右键resources文件夹->Mark Directory as->Resources Root。原因:resources包只是普通文件夹,扫描不到,创建模块的时候偶尔会没有自动标注,需要手动标注。是因为没读取到 mysql的datasource数据源。查看target发现yml文件没有被编译。(正常yml应该出现在com包里)原创 2023-02-09 15:34:29 · 230 阅读 · 1 评论 -
用RabbitMQ发送/消费对象
用RabbitMQ发送/消费对象原创 2022-12-21 21:05:19 · 145 阅读 · 0 评论 -
element-ui中switch开关回显问题
active-value 和 inactive-value 前有冒号为number类型。无冒号为string类型。原创 2022-09-27 17:31:42 · 1025 阅读 · 0 评论 -
Response响应中文乱码
Response对象由tomcat创建,tomcat默认使用的是ISO-8859-1字符集,客户端(浏览器)跟服务器端采用的编码格式不一致。原创 2022-09-27 00:47:19 · 366 阅读 · 0 评论 -
(报错记录)Could not retrieve transation read-only status server
mysql版本问题,把依赖从原本的mysql5换成8.0.29就解决了= =原创 2022-09-26 02:31:52 · 184 阅读 · 0 评论