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
- Java basics: types, variables, and methods, compared with Python
- Reading compiler errors and tracing Java code
- Classes and objects
- Collections: List and Map
- Exceptions and error handling
- Interfaces and inheritance
- Testing Java code with JUnit
- A Spring Boot project and dependency injection in plain words
- Building a web endpoint with Spring Boot
- Checking input and returning clear errors
- Connecting Spring to a database
- Testing an endpoint, then packaging and running a small API
Teach it as
| One session | Read 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 day | Morning: Java basics compared with Python, classes, and objects. Afternoon: one Spring Boot endpoint and a test for it. |
| One week | Day 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
- Python 3: functions, lists, and files
- Git and working in a team
Standards this follows
- CS2023 Software Development Fundamentals (SDF)
- CS2023 Software Engineering (SE): software design, verification and validation
- Olara's library: Think Java (Downey and Mayfield), Spring in Action 6th ed. (Walls), and Deblauwe's Spring Boot API guide (research 05)
Videos to download
No videos listed yet.