无法解析类org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
@第4行,第1列。
导入org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
我将grails从2.2.4升级到3.1.3时发生了这种情况。
我也需要导入一些新地方吗?还是我需要添加到gradle构建文件中的依赖项?
最佳答案
参见本页第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. The org.codehaus.groovy.grails package no longer exists.
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.
关于gradle - 升级到grails 3,现在无法解析类org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59401196/