右键项目-》点击properties-》点击Web Projects Setting
然后在Context root中设置:项目入口
如:
Context root: hyjxweb3
访问路径为:http://localhost:8080/hyjxweb3/ent/login.xhtml
然后在Context root中设置:项目入口
如:
Context root: hyjxweb3
访问路径为:http://localhost:8080/hyjxweb3/ent/login.xhtml