摘要: 上传模型: 查看阿里云关于文件上传的帮助: https://help.aliyun.com/document_detail/32009.html?spm=a2c4g.11186623.6.768.549d59aaWuZMGJ 1)添加依赖包 在Maven项目中加入依赖项(推荐方式) 在 Maven 阅读全文
posted @ 2021-02-06 18:06 巧克力曲奇 阅读(98) 评论(0) 推荐(0)
摘要: http://localhost:8001/renre已拦截跨源请求:同源策略禁止读取位于 http://localhost:88/api/sys/login 的远程资源。(原因:不允许有多个 ‘Access-Control-Allow-Origin’ CORS 头)n-fast/captcha.j 阅读全文
posted @ 2021-02-06 17:28 巧克力曲奇 阅读(313) 评论(0) 推荐(0)
摘要: 6.16. The RewritePath GatewayFilter Factory The RewritePath GatewayFilter factory takes a path regexp parameter and a replacement parameter. This uses 阅读全文
posted @ 2021-02-06 16:06 巧克力曲奇 阅读(829) 评论(0) 推荐(0)
摘要: 跨域流程: 解决方法:在网关中定义“GulimallCorsConfiguration”类,该类用来做过滤,允许所有的请求跨域。 @Configuration public class GulimallCorsConfiguration { @Bean public CorsWebFilter co 阅读全文
posted @ 2021-02-06 14:09 巧克力曲奇 阅读(85) 评论(0) 推荐(0)
摘要: 刷新页面出现404异常,查看请求发现,请求的是“http://localhost:8080/renren-fast/product/category/list/tree” 这个请求是不正确的,正确的请求是:http://localhost:10000/product/category/list/tr 阅读全文
posted @ 2021-02-06 12:53 巧克力曲奇 阅读(323) 评论(0) 推荐(0)
摘要: package com.atguigu.gulimall.product.service.impl; import com.sun.org.apache.bcel.internal.generic.RETURN; import org.springframework.stereotype.Servi 阅读全文
posted @ 2021-02-06 11:05 巧克力曲奇 阅读(471) 评论(0) 推荐(0)
摘要: 在项目中很容易遇到那种需要取并集或者交集的情况。 如果按照传统的方式,使用for循环嵌套for循环来操作,也可以实现。但是代码看起来没有那么优雅。 Java8提供了Stream的操作。 例如简单的递归查找。 根据当前的分类找到相对应的所有子级对象。 如果使用传统for循环。一般的操作方式 //查出所 阅读全文
posted @ 2021-02-06 09:59 巧克力曲奇 阅读(3284) 评论(0) 推荐(0)