https://mp.weixin.qq.com/s/c-heArLvvzzqhlpiVUf86g
JAVA 多线程 :http://blog.youkuaiyun.com/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.youkuaiyun.com/helloPurple/article/details/78715508
Shiro : https://blog.youkuaiyun.com/qq_32347977/article/category/6168992
https://blog.youkuaiyun.com/peterwanghao/article/details/7997156
Spring-clude : https://my.oschina.net/cnarthurs/blog/1524126
Spring Boot :http://blog.youkuaiyun.com/qq_31001665
http://blog.youkuaiyun.com/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。