spring源码下载安装,导⼊idea以及编译报错问题详细解决过程参考 《spring源码深度解析 第2版》
⼀、spring源码下载
github⾸页搜索 “spring”
选择 spring-projects/spring-framework
点击 Branch master 选择5.0.x
下载源码 ZIP压缩包
Clone or download -> Download ZIP ⼆、idea 导⼊源码⼯程
解压源码后,idea File -> Open 打开源码
Import Project from Gradle ⼯程属性
导⼊idea后 如下:
为什么叫jsp
通用的编程接口>边框怎么画好看又漂亮
重新编译⼯程 Build -> Rebuild Project
报错:
Error:Kotlin: [Internal Error] java.lang.IllegalStateException: The provided plugin org.jetbrains.kotlin.scriptingpiler.plugin.ScriptingCompilerConfiguration ComponentRegistrar is not compatible with this version of compiler
at org.jetbrains.kotlin.cli.jvmpiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:181)
java下载过程at org.jetbrains.kotlin.cli.jvmpiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:117)
at org.jetbrains.kotlin.cli.jvmpiler.ateForProduction(KotlinCoreEnvironment.kt:413)
at org.jetbrains.kotlin.cli.ateCoreEnvironment(K2JVMCompiler.kt:276)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:154)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:63)
at org.jetbrains.kotlin.Impl(CLICompiler.java:108)系统架构和软件架构
at org.jetbrains.kotlin.Impl(CLICompiler.java:52)
at org.jetbrains.kotlin.(CLITool.kt:92)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:389)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:97)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:909)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:97)
at org.jetbrains.kotlin.daemonmon.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:939)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:908)
at org.jetbrains.kotlin.daemon.CompileServiceImplpile(CompileServiceImpl.kt:387)
flect.NativeMethodAccessorImpl.invoke0(Native Method)
flect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
flect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at flect.Method.invoke(Method.java:498)
i.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
i.transport.Transport$1.run(Transport.java:200)
i.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
i.transport.Transport.serviceCall(Transport.java:196)
p.TCPTransport.handleMessages(TCPTransport.java:573)
p.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
p.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
at java.security.AccessController.doPrivileged(Native Method)
p.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
at urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.AbstractMethodError: org.jetbrains.kotlin.scriptingpiler.isterProject Components(Lcom/intellij/mock/MockProject;Lorg/jetbrains/kotlin/config/CompilerConfiguration;)V
at org.jetbrains.kotlin.cli.jvmpiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:179)
... 33 more
根据报错信息
The provided plugin org.jetbrains.kotlin.scriptingpiler.plugin.Scripting
可以知道是 kotlin版本的问题
在idea 中 File -> Settings -> Plugins 搜索栏输⼊ Kotlin, 点击Update安装mysql界面是欢迎回来
注意:如果没有显⽰update ,稍等⼀会应该会出现,如果还不⾏,那就重启下idea

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。