编译 Spring-framework的经验分享
spring-framework
spring-projects/spring-framework: 一个基于 Java 的开源应用程序框架,用于构建企业级 Java 应用程序。适合用于构建各种企业级 Java 应用程序,可以实现高效的服务和管理。
项目地址:https://gitcode.com/gh_mirrors/sp/spring-framework

·
Spring-framework source code
git url: git clone git://github.com/SpringSource/spring-framework.git
导入IDE
Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.
启动 ./import-into-eclipse.sh 时,出现如下错误
Unrecognized VM option ‘MaxMetaspaceSize=1024m’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
这是因为”MaxMetaspaceSize=1024m” 这个参数配置只出现在jdk 8中,默认情况下是在master分支下,猜测是基于jdk 8开发。
所以有三个选择:
1. 切换到其他分支,如3.2.X
2. 安装jdk8
3. 编辑gradlew.bat,移去VM option MaxMetaspaceSize.




spring-projects/spring-framework: 一个基于 Java 的开源应用程序框架,用于构建企业级 Java 应用程序。适合用于构建各种企业级 Java 应用程序,可以实现高效的服务和管理。
最近提交(Master分支:5 个月前 )
7557967f
Prior to this commit, if a custom stereotype annotation was
meta-annotated with @Component and declared a local String `value`
attribute that was explicitly configured (via @AliasFor) as an
override for an attribute other than @Component.value, the local
`value` attribute was still used as a convention-based override for
@Component.value.
Consequently, a local `value` attribute was used as a custom
@Component name, even when that is clearly not the intent.
To address that, this commit revises the logic in
AnnotationBeanNameGenerator so that a `value` attribute which is
explicitly aliased to something other than @Component.value is no
longer used as an explicit @Component name.
See gh-34317
Closes gh-34346
15 小时前
4ba14ca5 - 17 小时前
更多推荐
所有评论(0)