07 2017 档案

摘要:在transferTo中,使用的是绝对路径 pathRoot + path,但是在数据库中存储的时候,使用的是相对路径 path 这样,在页面显示的时候,就可以使用 其中basePath表示的是服务器路径http://localhost:8080/bignews1/ ,tweet.key.pictu 阅读全文
posted @ 2017-07-22 12:59 天边的鱼 阅读(697) 评论(0) 推荐(0)
摘要:request.getContextPath 上下文,例如 /bignews1 (自带 “ / ”) request.getScheme() 协议,例如HTTP request.getServerName() 域名,例如localhost request.getServerPort() 端口,例如8 阅读全文
posted @ 2017-07-19 22:27 天边的鱼 阅读(514) 评论(0) 推荐(0)
摘要:在页面提交时中,路径应该使用“/默认上下文/controller路径”,在controller重定向中,应该使用“/controller路径”,不加上下文。 阅读全文
posted @ 2017-07-18 22:31 天边的鱼 阅读(186) 评论(0) 推荐(0)