Exception processing template "success": Exception parsing document: template="success",
代码很简单
package com.kele.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HelloController {
@RequestMapping("/success")
public String success(){
return "success";
}
}
一个超简单的html页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>success</title>
</head>
<body>
<h1>success</h1>
</body>
</html>
启动springBoot之后,访问http://localhost:8080/success提示以下内容:
Exception processing template "success": Exception parsing document: template="success",
解决办法,修改html文件的<meta>标签
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>success</title>
</head>
<body>
<h1>success</h1>
</body>
</html>
重新启动,正常访问
---------------------------------------------------
立足软件测试领域,并重新定义测试!
---------------------------------------------------