2016-10-27 93 views
1

使用gradle的jar文件。使用gradle構建jar

我的項目結構:

enter image description here

的問題是,當我建立與gradle這個罐子,他並沒有把紅色標記的SRC文件夾放入瓦罐文件,所以我的應用程序無法在瀏覽器中看到。我怎樣才能建立這個文件夾?

+0

http://stackoverflow.com/questions/20757393/where-should-i -store-static-resources-when-i-build-spring-boot-app-by-gradle –

+0

正如解釋@ DanielScott的鏈接,構建彈簧引導罐時,webapp不是有效的文件夾。使用src/main/resources/static或者src/main/resources/public代替 – alexbt

+0

好的。但是,當我把我的.jsp文件放入資源文件夾中時,springboot找不到它們。 –

回答