Spring Basics Course
Offered By: Treehouse
Course Description
Overview
Spring provides a plethora of widely-used development tools for Java programmers, one of which is a library for creating interactive web applications. In this course we'll begin to leverage the power of the Spring Framework to configure and write a fully-functioning Java web application.
What you'll learn
- Spring Framework
- Gradle
- Spring Tool Suite
- Thymeleaf
- Model View Controller (MVC)
Syllabus
Introduction and Setting up Our Development Tools
During this stage we'll get our local development environment setup with IntelliJ, and we'll also discuss the use of Gradle as a dependency management tool.
Chevron 9 steps-
Introduction to the Spring Framework
3:46
-
Intro to Java Web Apps
2 questions
-
Installing IntelliJ IDEA
0:55
-
Libraries as JARs
2:51
-
Third-Party Libraries in Java
2 questions
-
Overview of Gradle to Manage Dependencies
4:48
-
Intro to Gradle
1 question
-
Gradle in Action
4:27
-
Using Gradle
2 questions
Spring Components and Configuring Our App
The Spring Framework contains a variety of components that help us develop powerful web applications. During this stage, you'll see an overview of the most important components we'll leverage. We finish the stage by adding a configuration file to our Spring app, and deploying our application.
Chevron 7 steps-
A High-Level View of Spring
4:37
-
High-Level View of Spring
1 question
-
Configuring Gradle for Spring Development
7:54
-
Configuring Gradle for Spring
2 questions
-
Adding a Spring Configuration File
5:16
-
Deploying a Spring Application
1 question
-
Configure a Spring Application
2 objectives
Creating Controllers and Views
In order to serve HTML to the browsers that are making requests to our app, we'll create Spring controllers and Thymeleaf views. Combined with static assets such as CSS, images, and fonts, we can create a beautiful presentation in the browser.
Chevron 9 steps-
Create a Controller to Handle HTTP Requests
7:50
-
Getting Started with Spring Controllers
2 questions
-
Create a Simple Spring Controller
1 objective
-
Using Thymeleaf to Serve HTML
9:17
-
What is Thymeleaf?
2 questions
-
Serve a Thymeleaf View from a Controller
1 objective
-
Adding Static Assets
8:26
-
The Gift of Design
5:37
-
Linking to Static Assets in Thymeleaf
2 questions
Modeling, Storing, and Presenting Data
The purpose of creating a web application is to present data to your users in an engaging way. Now that we've discussed this presentation and how to serve HTML using Thymeleaf, we move to the underlying data. During this stage we'll write the classes necessary to store our GIF data and fetch it when needed. Then, we'll take that data and feed it to our Thymeleaf templates for display.
Chevron 10 steps-
Modeling Data with POJOs
4:26
-
What is a POJO?
2 questions
-
Create a POJO
1 objective
-
Feeding Data to Our Thymeleaf Templates
9:59
-
Insert POJO Data into Thymeleaf Template
1 objective
-
Create a Data Repository Component
10:07
-
Using @PathVariable to Create a Dynamic Detail Page
14:30
-
Capture a URI Parameter
1 objective
-
Create an Index Page That Presents a List of Data
7:28
-
Create an Index Page with Thymeleaf
1 objective
Using the MVC Architecture
In this final stage, we take a step back from our application to consider how we've organized our classes. In particular, we look at the Model-View-Controller (MVC) pattern, and how it helps us nicely organize the functionality of our app. It turns out, we've been using MVC all along. You'll conclude the course by writing another set of models, views, and controllers, to enhance the functionality of Giflib.
Chevron 11 steps-
What is MVC?
3:10
-
Model View Controller Basics
3 questions
-
Create a Category Model
1:40
-
Fix a Model
1 objective
-
Add a CategoryRepository
5:41
-
Add a CategoryController
9:40
-
Fix a Controller
1 objective
-
Code Two More Thymeleaf Templates
4:13
-
Fix a Thymeleaf Template
1 objective
-
Wrappin' It Up
1:18
-
Spring MVC Review
3 questions
Related Courses
Microsoft Power BI: Advanced Data Analysis and VisualisationCloudswyft via FutureLearn Advanced Data Modeling
Meta via Coursera Advanced Monitoring and Optimizing with DynamoDB (Simplified Chinese)
Amazon Web Services via AWS Skill Builder Advanced Monitoring and Optimizing with DynamoDB (Japanese)
Amazon Web Services via AWS Skill Builder Advanced Monitoring and Optimizing with DynamoDB (German)
Amazon Web Services via AWS Skill Builder