2
在运行grails test-app -integration
我得到这些错误: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 /更少...资源)
什么意思。我该如何解决这个问题?
这是我的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/*']
你有没有在你的config.groovy(grails.mime.types)中定义的任何非标准MIME类型? –
@dunnless我已更新我的帖子以显示配置。我添加了更少和咖啡标记,但在警告中没有任何区别。 – matcauthon