我試圖用一些HTML5和JavaScript運行Spring啓動應用程序,並且出現問題。Spring Boot添加HTML和JavaScript
我有項目結構是這樣的:
我的Spring MVC控制器是調用文件offer.html和工程確定。
我offer.html文件是這樣的:
<!DOCTYPE html>
<html lang="en" ng-app="coByTu">
<head>
<title>Page</title>
<script type="text/javascript" src="../js/lib/angular.js" />
<script type="text/javascript" src="../js/src/offer.js" />
</head>
<body>
</body>
</html>
,當我輸入我的應用程序URL http://localhost:8080/offerView
從服務器的響應是:
我有不知道爲什麼我的應用程序沒有看到這個腳本文件,任何人都知道我做錯了什麼?
請參閱https://github.com/spring-guides/tut-spring-security-and-angular-js/tree/master/modular – EpicPandaForce