标签: tomcat grails run-app
有没有办法配置嵌入式tomcat(来自run-app)来响应myapp.localhost:8080而不是localhost:8080 / myapp?
答案 0 :(得分:3)
修改本地主机文件,以便myapp.localhost指向localhost
127.0.0.1 myapp.localhost
修改conf/Config.groovy并添加grails.app.context = “/”
conf/Config.groovy
grails.app.context = “/”