2013-08-05 61 views
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/*'] 
+0

你有沒有在你的config.groovy(grails.mime.types)中定義的任何非標準MIME類型? –

+0

@dunnless我已更新我的帖子以顯示配置。我添加了更少和咖啡標記,但在警告中沒有任何區別。 – matcauthon

回答

3

一些挖它出現在Spring框架,已在3.2.2版本(JIRA

得到解決是一個問題 MockServletContext

Grails 2.2.4仍然在Spring Framework 3.1.x上,我不確定Grails 2.3是否已經升級到3.2.x版本。

所以基本上這是一個令人討厭但無害的問題,它將在未來的Grails版本中消失。