Skip to content

Add Thymeleaf landing page and error page#2

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/create-landing-and-error-page
Draft

Add Thymeleaf landing page and error page#2
Copilot wants to merge 2 commits intomasterfrom
copilot/create-landing-and-error-page

Conversation

Copy link

Copilot AI commented Mar 19, 2026

This project had no web UI — only bare REST endpoints. Adds a styled landing page and a custom error page using Thymeleaf.

Changes

  • pom.xml – Added spring-boot-starter-thymeleaf dependency
  • WebController@Controller mapping GET /index Thymeleaf view
  • templates/index.html – Landing page listing available endpoints with links to Swagger UI and the version endpoint
  • templates/error.html – Error page rendering HTTP status, error name, and message via Thymeleaf model attributes (${status}, ${error}, ${message}); includes a "Back to Home" link
  • WebControllerTest@WebMvcTest verifying GET / returns HTTP 200 and resolves the index view

Spring Boot's BasicErrorController automatically populates the error model and routes to templates/error.html for all 4xx/5xx responses.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: GoetzEli <157024555+GoetzEli@users.noreply.github.com>
Copilot AI changed the title [WIP] Add landing and error page for the project Add Thymeleaf landing page and error page Mar 19, 2026
Copilot AI requested a review from GoetzEli March 19, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants