添加两行代码即可

<% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">

  

最新文章

  1. 四、基于hadoop的nginx访问日志分析---top 10 request
  2. ASP.NET MVC使用Bootstrap系统(2)——使用Bootstrap CSS和HTML元素
  3. 栈与队列:refresh的停车场
  4. cxf(3.1.1) 异常Caused by: java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf-extension-soap.xml]
  5. 大姨吗向左,美柚向右,女性健康APP路在何方?
  6. WPF single instance
  7. Dell R410 broadcom网卡驱动更新失败
  8. LINQ to SQL 建立实体类
  9. LeetCode:Rank Scores
  10. WebStorm 10.0.3安装
  11. 洛谷 P1967 货车运输
  12. Unix代码分析
  13. Why Everyone Should Lift Weights
  14. hdu 5126 stars (四维偏序,离线,CDQ套CDQ套树状数组)
  15. webservice接口与HTTP接口学习笔记
  16. python猜数字(多种实现方法)
  17. Telnet是什么意思又是什么协议 Telnet有什么作用及功能
  18. ActiveMQ 高可用集群安装、配置(ZooKeeper + LevelDB)
  19. 内存耗用:VSS/RSS/PSS/USS
  20. c# 超长字符串截取固定长度后显示...(超长后面显示点点点) 通用方法

热门文章

  1. vim + oh-my-zsh + git搭建开发环境
  2. vue-cli使用less
  3. log4j.properties通用配置
  4. 12、redis部分
  5. .net上传整个文件夹
  6. vue-cli3项目首页加载速度优化(cdn加速,路由懒加载,gzip压缩)
  7. 图文并茂VLAN详解,让你看一遍就理解VLAN
  8. php获取http请求原文
  9. 使用Git上传文件至Github
  10. Appnium安装