问答详情
源自:5-12 阶段项目

path与basePath用处?

String path = request.getContextPath();

String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getSe

rverPort()+path+"/";

 老师代码里的这两句话是干什么用的? 


提问者:qq_欢畅_0 2017-05-06 11:21

个回答

  • 纪城
    2017-05-06 12:49:38
    已采纳

    http://www.cnblogs.com/qq3111901846/p/6242096.html