Spring-Boot thymeleaf 이상

2684 단어 spring-boot

이상 1:


Whitelabel Error Page
This application has no explicit mapping for/error, so you are seeing this as a fallback.
Fri Nov 10 10:52:06 CST 2017 There was an unexpected error (type=Internal Server Error, status=500). Exception parsing document: template=”index2”, line 6 - column 3
이 말 주의: Exception parsing document, 문서 변환 이상, 기본값은 엄격한 문서 형식입니다. 모든 탭은 끝내거나 닫아야 합니다.

<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" >
    <title>Titletitle>
head>
<body>
    <h2>Hello thymeleaf !!h2>
    <span th:text="${myval}">span>
body>
html>

위의 사항:: ... 하면 된다

이상 2:


Whitelabel Error Page
This application has no explicit mapping for/error, so you are seeing this as a fallback.
Fri Nov 10 10:56:34 CST 2017 There was an unexpected error (type=Not Found, status=404). No message available
pom.xml에 추가:
<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-thymeleafartifactId>
dependency>

좋은 웹페이지 즐겨찾기