Java 子模块找不到相应的静态资源
我正在使用spring boot+thymeleaf+spring4+gradle并构建下一个项目结构: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
--- 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
而不是关于其他标记。