Spring家族
文章平均质量分 55
Spring家族
Honyelchak
没有“不可能”!
展开
-
调试Spring源码时:Execution failed for task ‘:xxxx:checkStyleMain‘. > Checkstyle ruleviolations were found
源码的过程中,不可避免要写一些测试类,但是由于Spring源码项目中配置了。不过这些问题在我们阅读源码时,可以尽可能的忽略。为了提高阅读源码的效率,需要配置。,导致自己写的代码在。原创 2023-02-12 21:32:31 · 947 阅读 · 0 评论 -
利用Gradle构建Spring5源码出现的一些问题
org.gradle.internal.exceptions.LocationAwareException: Settings file 'G:\IdeaProject\spring-framework\settings.gradle' line: 9Plugin [id: 'com.gradle.enterprise', version: '3.5.1'] was not found in any of the following sources:- Gradle Core Plugins (pl.原创 2021-03-10 10:31:50 · 2665 阅读 · 6 评论 -
利用Gradle在Idea上构建Spring5.3.x源码(太不容易了!)
为了系统学习Spring源码,需要利用Gradle构建Spring源码。花了一天半才把这个东西搞定,讲道理,这个东西真的挺不好弄的。文章目录一、版本的选择二、下载Spring源码三、导入Idea四、修改配置五、其他修改问题一:Error resolving plugin [id: 'io.spring.gradle-enterprise-conventions', version: '0.0.2']问题二:每次构建都要下载gradle-bin.zip问题三:下载特别慢六、开始编译一、版本的选择成功原创 2021-03-10 16:30:17 · 4239 阅读 · 2 评论 -
谷粒商城配置CorsWebFilter后,报错:Resource sharing error:MultipleAllowOriginValues
谷粒商城项目在gateway中配置了CorsWebFilter来解决跨域问题:@Beanpublic CorsWebFilter corsWebFilter(){ UrlBasedCorsConfigurationSource configurationSource = new UrlBasedCorsConfigurationSource(); CorsConfiguration corsConfiguration = new CorsConfiguration(); //1原创 2021-02-05 13:25:42 · 2744 阅读 · 3 评论 -
Spring Cloud Alibaba-Nacos之注册与发现、配置管理
NacosNacos 是阿里巴巴开源的一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。使用Nacos实现服务注册与发现,或者使用它动态管理服务配置,都离不开Nacos Server的支持。1、安装Nacos Server两种方法:直接下载:Nacos Server 下载页源码构建:进入 Nacos Github 项目页面,下载解压之后如图:如果是linux系统:执行startup.sh启动如果是win系统:执行startup.cmd启动启动成功之后(win)原创 2021-01-28 20:17:44 · 220 阅读 · 0 评论 -
SpringBoot测试类:Could not autowire. No beans of ‘BrandService‘ type found
如题,最近在做项目的过程中发现SpringBootTest测试类中的BrandService 无法注入。在idea中,brandService是爆红的。解决方案spring boot测试类 包名与main下application.class启动类的包名默认要一致。即下图中的两个包名都是com.honyelchak.gulimall.product...原创 2021-01-27 14:39:05 · 2607 阅读 · 14 评论 -
Mybatis使用注解插入数据,插入成功后,对象自动赋值id
环境SpringBoot1.5.9Mybatis1.3.2POJO@Data@AllArgsConstructor@ToStringpublic class OpenDirectory implements Serializable { private Long id; private String meetingName; private String in...原创 2020-03-24 21:24:26 · 3107 阅读 · 0 评论 -
SpringCloud中thymeleaf访问页面解析出错:Could not parse as expression:
thymeleaf将js代码中的二维数组,当做了自己的标签,进行解析。只需要在<script type="text/javascript"> 上加th:inline="none"即:<script type="text/javascript" th:inline="none">参考博客: https://blog.csdn.net/minion_banana/ar...原创 2019-04-27 13:09:32 · 4503 阅读 · 0 评论