[英]Upgraded to grails 3 and now get unable to resolve class org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
unable to resolve class org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap @ line 4, column 1. import org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap无法解析类 org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap @ line 4, column 1. import org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
This happened when I upgraded grails from 2.2.4 to 3.1.3.这发生在我将 grails 从 2.2.4 升级到 3.1.3 时。
Is there some new place I need to import this too?是否有一些新的地方我也需要导入这个? Or is there a dependency I need to add to my gradle build file?或者是否需要将依赖项添加到我的 gradle 构建文件中?
See step 5 on this page, https://docs.grails.org/3.0.x/guide/upgrading.html请参阅此页面上的第 5 步, https://docs.grails.org/3.0.x/guide/upgrading.html
Step 5 - Modify Package Imports In Grails 3.x all internal APIs can be found in the org.grails package and public facing APIs in the grails package.第 5 步 - 修改包导入 在 Grails 3.x 中,所有内部 API 都可以在 org.grails 包中找到,而面向公众的 API 可以在 grails 包中找到。 The org.codehaus.groovy.grails package no longer exists. org.codehaus.groovy.grails 包不再存在。
All package declaration in sources should be modified for the new location of the respective classes.应针对相应类的新位置修改源中的所有包声明。 Example org.codehaus.groovy.grails.commons.GrailsApplication is now grails.core.GrailsApplication.示例 org.codehaus.groovy.grails.commons.GrailsApplication 现在是 grails.core.GrailsApplication。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.