Javascript无法识别模板文件夹的路径
我正在用SpringBoot制作一个web应用程序。我试图在加载索引页2.5秒后创建弹出窗口。但是javascript无法识别路径并抛出白标签错误 我的所有网页都在“src/resources/templates/pages”中 index.html:-Javascript无法识别模板文件夹的路径,javascript,spring-boot,Javascript,Spring Boot,我正在用SpringBoot制作一个web应用程序。我试图在加载索引页2.5秒后创建弹出窗口。但是javascript无法识别路径并抛出白标签错误 我的所有网页都在“src/resources/templates/pages”中 index.html:- <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Master</title>
<link th:href="@{http://fonts.googleapis.com/css?family=Calibri}" rel='stylesheet' type='text/css' />
<script type="text/javascript">
function myFunction() {
sleep(2500);
newwindow=window.open('Pages/Home.html','MaSTER','height=800,width=1350');
if (window.focus) {
newwindow.focus()
}
return false;
}
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- script>
$(document).ready(function(){
$(function(){
$("#footer").load("Master/Pages/Footer.html");
});
});
</script-->
</head>
<body onload="myFunction()">
<div th:text="${message}+' Application'"></div>
<div id="footer" th:insert="Pages/Indexfooter.html"></div>
</body>
</html>
我得到的错误是:-
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Aug 29 21:13:23 IST 2019
There was an unexpected error (type=Not Found, status=404).
No message available
请建议我做什么
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Aug 29 21:13:23 IST 2019
There was an unexpected error (type=Not Found, status=404).
No message available