mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Arreglada la vista de error
This commit is contained in:
parent
ea546e458c
commit
ecaf01100a
3 changed files with 7 additions and 6 deletions
|
@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||
@Controller
|
||||
public class CrashController {
|
||||
|
||||
@GetMapping("/oups")
|
||||
@GetMapping(value="/oups")
|
||||
public String triggerException() {
|
||||
throw new RuntimeException(
|
||||
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
||||
|
|
BIN
src/main/resources/static/resources/images/bar3.jpg
Normal file
BIN
src/main/resources/static/resources/images/bar3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 479 KiB |
|
@ -2,13 +2,14 @@
|
|||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="cheapy" tagdir="/WEB-INF/tags" %>
|
||||
|
||||
|
||||
<cheapy:layout pageName="error">
|
||||
|
||||
<spring:url value="/resources/images/pets.png" var="petsImage"/>
|
||||
<img src="${petsImage}"/>
|
||||
|
||||
<h2>Something happened...</h2>
|
||||
<h2>Algo malo ha pasado...</h2>
|
||||
|
||||
<spring:url value="/resources/images/Logo Cheapy.png" htmlEscape="true" var="cheapyImage"/>
|
||||
<img class="img-responsive" src="${cheapyImage}"/>
|
||||
|
||||
<p>${exception.message}</p>
|
||||
|
||||
|
||||
</cheapy:layout>
|
Loading…
Reference in a new issue