我使用IntelliJ Idea进行网络项目,当我运行它时,网址是
http://localhost:8080/MyProjectName/
有没有办法改变它?喜欢,
http://localhost:8080/OtherName
或只是
http://localhost:8080/
感谢
答案 0 :(得分:1)
对于Grails 3.X,您需要将其添加到grails-app/conf/application.yml
:
server:
contextPath: /OtherName
在Grails 2.X中,将其添加到grails-app/conf/Config.groovy
:
grails.app.context = "/OtherName"