![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Exception
爱吃辣椒的小恐龙
这个作者很懒,什么都没留下…
展开
-
异常:When allowCredentials is true, allowedOrigins cannot contain the special value “*“
报错原文:java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value “*” since that cannot be set on the “Access-Control-Allow-Origin” response header. To allow credentials to a set of origins, list them原创 2021-08-05 15:16:32 · 387 阅读 · 0 评论 -
异常:Whoops! Lost connection to xxxxx
错误截图:因为这里的html页面用了默认的端口,这就会涉及到跨域的问题。只需要把html的端口改成和我们服务启动的端口一样就可以了,因此我使用以下的方法,增加一个mvc的静态过滤器,代码如下:import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;import org.sp原创 2021-08-05 15:07:18 · 2233 阅读 · 0 评论 -
异常:NoClassDefFoundError: org/aspectj/lang/annotation/Pointcut
加入依赖即可<dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.6</version></dependency>原创 2021-06-16 15:30:28 · 5194 阅读 · 0 评论 -
bootstrap.yml图标不是叶子
需要引入依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId> <version>3.0.2</version> </dependency>一般引入cloud的其他组件时都会把这个依赖带上...原创 2021-06-02 14:45:32 · 1479 阅读 · 0 评论