|
楼主 |
发表于 2016-4-19 16:39:54
|
显示全部楼层
如果conf/server.xml不配置ui-server, getBusinessServer.j报错,23行:
public class GetBusinessServer implements JProcessor {
public void execute(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String result = "";//ServerConfig.getExternalServer(ServerConfig.BUSINESS_SERVER);
if (SystemUtils.isEmptyString(result)){
URL cur = new URL(req.getParameter("cur"));
String protocol = cur.getProtocol();
String host = cur.getHost();
int port = cur.getPort();
URL ui = new URL(ServerConfig.getUIServer()); //null报错。
URL biz = new URL(ServerConfig.getBusinessServer());
conf/server.xml加一句:
<ui-server>http://localhost:8080/UIServer</ui-server>
不报错了。
需要加吗?还是说应该在其他地方配置?
|
|