Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用Thymeleaf和AngularJS在哪里保存JS和HTML文件?_Java_Html_Angularjs_Spring Boot_Thymeleaf - Fatal编程技术网

Java 使用Thymeleaf和AngularJS在哪里保存JS和HTML文件?

Java 使用Thymeleaf和AngularJS在哪里保存JS和HTML文件?,java,html,angularjs,spring-boot,thymeleaf,Java,Html,Angularjs,Spring Boot,Thymeleaf,我开始在DaveSyer的示例上构建SpringBootWeb应用程序。他在AngularJS中使用普通html文件,这就是为什么他有这样的文件结构: 一切都在静态文件夹下。由于示例应用程序非常小,他为每个页面创建了一个文件夹(我将来肯定会更改) 但是我还想使用Thymeleaf,它使用templates文件夹作为默认值,因为spring引导定义了这个默认属性: spring.thymeleaf.prefix=classpath:/templates/ 现在我不知道我是否应该简单地将appl

我开始在DaveSyer的示例上构建SpringBootWeb应用程序。他在AngularJS中使用普通html文件,这就是为什么他有这样的文件结构:

一切都在静态文件夹下。由于示例应用程序非常小,他为每个页面创建了一个文件夹(我将来肯定会更改)

但是我还想使用Thymeleaf,它使用templates文件夹作为默认值,因为spring引导定义了这个默认属性:

spring.thymeleaf.prefix=classpath:/templates/
现在我不知道我是否应该简单地将application.yml中的prefix属性覆盖为spring.thymeleaf.prefix=classpath:/static之类的内容,或者创建一个模板文件夹并移动该文件夹中的所有html文件,只保留静态的JS文件。这种组合的最佳方式是什么