How to change location of the Application.groovy class in Grails 3.0.3? -
i've created new application in grails 3.0.3 using console:
grails create-app hello
and it's running fine with:
grails run-app
but now, change package name application.groovy located (original location hello/grails-app/init/hello/application.groovy) else, eg hello/grails-app/init/foo/application.groovy. when i'm trying start application after change there exception:
error: not find or load main class hello.application
source of application.groovy file (generated grails, except package name)
package foo import grails.boot.grailsapp import grails.boot.config.grailsautoconfiguration class application extends grailsautoconfiguration { static void main(string[] args) { grailsapp.run(application, args) } }
any hints should change able rename package?
edit: in documentation there fragment:
grails-app/init/package_path/application.groovy application class used spring boot start application
but still don't know package_path , how set this.
if package statement matches directory structure should work. run ./gradlew clean run
.
Comments
Post a Comment