Reputation: 29
When I uses grails2, the Url will be
http://localhost:8080/myApp/controllerName
when I use grails 3.
The Url is http://localhost:8080/controllerName
No myapp any more. it is designed?
Question 2: After I generate-all with Restful domain in grails, it always say
Description Resource Path Location Type The project was not built due to "RequestEnvironmentController [in [Working copy] RequestEnvironment.groovy [in test.environment.manager [in grails-app/domain [in test-environment-manager]]]] does not exist". Fix the problem, then try refreshing this project and building it since it may be inconsistent
the it can only compile 83%.
Upvotes: 1
Views: 266
Reputation: 27220
No myapp any more. it is designed?
Yes. The root context by default is now '/'
. If you want to override that you can by setting the context path in grails-app/conf/application.yml
.
server:
'context-path': '/myApp'
Upvotes: 1