当前位置: 首页 > 工具软件 > jBPM Designer > 使用案例 >

JBPM Designer 部署问题记录

岳朝
2023-12-01

在JBPM Designer 部署 的时候,直接在eclipse部署,启动server,然后通过http://localhost:8080/designer/在游览器上进行访问,这个好像在我本机上访问不成功的,同事研究了一下,最后需要输入http://localhost:8080/designer/editor?uuid=1234&profile=default  才能正常访问

 

每次这样输入不是很方便,容易遗忘,我就想直接在web.xml中直接配,在游览器地址栏输入http://localhost:8080/designer/ 就会直接跳转到 http://localhost:8080/designer/editor?uuid=1234&profile=default

 

具体如下:

 

web.xml 

 <welcome-file-list>
 	<welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

 在webRoot下创建index.jsp 

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	System.out.println(path);
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	System.out.println(basePath);
	response.sendRedirect (basePath+"editor?uuid=1234&profile=default");
%>

 

 

 类似资料: