Introduction Java Spring Framework

1 min read

Spring at a Glance

Spring turns a Java data object into a working web application:

POJO / @Entity -> JpaRepository -> Controller -> Endpoint -> UI
  • POJO / entity: defines the data and its relationships.
  • JPA repository: saves and retrieves entity instances from SQLite.
  • Controller: receives HTTP requests and coordinates repository calls.
  • UI: either fetches JSON from /api/* or receives HTML from /mvc/*.

For the scored assignment and its required implementation choices, return to Java Spring Hacks.

Reference Example

The Jokes example shows Spring in action, this requires an account and login as it records data.

Open the Jokes runtime. It requires an account and login because it records data.

Java Jokes

Course Timeline