Courses / Professional engineering / Spring Boot Fundamentals

₹99Self-paced

Spring Boot Fundamentals

Build a tested Spring Boot REST service with validation, persistence, security boundaries and observable configuration.

  • Who it's for. Java developers new to Spring who know HTTP and basic SQL.
  • Before you start. Courses: Java Programming, REST API Design, SQL and Database Foundations.
  • 29 to 50 hours of study with practice
  • 9 modules, 53 lessons
  • 3 guided projects and a final project

What you'll learn

  • Create, build and run a Spring Boot project on a pinned JDK with the Maven wrapper and explain its starters and auto-configuration with the conditions report.
  • Wire beans with constructor injection, @Bean methods, qualifiers and conditions, and prove the wiring with context tests.
  • Build REST controllers whose paths, statuses, headers and bodies match a written contract, verified with MockMvc.
  • Validate input with Bean Validation and return one consistent problem-document error shape.
  • Persist data with Spring Data JPA on H2, keep multi-step writes atomic and guard against lost updates and N+1 queries.

Skills you'll gain

  • Java build workspace
  • Dependency injection
  • Controllers
  • contracts
  • Validation
  • errors
  • Persistence
  • transactions
  • Security boundaries
  • Integration tests
  • Configuration
  • observability
  • Service project

Tools you'll use

  • Java
  • Spring Boot
  • Maven wrapper
  • H2

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 9 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    TicketDesk contract and read slice

    Covers Java build workspace, Dependency injection and Controllers and contracts.

    You build: Guided project: Generated project with notes proving pinned JDK and wrapper, tree-diff and conditions-report evidence, and a packaged jar run on loopback.

  2. 02

    Modules 4 to 5

    TicketDesk validated and persisted

    Covers Validation and errors and Persistence and transactions.

    You build: Guided project: Validated request records, global problem-document advice and a custom constraint with unit and MockMvc tests.

  3. 03

    Modules 6 to 8

    TicketDesk secured, configured and observable

    Covers Security boundaries, Integration tests and Configuration and observability.

    You build: Guided project: SecurityFilterChain with agent and admin users and a table-driven 401/403/2xx matrix Slice, full-context and security tests with isolation proof.

  4. 04

    Module 9

    Final project and assessment

    Covers Service project, then the final project: TicketDesk-class Spring Boot API with validated requests, persistence, authorisation and a layered test suite, packaged and demonstrated from a clean checkout..

    You build: Final project, one of: Support-ticket API (TicketDesk variant): tickets, comments, assignment, status transitions / Equipment-loan API: items, loans, returns, overdue listing, staff and member roles / Event-registration API: events, registrations with capacity rule.

Full curriculum

9 modules and 53 lessons, 29 to 50 hours of study

01Java build workspace6 lessons, 3 to 4 hours

Lessons

  • Pinning the JDK and the Maven wrapper
  • Reading a generated pom: parent, starters, plugin
  • The main class: @SpringBootApplication and the package layout
  • Starters are dependency bundles, not code
  • Auto-configuration, conditions and the --debug report
  • Running, repackaging and the executable jar

After this module you can

  • Verify that a project builds with a stated JDK and the project's own Maven wrapper rather than whatever is installed globally.
  • Explain each block of an Initializr-generated pom.xml and predict what removing the parent changes.
  • Run the application three ways (test, run goal, packaged jar) and override the server port without editing code.
02Dependency injection6 lessons, 3 to 4 hours

Lessons

  • Beans and stereotype annotations
  • Constructor injection and immutability
  • Configuration classes and @Bean methods
  • Choosing between candidates: @Primary and @Qualifier
  • Scope and lifecycle of a bean
  • Conditional beans and asserting the bean listing

After this module you can

  • Mark classes as beans with @Component, @Service and @Repository and show them in the ApplicationContext.
  • Inject collaborators through a constructor and explain why the field becomes final and testable without the container.
  • Make a bean exist only under a property and assert the bean listing with a context test.
03Controllers and contracts6 lessons, 3 to 4 hours

Lessons

  • A @RestController and its first GET mapping
  • Path variables, query parameters and defaults
  • Request bodies as records
  • Response status and headers with ResponseEntity
  • Separating API shapes from internal models
  • Pinning the contract with MockMvc

After this module you can

  • Map a GET request to a controller method, return JSON, and verify the response with MockMvc.
  • Bind @PathVariable and @RequestParam values with types, defaults and optionality, and predict the response for a bad value.
  • Write one MockMvc test per documented operation that checks method, path, status, header and body together.
04Validation and errors6 lessons, 3 to 4 hours

