springboot
文章平均质量分 56
ky与你
目标就是能做出任何自己想要的东西
展开
-
MultipartFile 文件上传时 java.io.EOFException 连接断开的解决办法
java.io.EOFException: Unexpected EOF read on the socket at org.apache.coyote.http11.Http11InputBuffer.fill 我的问题是因为使用的异步请求,文件还未上传成功,我就跳转到了其他页面,致使连接断开,报了这个错误 下面是错误的js代码, 将代码中的w...原创 2018-05-18 17:05:59 · 17440 阅读 · 1 评论 -
springboot2.0版本,修改tomcat配置,自定义tomcat配置的方法
在启动类同级目录,新建一个类 package com.example.demo; import org.apache.coyote.http11.Http11NioProtocol; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import or...原创 2018-05-18 17:06:56 · 9089 阅读 · 0 评论 -
There is no PasswordEncoder mapped for the id "null"
@Configuration@EnableWebSecuritypublic class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http....原创 2018-06-04 13:03:37 · 2249 阅读 · 2 评论 -
vue+springboot2.0前后端分离项目传输cookie,获取cookie,返回cookie
上代码:前端vue:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"&a原创 2018-08-23 10:21:54 · 11113 阅读 · 1 评论 -
vue axios ajax前后端分离项目localhost访问java springboot后台无法获取后台返回的cookie
访问后台时后台明明设置了cookie,但是前台却接收不到,由于localhost不是有效域名,会被chrome和ie无视掉。https://cnodejs.org/topic/511f48eddf9e9fcc58320fa2https://blog.csdn.net/lanria/article/details/18455213原因是因为你访问前台项目时使用的是localhost,...原创 2018-09-13 13:54:32 · 2641 阅读 · 0 评论 -
org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class
缓存问题,idea中重新rebuild项目解决原创 2019-05-23 00:22:06 · 8338 阅读 · 0 评论