Spring5源码下载与配置

Spring5源码下载与配置

源码下载地址:https://github.com/spring-projects/spring-framework/archive/v5.0.2.RELEASE.zip

基于Gradle的源码构建步骤(IDEA)

Spring:spring-framework-5.0.2
JDK 1.8
Gradle:gradle-7.4

  • 下载Gradle(Gradle下载地址:https://gradle.org/releases),此处提供的版本是4.0,下载地址:https://gradle.org/next-steps/?version=4.0&format=bin。

  • 配置环境变量(此处就不多赘述,就跟配置jdk一样)

  • 配置好以后,打开黑窗口输入gradle -v可以看到相关信息

  • 打开idea导入项目,打开settings -> 搜索gradle

在这里插入图片描述

  • 等待项目编译,如果字体变粗就说明编译好了(编译时间会相对较长十几分钟左右)

总结下可能会遇到的bug:
1、JDK未配置好
2、[Received status code 401 from server: Unauthorized]这是因为spring的官网现在需要登录才能下载包。所以我们将build.gradle下载地址改为阿里云的地址。

在这里插入图片描述

maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/spring" }

3、org.jetbrains.dokka version “0.9.15”报错。我找到的解决办法是将版本号改成0.9.17
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Learning Spring 5.0 English | 2017 | ISBN-10: 1787120341 | 422 pages | PDF, MOBI, EPUB (conv) | 197 Mb Key Features Build an enterprise application throughout the book that communicates with a microservic Define and inject dependencies into your objects using the IoC container Make use of Spring’s reactive features including tools and implement a reactive Spring MVC application Book Description Spring is the most widely used framework for Java programming and with its latest update to 5.0 rolling out early next year, the framework is undergoing massive changes. Built to work with both Java 8 and Java 9, Spring 5.0 promises to simplify the way developers write code, while still being able to create robust, enterprise applications. If you want to learn how to get around the Spring framework and use it to build your own amazing applications, then this book is for you. Beginning with an introduction to Spring and setting up the environment, the book will teach you in detail about the Bean life cycle and help you discover the power of wiring for dependency injection. Gradually, you will learn the core elements of Aspect-Oriented Programming and how to work with Spring MVC and then understand how to link to the database and persist data configuring ORM, using Hibernate. You will then learn how to secure and test your applications using the Spring-test and Spring-Security modules. At the end, you will enhance your development skills by getting to grips with the integration of RESTful APIs, building microservices, and doing reactive programming using Spring, as well as messaging with WebSocket and STOMP. What you will learn Get to know the basics of Spring development and gain fundamental knowledge about why and where to use Spring Framework Explore the power of Beans using Dependency Injection, wiring, and Spring Expression Language Implement and integrate a persistent layer in your application and also integrate an ORM such as Hibernate Understand how to manage cross-cutting with logging mechanism, transaction management, and more using Aspect-oriented programming Explore Spring MVC and know how to handle requesting data and presenting the response back to the user Get to grips with the integration of RESTful APIs and Messaging with WebSocket and STOMP Master Reactive Programming using Spring MVC to handle non-blocking streams About the Author Tejaswini Jog is a Senior Freelance Java Corporate Trainer. Specialized in J2EE architecture, she is a well-known trainer for leading MNC companies. Over last 5 years in her corporate training experience, she had conducted more than 70 training sessions on Java and J2EE. Certified in SCJP (Sun Certified Java Professional), her focus is on training students and working professionals about the advanced technologies that can enhance their professional skills. She had trained more than 2000 professionals to date. She is a frequent speaker at different colleges and universities and has conducted sessions on “New Trends in Java”, “Object Oriented Programming using Java”. Tejaswini also works with some organizations as a consultant to set up the training modules for developers to develop a skilled workforce. Recently, she had also written a book entitled Learning Modular Java Programming, which is mainly focused on developing modular applications using Java and Spring framework.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值