后端
Ella Shen
这个作者很懒,什么都没留下…
展开
-
前端传递到后端的数据是null
Hibernate: insert into review_and_expert (evaluate_name, evaluation, review_id, teacher_name, teacher_phone, time, type, review_teacher_id) values (?, ?, ?, ?, ?, ?, ?, ?) ReviewAndExpert{reviewTeacherId=‘null’, reviewId=‘92’, teacherPhone=‘18131854845’, .原创 2020-11-29 21:57:07 · 2136 阅读 · 0 评论 -
shiro取消对option的拦截(No ‘Access-Control-Allow-Origin‘ header is present on the requested resource)跨域问题
报错 解决方法来源: https://www.jianshu.com/p/5c637bfcc674 步骤 新建一个拦截器类 CorsInterceptor 实现 HandlerInterceptor 接口 package com.springboot.study.config; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframewo原创 2020-11-21 19:23:06 · 956 阅读 · 1 评论 -
shiro密码加盐登陆失败(已解决但是有疑惑)
用MD5来给密码加密,然后登陆时报错 查资料是因为MD5解码方式不对 java.lang.IllegalArgumentException: Illegal hexadecimal character m at index 0 at org.apache.shiro.codec.Hex.toDigit(Hex.java:156) ~[shiro-core-1.4.1.jar:1.4.1] at org.apache.shiro.codec.Hex.decode(Hex.java:135) ~[shiro原创 2020-10-24 13:22:22 · 1226 阅读 · 1 评论