Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/381.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 子模块找不到相应的静态资源_Java_Gradle_Spring Boot_Thymeleaf_Spring 4 - Fatal编程技术网

Java 子模块找不到相应的静态资源

Java 子模块找不到相应的静态资源,java,gradle,spring-boot,thymeleaf,spring-4,Java,Gradle,Spring Boot,Thymeleaf,Spring 4,我正在使用spring boot+thymeleaf+spring4+gradle并构建下一个项目结构: --- Root src/main/resources/templates/common-part.html --- First-child src/main/resources/templates/first-child.html --- Second-child src/main/resources/templates/second-child.html 当我在build/resou

我正在使用spring boot+thymeleaf+spring4+gradle并构建下一个项目结构:

--- Root
src/main/resources/templates/common-part.html
--- First-child
src/main/resources/templates/first-child.html
--- Second-child 
src/main/resources/templates/second-child.html
当我在
build/resources/main/templates/
中构建第一个子项目时,我只有
First-child.html
,但我还希望从父级获得
common-part.html


如何将root的静态资源共享给我的孩子?

我认为这个问题更多的是关于
gradle
而不是关于其他标记。我认为这个问题更多的是关于
gradle
而不是关于其他标记。