gpt4 book ai didi

playframework-2.0 - 在Play 2.0中设置自定义根URL

转载 作者:行者123 更新时间:2023-12-04 13:14:33 24 4
gpt4 key购买 nike

我有一个 Play 应用程序,如果它是网络主机的根目录,则可以运行,但是我想将其作为主机的子URL加载

那是

http://example.com/ <- This works fine and i want to move to it 
http://example.com/AwesomePlayApplication/ <- This want me to rewrite all the routes

有没有一种方法可以只设置一个自定义根URL,该URL将转换我所有已配置的路由?

最佳答案

conf/application.conf文件中添加以下配置 key :

application.context="/AwesomePlayApplication"

关于playframework-2.0 - 在Play 2.0中设置自定义根URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9994917/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com