使用 Grails 1.1 beta2 和一个 JSP 页面。JSP 包括 CSS 参考:
<link rel="stylesheet" type="text/css" href="styles.css">
当包含此行时,Grails 会出现以下错误:
[7000] errors.GrailsExceptionResolver java.lang.NumberFormatException: For input string: "styles" org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NumberFormatException: For input string: "styles"
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1061)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:893)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
at groovy.lang.Closure.call(Closure.java:279)
at groovy.lang.Closure.call(Closure.java:274)
at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(Simp
leGrailsControllerHelper.java:340)
...
如果我删除样式表标签,则页面加载无错误(但没有 CSS)。任何想法为什么?