更改您的应用程序的上下文 [英] Change the context for your Application
本文介绍了更改您的应用程序的上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Grails应用程序:MyApplication
I have a Grails Application: MyApplication
这意味着URLS都有 MyApplication
做 grails run-app
。我想将其更改为 myapplication
或更好的是 myapp
This means the URLS all have MyApplication
in them, when I do grails run-app
. I would like to change this to myapplication
or better still myapp
这是可能的吗?
推荐答案
您需要在 Config.groovy $
You would need an entry in Config.groovy
regarding app context root as:
grails.app.context = '/myapp'
这篇关于更改您的应用程序的上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文