![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
SangBigYe
这个作者很懒,什么都没留下…
展开
-
解决异常:java.lang.NoClassDefFoundError-->org/apache/dubbo/common/bytecode/proxy0
启动的时候,日志出现以下异常。原创 2024-03-25 17:46:35 · 544 阅读 · 0 评论 -
升级spring boot异常:Junit从4.x升级5.x
@RunWith 替换为 @ExtendWith 替换为包名:org.junit.jupiter.api.extension@Ignore 替换为 @Disabled替换为包名:org.junit.jupiter.api@Assert 替换为 @Assertions替换为包名:org.junit.jupiter.apiAssert.assertThat 替换为 MatcherAssert.assertThat替换为包名:org.hamcrest.MatcherAssert.assertT原创 2022-01-11 16:42:55 · 674 阅读 · 0 评论 -
升级spring boot异常:Junit从4.x升级5.x后运行maven install 进行单元测试 @Disabled 无效问题
问题运行maven 的 install 时进行单元测试,发现测试已经被@Disabled了,但是测试还是会跑。原因在Maven中并不能直接识别JUnit 5测试用例,还需要额外加多Maven Surefire或Maven Failsafe两个插件。参考:https://waylau.com/running-junit5-tests-with-maven/解决添加这两个插件<build> <plugins> <plugin>原创 2022-01-11 16:25:31 · 775 阅读 · 0 评论 -
升级spring boot异常:spring循环依赖
问题从spring boot 2.2.9升级到2.6.2版本后,项目启动后访问报错The dependencies of some of the beans in the application context form a cycle. serviceCollectionIdCacheService┌─────┐| serviceProductInfoProviderImpl↑ ↓| serviceOfflineProviderImpl↑ ↓| serviceP原创 2022-01-10 15:55:31 · 7173 阅读 · 0 评论 -
升级spring boot异常:When allowCredentials is true, allowedOrigins cannot contain the special value
问题从spring boot 2.2.9升级到2.6.2版本后,项目启动后访问报错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 creden原创 2022-01-10 15:36:36 · 712 阅读 · 0 评论 -
升级spring boot异常:DataSource name not set
问题从spring boot 2.2.9升级到2.6.2版本后,启动项目quartz报错Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in class path resource [org/springframework/boot/autoconfigure/quartz/QuartzAutoConfig原创 2022-01-10 15:21:12 · 6715 阅读 · 4 评论 -
Spring Security介绍
简介Spring Security 是一个功能强大且高度可定制的身份验证和访问控制框架。它是保护基于 Spring 的应用程序的事实上的标准。Spring Security 是一个专注于为 Java 应用程序提供身份验证和授权的框架。与所有 Spring 项目一样,Spring Security 的真正强大之处在于它可以轻松扩展以满足自定义要求摘自:spring官网spring security和OAuth2的关系?根据之前对OAuth2的介绍,OAuth2只是一种协议,规则。而spring s原创 2021-11-18 14:59:05 · 500 阅读 · 0 评论 -
springmvc 接收application/json和application/xml请求体
预备知识什么是application/json和application/xml? https://imququ.com/post/four-ways-to-post-data-in-http.html环境Spring3 jackson-core-2.0.5.jar jackson-annotations-2.0.5.jar jackson-mapper-lgpl-1.9.0...原创 2018-04-05 12:29:20 · 6142 阅读 · 2 评论