Skip to content
Snippets Groups Projects
Commit 75344605 authored by Seb Barnard's avatar Seb Barnard :speech_balloon:
Browse files

Added new default error page

parent 77320dcf
No related branches found
No related tags found
2 merge requests!114LoggingService service class, new method to add a log to the "Logs" table when...,!113Added new default error page
package com.example.clientproject.web.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class Throw500 {
@GetMapping("/return500")
public String throw500(){
return "index.html";
}
}
spring.thymeleaf.cache=false spring.thymeleaf.cache=false
server.error.whitelabel.enabled=false
#spring.datasource.url=jdbc:mariadb://localhost:3306/mydb?useSSL=false&requireSSL=false&serverTimezone=UTC #spring.datasource.url=jdbc:mariadb://localhost:3306/mydb?useSSL=false&requireSSL=false&serverTimezone=UTC
# #
##set credentials explicitly ##set credentials explicitly
...@@ -14,4 +16,6 @@ spring.session.store-type=jdbc ...@@ -14,4 +16,6 @@ spring.session.store-type=jdbc
spring.session.jdbc.initialize-schema=always spring.session.jdbc.initialize-schema=always
spring.session.timeout.seconds=900 spring.session.timeout.seconds=900
jwt.secret_key=xfVBfHdprpZqn73pbPotfLyBXNR8IWZ7MxhD59sFuBB7QjnLnWppFiZp6Yhu jwt.secret_key=xfVBfHdprpZqn73pbPotfLyBXNR8IWZ7MxhD59sFuBB7QjnLnWppFiZp6Yhu
\ No newline at end of file
<html lang="en" style="
height: 100vh;
"><head>
<meta charset="UTF-8">
<title>Something went wrong</title>
<link th:replace="fragments/libs.html :: bulma"/>
<link th:replace="fragments/libs.html :: fa"/></head>
<body>
<div class="is-flex is-justify-content-center is-align-items-center" style="text-align: center;min-height: 100vh;">
<h1 class="title is-1 mb-6" style="max-width:75%;">
Whoops! It looks like something went wrong! Click below
to return to the
<a href="/">dashboard</a>
</h1>
</div>
</body></html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment