3
Iam无法访问grails3中的web应用程序文件夹文件夹.. 实际上我已经在web-app文件夹和grails2中有robots.txt
我能够直接访问http://localhost:8080/robots.txt
。但迁移到grails3 IAM无法在http://localhost:8080/robots.txt
无法访问grails3中的web应用程序文件夹文件
Iam无法访问grails3中的web应用程序文件夹文件夹.. 实际上我已经在web-app文件夹和grails2中有robots.txt
我能够直接访问http://localhost:8080/robots.txt
。但迁移到grails3 IAM无法在http://localhost:8080/robots.txt
无法访问grails3中的web应用程序文件夹文件
再访问后见https://github.com/grails/grails-core/releases/tag/v3.0.12和部分Location of static resources
Grails中3,您可以将文件存储在src /主/资源。你可以通过static
之前的文件名来访问它们,例如http://localhost:8080/static/robots.txt
。
此路径可以使用配置选项在附加URL中定义更改
我不能使它与这工作,我错过了什么? – IgniteCoders