1.在jboss-web.xml中添加<virtual-host>www.ceshi.com</virtual-host>

<jboss-web>
<context-root>/</context-root>
<virtual-host>www.ceshi.com</virtual-host>
</jboss-web>

 

jboss项目设置域名

2.在C:\Windows\System32\drivers\etc 路径下打开hosts文件

jboss项目设置域名

添加:127.0.0.1       www.ceshi.com

jboss项目设置域名

然后重启jboos项目用域名访问

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-01-18
  • 2021-11-05
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-08-05
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-08-04
相关资源
相似解决方案