Spring Grails包名称不会更改

Spring Grails包名称不会更改,spring,grails,groovy,Spring,Grails,Groovy,我已经开始学习Grails,现在已经熟悉了配置。 为了更改grails项目的默认包名,我在 config.groovy grails.project.groupId = com.grailspractice.nick 那么 grails create-controller testc 但是这些文件不是在包域结构中创建的。 我得到了以下结构 Created file grails-app/controllers/testapp/TestcController.groovy Created fi

我已经开始学习Grails,现在已经熟悉了配置。 为了更改grails项目的默认包名,我在 config.groovy

grails.project.groupId = com.grailspractice.nick
那么

grails create-controller testc
但是这些文件不是在包域结构中创建的。 我得到了以下结构

Created file grails-app/controllers/testapp/TestcController.groovy
Created file grails-app/views/testc
Created file test/unit/testapp/TestcControllerSpec.groovy
如果我还缺什么,请告诉我。 如果我使用

grails run-app
然后应用程序运行正常,但是如果在单独的命令窗口中,如果在应用程序运行时创建控制器,则在应用程序运行的提示符处会出现以下错误

grails error cannot get property on cache operation source null object

这是安装问题吗?或者我是否弄乱了任何配置?

请确保组id在quote中
grails.project.groupId=“com.grailspractice.nick”
grails.project.groupId应该有一个用双引号括起来的值。这是一根绳子。用双引号将值括起来。grails.project.groupId=“com.grailspractice.nick”不起作用,grails>create controller testnew |创建文件grails app/controllers/testapp/TestnewController |创建文件grails app/views/testnew |创建文件test/unit/testapp/TestnewControllerSpec.groovy应添加作为答案@Alidad/Joshua Moore退出交互模式,
clean
,然后再次运行命令。