我正在将IntelliJ Idea用于Web项目,当我运行它时,URL为
http://localhost:8080/MyProjectName/
有办法改变吗?喜欢,
http://localhost:8080/OtherName
要不就
http://localhost:8080/
谢谢
最佳答案
对于Grails 3.X,您需要将其添加到grails-app/conf/application.yml
:
server:
contextPath: /OtherName
在Grails 2.X中,将其添加到
grails-app/conf/Config.groovy
:grails.app.context = "/OtherName"
关于grails - 更改Web项目的URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40353333/