我是grails的初学者。
我想向 grails 应用程序添加一些静态资源并将它们从 url 映射中排除。
我在 UrlMappings groovy 中添加了以下行:
class UrlMappings {
static excludes = ['/resources/*']
...
但我不知道如何将资源添加到应用程序和最终战争中。build.gradle 中可能有设置。
我想打开可以使用静态 js/css/images 的静态 html。
像这样:localhost:8080/resources/index.html
提前致谢