2015-07-11 75 views
1

當我使用grails2,將URLGrails的3網址和Grails沒有控制器找到

http://localhost:8080/myApp/controllerName

,當我使用的Grails 3.

網址是http://localhost:8080/controllerName

沒有任何MYAPP更多。它的設計?

問題2:當我生成,所有Grails的寧靜域,它總是說

描述資源路徑位置類型 該項目是不是因爲建「RequestEnvironmentController [在[工作副本] RequestEnvironment.groovy [在test.environment.manager [在grails-app/domain [在test-environment-manager]]]]中不存在「。解決問題,然後嘗試刷新此項目並構建它,因爲它可能不一致

它只能編譯83%。

回答

1

不再有myapp。它的設計?

是。默認情況下的根環境現在是'/'。如果您想通過設置grails-app/conf/application.yml中的上下文路徑來覆蓋它。

server: 
    'context-path': '/myApp' 
+0

不錯。這工作。你知道問題2嗎?爲什麼始終有一個錯誤,並且總是編譯83%? – sspqingda

+0

見https://github.com/grails/grails-core/issues/641。你不應該在StackOverflow上發佈單獨的無關問題。你應該將它們作爲單獨的問題發佈,因爲它們不相關。 –

+0

http://grails.github.io/grails-doc/3.0.3/guide/gettingStarted.html#aHelloWorldExample中有關於'context-path'設置的評論。 –