Spring is by far the most popular framework for Enterprise and internet Java development today. In this java spring tutorial will not only introduce you to the Spring Framework but some of the core fundamentals of how the framework itself operates.
Leveraging Spring in a Java development shop will allow you to better focus on your business logic, improve your time to market, give you a solid foundation in opensource technology, as well as prepare you for cloud-data of applications.
We will start this course with an introduction to the framework, and the IoC container itself. From there, we will explain the various ways to configure the application context.
We will focus most of our time on Java configuration, as it is the modern way, along with auto configuration, to configure your application context. We will introduce the basics of XML configuration to help support your legacy needs. We will then dig into my single favorite topic in the Spring World. And that is the Spring lifecycle. As we dig into the Spring lifecycle, you will start to better understand how to leverage the framework more to your advantage.
Understanding the lifecycle will also help you troubleshoot issues as your application runs. Learning more about the
framework will also help you if you desire to contribute to the framework itself. We will finish up with a discussion of leveraging Aspects in Spring applications.
Aspects are powerful tools for adding behavior to your application in a re-usable way.
Throughout this java spring tutorial, I’m going to be using the 1 8 version of Java. You can use 1 7 and complete all of the exercises correctly.
There will be a couple times where I will use constructs from the 1 8 version of Java. As such, when I use those land expressions specifically, you will need to use the corresponding syntax that works in the 1 7 version of Java, if you choose to use that level of the language.
I also ask that you have a basic understanding of Maven and specifically dependency management with Maven.
Now, while we’re not going to dig too deep into Maven itself, it’s what we’re going to use to download all of the dependencies that we need in order to execute all of the code examples throughout this course.
I also expect you to be semi-familiar with your IDE. You don’t need to all the shortcuts and whatnot but knowing how the IDE works and how to run applications in your IDE will make executing the code examples that much easier.