![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug记录
灬叛逆丿文
这个作者很懒,什么都没留下…
展开
-
SpringBoot中使用MongoDB遇到的一些坑
SpringBoot中使用MongoDB遇到的一些坑ObjectId在将Mongo集合转换为JavaBean的时候发现Mongo集合中的主键是ObjectId类型的,然后Bean是拿String接收的发现没有一点儿问题,后来有一个需求是拿Id去表里面查数据,这个Id也不是那个表里面的主键,但是类型也是ObjectId的,用String查的,怎么查都是空的,百思不得其解。后来再想既然是Objec...原创 2019-04-26 17:29:55 · 6392 阅读 · 4 评论 -
springboot整合pagehelper的时候启动报错
springboot启动报错Caused by: java.lang.NoClassDefFoundError: Lorg/springframework/boot/bind/RelaxedPropertyResolver; at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.8.0_144] at java.lang.C...原创 2019-04-19 14:01:35 · 1613 阅读 · 0 评论 -
SpringBoot在整合mybatis的时候出现报错
Springboot报错描述org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):com.tk.portal.mapper.UserMapper.findAll这个错误在网上看的时候看到了好多的答案,反正核心思想就是mapper层和mapper.xml没有成功映射,根据网上的方法检查了命...原创 2019-04-19 14:23:43 · 1069 阅读 · 0 评论 -
springboot整合mysql连接报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized..问题解决
springboot在项目里面整合mysql的时候报错java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one timezone. You must configure either the server or JDBC driver ...原创 2019-07-05 11:27:54 · 165 阅读 · 0 评论 -
在用java9使用jwt的时候出现的问题
在用java9使用jwt的时候出现的问题Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter at io.jsonwebtoken.impl.Base64Codec.encode(Base64Codec.java:21) at io.jsonwebtoken.im...原创 2019-07-16 13:59:39 · 1150 阅读 · 0 评论 -
在response的header里面添加token,前端获取不到
在response的header里面添加token,前端获取不到在写登录功能的时候,前端如何都获取不到token的信息 public ResultInfo login(HttpServletResponse response, HttpServletRequest request, @RequestBody Map<String, String> param) { ...原创 2019-07-16 17:39:04 · 13764 阅读 · 8 评论 -
SpringBoot中配置拦截器时,跨域失效
SpringBoot中配置拦截器时,跨域失效前后段分离的项目,配置了跨域后,访问正常,但是配置了拦截器以后,有的访问正常,有的出现跨域问题,发现出现跨域问题的都是拦截器里面没有放行的请求。@Configurationpublic class MyWebAppConfigurer extends WebMvcConfigurerAdapter { static final String...原创 2019-07-17 17:55:44 · 4119 阅读 · 5 评论