All topics

Java and Spring

Learners build and test a web service in Java with Spring Boot that other programs can call.

Outline

Who it is for: Learners who can write and test basic Python and want to build back-end services for larger systems.

Many banks, government systems, and larger companies run back-end services written in Java. Learners who can build a small API have a path into well-paid software work. At the end, the learner can write a Spring service with an endpoint, connect it to a database, and test it.

The database lesson is easier after Databases and SQL. Spring Boot needs internet the first time it downloads its libraries, so set up each project before class.

AI tools write Spring boilerplate quickly, so this module spends less time on typing it and more on tests, input checks, and reading code. AI policy: Pioneers and adults may use AI after the Java basics checkpoint, and every AI-assisted change ends with passing tests, a look for security problems, and an explanation in their own words. The checkpoint is done without AI.

Planned lessons

  1. Java basics: types, variables, and methods, compared with Python
  2. Reading compiler errors and tracing Java code
  3. Classes and objects
  4. Collections: List and Map
  5. Exceptions and error handling
  6. Interfaces and inheritance
  7. Testing Java code with JUnit
  8. A Spring Boot project and dependency injection in plain words
  9. Building a web endpoint with Spring Boot
  10. Checking input and returning clear errors
  11. Connecting Spring to a database
  12. Testing an endpoint, then packaging and running a small API

Teach it as

One sessionRead and predict a short Java class, then write a class with one method, test it with JUnit, and run it, in one 2 hour class.
One dayMorning: Java basics compared with Python, classes, and objects. Afternoon: one Spring Boot endpoint and a test for it.
One weekDay 1: Java basics, compiler errors, and classes. Day 2: collections, exceptions, interfaces, and JUnit tests. Day 3: Spring Boot, dependency injection, and a first endpoint. Day 4: checking input, a database connection, and endpoint tests. Day 5 (Build and Show): checkpoint without AI, then each learner shows a small tested API and explains its code.

Know this first

Standards this follows

Videos to download

No videos listed yet.