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
|
@Controller
|
||||||
public class CrashController {
|
public class CrashController {
|
||||||
|
|
||||||
@GetMapping("/oups")
|
@GetMapping(value="/oups")
|
||||||
public String triggerException() {
|
public String triggerException() {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
"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="spring" uri="http://www.springframework.org/tags" %>
|
||||||
<%@ taglib prefix="cheapy" tagdir="/WEB-INF/tags" %>
|
<%@ taglib prefix="cheapy" tagdir="/WEB-INF/tags" %>
|
||||||
|
|
||||||
|
|
||||||
<cheapy:layout pageName="error">
|
<cheapy:layout pageName="error">
|
||||||
|
|
||||||
<spring:url value="/resources/images/pets.png" var="petsImage"/>
|
<h2>Algo malo ha pasado...</h2>
|
||||||
<img src="${petsImage}"/>
|
|
||||||
|
<spring:url value="/resources/images/Logo Cheapy.png" htmlEscape="true" var="cheapyImage"/>
|
||||||
<h2>Something happened...</h2>
|
<img class="img-responsive" src="${cheapyImage}"/>
|
||||||
|
|
||||||
<p>${exception.message}</p>
|
<p>${exception.message}</p>
|
||||||
|
|
||||||
</cheapy:layout>
|
</cheapy:layout>
|
Loading…
Reference in a new issue