https://mp.weixin.qq.com/s/c-heArLvvzzqhlpiVUf86g
JAVA 多線程 :http://blog.csdn.net/column/details/javahhighconcurrence.html
Maven 創建父子工程: http://www.marsitman.com/idea/intellij-idea-create-maven-union.html
SpringBoot 文檔:http://oopsguy.com/documents/springboot-docs/1.5.4/index.html
mybatis-plus : https://blog.csdn.net/helloPurple/article/details/78715508
Shiro : https://blog.csdn.net/qq_32347977/article/category/6168992
https://blog.csdn.net/peterwanghao/article/details/7997156
Spring-clude : https://my.oschina.net/cnarthurs/blog/1524126
Spring Boot :http://blog.csdn.net/qq_31001665
http://blog.csdn.net/u011244202/article/category/6687349
解密和實戰 源代碼 https://github.com/lianggzone/springboot-action
https://github.com/527515025/springBoot
request.getSchema(),返回的是當前連接使用的協議,一般應用返回的是http、SSL返回的是https;
request.getServerName(),返回當前頁面所在的服務器的名字;
request.getServerPort(),返回當前頁面所在的服務器使用的端口,80;
request.getContextPath(),返回當前頁面所在的應用的名字。
getContextPath()是jsp中獲取路徑的一種方式,那麼獲取到結果是什麼呢?jsp其他獲取路徑的方式是怎樣的呢?表示好奇,請聽分解:
以訪問的jsp爲:http://localhost:8080/dmsd-itoo-exam-log-web/course/index.jsp,工程名爲/dmsd-itoo-exam-log-web爲例:
request.getContextPath(),得到工程名:/dmsd-itoo-exam-log-web;
request.getServletPath(),返回當前頁面所在目錄下全名稱:/course/index.jsp;
request.getRequestURL(),返回IE地址欄地址:http://localhost:8080/dmsd-itoo-exam-log-web/course/index.jsp;
request.getRequestURI() ,返回包含工程名的當前頁面全路徑:/dmsd-itoo-exam-log-web/course/index.jsp。
對jsp獲取當前應用的路徑方法和request常用方法有了基本的瞭解,下面後臺通過request.getScheme()獲取當前頁面使用協議遇到的問題:request.getScheme()獲取到的確實http而不是https,與request.getRequestURL()拿到的一樣也是http。