{
"flag": false,
"code": 20001,
"message": "Failed to parse multipart servlet request; nested exception is java.io.IOException:
org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected
because no multipart boundary was found",
"data": null
}
20.BeanCreationException: Error creating bean with name ‘com.changgou.goods.feign.SkuFeign’: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
bug大全
21.Field userFeign in com.changgou.order.service.impl.OrderServiceImpl required a bean of type ‘com.changgou.user.feign.UserFeign’ that could not be found.
那么client的eurake地址是: eureka.client.serviceUrl.defaultZone=http:// e u r e k a . i n s t a n c e . h o s t n a m e : {eureka.instance.hostname}: eureka.instance.hostname:{server.port}/eureka/pancake
for (String e : list) {
System.out.println(e);
list.remove(e);// ConcurrentModificationException 并发修改异常
}
解决方法:使用CopyOnWriteArrayList
CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
Collections.addAll(list,"jack","rose","lily","lucy");
for (String e : list) {
System.out.println(e);
list.remove(e);// ConcurrentModificationException 不会发生修改异常
}