SPRING CONCEPTS

Query parameters, paths and forms

Spring Concepts / Detailed guide

Compare the three ways we passed numbers

StageRequestHow Java reads it
Query parameters/add?a=10&b=20@RequestParam
Path variables/add/10/20@PathVariable
GET form/calculate?a=10&b=20&operation=add@RequestParam; browser builds the query string

Practice: explain what the browser sends, which Java method runs, and what the browser receives for each stage. Continue below when these examples feel clear.

← All Spring Concepts · Learning path

Java 21 · Spring Boot 4.1.1 · Edupoly