![](https://img-blog.csdnimg.cn/20190927151053287.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
一次把程序写好(前端&后端那些年趟过的坑)
写下把那些趟过坑,让你一次写好程序
一颗剽悍的种子
公众号:一颗剽悍的种子
展开
-
解决+解决思路:java.lang.IllegalStateException: getOutputStream() has already been called for this response
java.lang.IllegalStateException: getOutputStream() has already beencalled for this response首先说明这个异常没有对使用功能造成影响,但是每次请求都会报出这个异常所以还是解决滴会出现这个错误是因为我使用SpringBoot准备把kaptcha封装成工具类打算复用,当时使用到验证码的只是登陆和注册,但是使用验证码的场景还是很多,毕竟涉及到安全的问题,验证码还是很有用处的。最先开始功能没问题感觉还是良好的,但是每.原创 2020-06-22 17:10:13 · 7735 阅读 · 5 评论 -
SpringBoot的报错找不到Mapper(解决:required a bean of type com.xxx.mapper.UserMapper that could not be found)
报如下错误,大致是没有找到MapperField userMapper in com.xxx.service.Impl.UserServiceImpl required a bean of type ‘com.xxx.mapper.UserMapper’ that couldnot be found.Consider defining a bean of type‘com.xxx.mapper.UserMapper’ in your configuration.Field userMapper原创 2020-06-13 18:13:32 · 20851 阅读 · 6 评论 -
ajax发送post请求传输数据给springboot接收+代码示例(整理趟过的坑,让你一次搞定)
ajax发送post请求传输数据给springboot接收,其实就解决两个问题:一个是发送和一个接收的问题:所以就确保以下两点就好了。注意确保以下两点就ok:前端:1.确保ajax发送数据的是JSON格式,最好验证一下:typeof(res) === "object"后端:2.确保前端发送的给后端接收的json格式数据对应你的entiy实体类。(因为我这里我实现的功能是插入对应数据,所以写...原创 2020-04-29 15:10:14 · 2976 阅读 · 1 评论