摘要:
首先我们先要知道servlet是什么,这有两种解释。一是目前大多数人所说的,一个实现了servlet接口的类就可以叫作servlet。二,servlet只是一个接口。那么看起来这两点都和servlet接口有关,那么我们知道弄清楚了servlet接口就好了。 查看servlet接口源码,会发现里面一共 阅读全文
摘要:
session在服务端,cookie在客户端(也就是浏览器) 由于http协议是无状态的协议,所以在数据交换完毕后,C/S端的连接就会关闭。此时,服务器无法从连接上跟踪会话,而cookie可以跟踪会话,这就弥补了http无状态协议的不足。cookie保存在客户端,如果客户端的服务器禁用了cookie 阅读全文
摘要:
Given a linked list, remove the nth node from the end of list and return its head. For example, Note: Given n will always be valid. Try to do this in 阅读全文
摘要:
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Example 2: 别人的 阅读全文
摘要:
Hibernate,对于java来说很重要的一个东西,用于持久层。之前看了很多配置的,都不行,自己来写一个配置成功的。 环境:jdk1.8,eclipse-jee-oxygen,mysql-connector-java-5.1.46,hibernate 5.2. 首先要确保你的jdk,eclipse 阅读全文