Lessons

  • Bean Validation constraints on a request record
  • The default validation failure and its field errors
  • A global exception handler with @RestControllerAdvice
  • Problem Details (RFC 9457) from Spring
  • Validating path and query parameters
  • Writing a custom constraint

After this module you can

  • Declare jakarta.validation constraints on a request record and trigger them with @Valid.
  • Read the default 400 response for a failed @Valid body and extract the field names and messages from it.
  • Create an annotation and a ConstraintValidator for a rule that built-in constraints cannot express.
05Persistence and transactions7 lessons, 3 to 5 hours

Lessons

  • Mapping an entity on embedded H2
  • Spring Data repositories and derived queries
  • Custom queries, sorting and paging
  • Schema creation and seed data
  • Transactions with @Transactional
  • Relationships and the N+1 query trap
  • Optimistic locking and the open-in-view setting

After this module you can

  • Map a class with jakarta.persistence annotations and watch Boot create the table in an embedded database.
  • Declare a repository interface and use derived finder methods whose names encode the query.
  • Prevent lost updates with a version field and decide whether to keep Boot's open-in-view default.
06Security boundaries5 lessons, 2 to 4 hours

Lessons

  • What the security starter does the moment it is added
  • Declaring rules with SecurityFilterChain
  • Users, roles and the 401 versus 403 split
  • CSRF, sessions and what a stateless API changes
  • Securing actuator and keeping secrets out of the repo

After this module you can

  • Observe the default protection after adding the security starter and explain the 401 on every route.
  • Define a SecurityFilterChain bean that permits some paths and requires authentication for the rest.
  • Apply different rules to actuator endpoints and move credentials out of tracked files.
07Integration tests6 lessons, 3 to 4 hours

Lessons

  • @SpringBootTest and its web environments
  • Web slice tests with @WebMvcTest and @MockitoBean
  • Asserting JSON responses precisely
  • Data slice tests with @DataJpaTest
  • Testing the security boundary
  • Test properties, dynamic values and rollback limits

After this module you can

  • Compare MOCK and RANDOM_PORT web environments and pick the right one for a wiring check.
  • Test one controller in isolation, replacing its service with a mock bean.
  • Override configuration for a single test and explain what transactional rollback does not cover in RANDOM_PORT tests.
08Configuration and observability6 lessons, 3 to 4 hours

Lessons

  • Property sources and precedence
  • Typed settings with @ConfigurationProperties records
  • Failing fast: validating configuration
  • Profiles and environment-specific files
  • Actuator health, exposure and details
  • Beans, mappings and env endpoints as verification tools

After this module you can

  • Predict which value wins when the same key appears in several places and verify it by running.
  • Bind a group of related properties to an immutable record and enable it.
  • Use the beans, mappings and env endpoints to check wiring, routes and sanitised configuration against expectations.
09Service project5 lessons, 2 to 4 hours

Lessons

  • Fix the TicketDesk contract and project plan
  • Build the create-and-read vertical slice
  • Add update, list, assignment and delete
  • Apply errors, security and configuration across the service
  • Package, run and evidence the final build

After this module you can

  • Write the service contract and a milestone checklist that every later check will trace back to.
  • Deliver the first end-to-end operations through controller, service, repository and database, with a passing test at each layer.
  • Produce a jar, run it on loopback, collect evidence and write the setup instructions a reviewer can follow.

What you'll build

3 guided projects along the way, then a final project.

  • TicketDesk contract and read slice

    after module 3
  • TicketDesk validated and persisted

    after module 5
  • TicketDesk secured, configured and observable

    after module 8

Final project

TicketDesk-class Spring Boot API with validated requests, persistence, authorisation and a layered test suite, packaged and demonstrated from a clean checkout..

What you submit

Source repository or zip plus a README with exact setup and run commands for a clean machine (JDK, wrapper, port) Contract table covering every operation with success and error statuses, and executable tests for each row.

How it's reviewed

Trainer-reviewed demonstration. Pass requires: tests rerun green on a clean checkout every contract row demonstrated refusals (400, 401, 403, 404, 409) demonstrated no secrets in tracked files limitations listed honestly.

Where you'll use it

  • Add a validated endpoint with consistent error responses to a support-ticket service.
  • Write an integration test that proves a role cannot reach another user's data.

Roles that use these skills

  • Java Developer
  • Backend Developer
  • Software Engineer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before starting?

Working Java skills (classes, interfaces, records, generics, collections, exceptions, a basic test), read HTTP requests and responses with curl, the REST contract ideas from the earlier course, and basic SQL tables and keys. Not required: any prior Spring experience.

When do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Staff issue certificates after review; nothing is issued automatically.

Be first in when Spring Boot Fundamentals opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹99Opens soon
Notify me