Summary. I demonstrate how to build, secure, and deploy full-stack web applications using the Spring Boot framework. These posts cover everything from creating REST APIs and GraphQL endpoints to managing data with Spring Data JPA and deploying to Azure.
What the posts say
The @RestController annotation ensures that methods return data instead of web pages.
βA: It marks the class as a controller whose methods return data, not web pages.β β Java Spring Boot (Part 1)
Spring Data JPA allows for data storage using Java classes and interfaces without writing SQL.
βSpring Data JPA lets me store a TodoItem with a Java class and a repository interface, with no SQL.β β Java Spring Boot (Part 3)
The application never sees the user's GitHub password during OAuth2 authentication.
βThe application sends the browser to GitHub, the user signs in there, and GitHub sends the browser back with proof, so my application never sees the GitHub password.β β Java Spring Boot (Part 6)
The schema acts as the contract between the client and the server in a GraphQL API.
βA: The contract between the client and the server.β β Java Spring Boot (Part 5)
I used ModelAndView to pass both the view name and the model data to the template.
βA: It carries two things from a controller to the page: the name of the view, and the model, which is the data that the view needs.β β Java Spring Boot (Part 4)
Azure Spring Apps is a managed service that handles the underlying Kubernetes infrastructure.
βIt is fully managed, and it runs on Kubernetes. Each service instance has two dedicated Kubernetes clusters that Azure Spring Apps manages and hides from me.β β Java Spring Boot (Part 7)
The build job sets up the environment and creates the JAR file.
βA build job checks out the code, sets up Java 17, runs mvn clean install, and uploads the JAR file.β β Java Spring Boot (Part 2)
The posts behind this page
- Java Spring Boot (Part 7) β Hosting a Spring Boot application on Azure Spring Apps, from creating the service to scaling it, and the news that the service is being retired
- Java Spring Boot (Part 6) β Signing in with GitHub OAuth2 using Spring Security, then using roles to control who can open the user and admin pages
- Java Spring Boot (Part 5) β Building a GraphQL API with Spring for GraphQL: a schema, queries and mutations, and the GraphiQL explorer, backed by an H2 database
- Java Spring Boot (Part 4) β Using Spring MVC's ModelAndView and a Thymeleaf template to show todo items on a web page, with a delete button
- Java Spring Boot (Part 3) β Using Spring Data JPA with an in-memory H2 database to store and list todo items, and deploying the application to Azure
- Java Spring Boot (Part 2) β Generating a Spring Boot project with start.spring.io, running it locally, and deploying it to Azure App Service with GitHub Actions
- Java Spring Boot (Part 1) β Creating a REST API with Spring Boot and Spring Tool Suite: a books controller, annotations, and a React client served from the same project