栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

spring 源码分析 —— 项目启动/初次打开

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

spring 源码分析 —— 项目启动/初次打开

印象笔记:http://spring 源码分析 —— 项目启动/初次打开

源码版本 5.2.9.BUILD-SNAPSHOT

启动步骤

  1. Precompile spring-oxm with ./gradlew :spring-oxm:compileTestJava

    先重新编译目录,到项目根目录,maclinux 上运行./gradlew :spring-oxm:compileTestJava,windows上运行

    gradlew.bat :spring-oxm:compileTestJava

    成功结果:

  2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
    注意这里不要直接使用idea 的File -> Open,而是应该File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle

  3. When prompted exclude the spring-aspects module (or after the import via File-> Project Structure -> Modules)

  4. Code away

问题 问题1. Plugin with id 'org.springframework.build.compile' not found

原因和解决方法:

把项目上传自己的github中,在.gitgnore中忽略了buildSrc目录,我在mac上本地编译没问题上传了github,然后在别一台windows上clone下来编译发出报这个错,google没有相关的解决方案,然后对比了一下目录结构发现少了这个buildSrc,尝试copy过来编译,最后成功了

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/991771.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号