简体   繁体   English

升级到 grails 3,现在无法解析类 org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap

[英]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.

相关问题 升级到 grails 3.1.13,现在无法解析类 org.grails.databinding.converters.web.LocaleAwareNumberConverter - Upgraded to grails 3.1.13 and now get unable to resolve class org.grails.databinding.converters.web.LocaleAwareNumberConverter Grails 3.3.10中的org.codehaus.groovy.runtime.DefaultGroovyMethods错误 - Error for org.codehaus.groovy.runtime.DefaultGroovyMethods in Grails 3.3.10 在android studio中导入项目时出现Resolve错误,无法加载类'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' - Getting Resolve error while importing project in android studio, Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' Android Studio无法加载类'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' - Android Studio Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' Gradle:无法初始化 class org.codehaus.groovy.runtime.InvokerHelper - Gradle: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper 错误无法初始化 class org.codehaus.groovy.runtime.InvokerHelper - Error Could not initialize class org.codehaus.groovy.runtime.InvokerHelper 无法解决最近创建的grails项目中的依赖关系 - Unable to resolve dependency in a recent created grails project 引起:org.codehaus.groovy.control.MultipleCompilationErrorsException - Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException 无法解析配置 ':runtime' 的所有文件。 找不到 org.grails:grails-datastore-core:7.0.2 - Could not resolve all files for configuration ':runtime'. Could not find org.grails:grails-datastore-core:7.0.2 我的 Gradle 构建如何初始化 class org.codehaus.groovy.classgen.Verifier? - How can my Gradle build initialize class org.codehaus.groovy.classgen.Verifier?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM