Skip to content

Pilot92802/spring5webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Framework 5: Beginner to Guru

This repository is for an example application built in my Spring Framework 5 - Beginner to Guru online course

The application is a simple Spring Boot 2 / Spring Framework 5 web application. It is used to help students learn how to use the Spring Framework. Step by step instructions and detailed explanations can be found within the course.

As you work through the course, please feel free to fork this repository to your out GitHub repo. Most links contain links to source code changes. If you encounter a problem you can compare your code to the lesson code. See this link for help with compares

Spring Framework 5: Beginner to Guru Course Wiki

Got a question about your Spring Framework 5 course? Checkout these FAQs!

Getting Your Development Environment Setup

Recommended Versions

Recommended Reference Notes
Oracle Java 11 JDK Download Java 8 or Java 17 may also be used.
IntelliJ 2018 or Higher Download Ultimate Edition recommended. Students can get a free 120 trial license here
Maven 3.6.0 or higher Download Installation Instructions
Gradle 4.8 or higher Download Note: Use Version 5 or higher if using Java 11
Git 2.15 or higher Download
Git GUI Clients Downloads Not required. But can be helpful if new to Git. SourceTree is a good option for Mac and Windows users.
Spring Boot 2.1 or higher What's new

All Spring Framework Guru Courses

Spring Framework 5

SQL

DevOps

Web Development with Spring Framework

Connect with Spring Framework Guru

  • Spring Framework Guru Blog
  • Subscribe to Spring Framework Guru on YouTube
  • Like Spring Framework Guru on Facebook
  • Follow Spring Framework Guru on Twitter
  • Connect with John Thompson on LinkedIn

Change log

EqualsAndHashcode 7-14-2024

  • working on using the equals and hashcode override within Intellij.
  • context menu (alt+ins) select 'equals() and hashcode()'
  • fill-out items in the dialogue box and Intellij will create the methods for you.

toString 7-14-2024

  • adding a toString method to each of the book and author classes
  • context menu (alt+ins) select 'toString()'
  • a few dialogue entries (select class data elemeents to add) and Intellij will build the method for you

DataRepositories 7-14-2024

  • Refactored the Book and Author classes into a package called Domain
  • Created a new package called Repositories
  • Create new class (interface) in the Repository package called AuthorRepository extends CrudRepository
    • provide the type (in this case Author) and the id type which is a Long
  • Create new class (interface) in the Repository package called BookRepository extends CrudRepository
    • provide the type (in this case Book) and the id type which is a Long

Bootstrap 8/3/2024

  • struggled with an error where the auto generated id in the JPA managed component didn't appear to be auto generating. Needed it update the return of the hashcode method override. The return didn't handle the condition if the id was null.

About

Example Spring 5 Web Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%