我有一个 spring 项目,当它位于 web 根目录时效果很好 - 即http://myserver/index.html但是当它不是时它会严重中断 - 即http://myserver/spring-project/index.html
有没有办法将 spring 配置为住在子目录中?浏览文档完全没有帮助。
我有一个 spring 项目,当它位于 web 根目录时效果很好 - 即http://myserver/index.html但是当它不是时它会严重中断 - 即http://myserver/spring-project/index.html
有没有办法将 spring 配置为住在子目录中?浏览文档完全没有帮助。
Spring does not require that it be in the root directory to work.
If it's not working, it's because you configured, packaged, and deployed it incorrectly.
I would recommend putting AppFuse aside and figuring out how to configure, package, and deploy an app successfully by hand a few times until you know how to do it cold. Once you have that in hand, then bring AppFuse in to lighten your load.