Grails测试包错误
运行Grails测试包错误,grails,Grails,运行grails测试应用程序-集成时,我遇到以下错误: 2013-08-05 10:57:34,701 [WARN ] (main)grails.app.resourceMappers.org.grails.plugin.resource.BundleResourceMapper - Cannot create a bundle from resource [/less/dummy.css], the content type [application/octet-stream] is n
grails测试应用程序-集成时,我遇到以下错误:
2013-08-05 10:57:34,701 [WARN ]
(main)grails.app.resourceMappers.org.grails.plugin.resource.BundleResourceMapper -
Cannot create a bundle from resource [/less/dummy.css],
the content type [application/octet-stream] is not supported. Set the resource to exclude bundle mapper.
(这是为所有css/js/less…资源打印的)
这是什么意思。我如何解决这个问题
这是我的mime类型设置:
grails.mime.types = [
all: '*/*',
atom: 'application/atom+xml',
css: 'text/css',
less: 'text/less',
csv: 'text/csv',
form: 'application/x-www-form-urlencoded',
html: ['text/html','application/xhtml+xml'],
js: 'text/javascript',
coffee: 'text/coffeescript',
json: ['application/json', 'text/json'],
multipartForm: 'multipart/form-data',
rss: 'application/rss+xml',
text: 'text/plain',
xml: ['text/xml', 'application/xml']
]
// What URL patterns should be processed by the resources plugin
grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*']
经过一番挖掘,Spring框架中的MockServletContext
似乎存在问题,该问题已在版本3.2.2()
Grails2.2.4仍然在SpringFramework 3.1.x上,我不确定Grails2.3是否已经升级到3.2.x版本
因此,基本上这是一个恼人但无害的问题,它将在未来的Grails版本中消失。您是否有任何未在config.groovy(Grails.mime.types)中定义的非标准mime类型?@dunnless我已经更新了我的帖子以显示配置。我添加了较少的和coffeescript,但在警告中没有区别。