运行时grails test-app -integration
出现以下错误:
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/*']