- 博客(3)
- 收藏
- 关注
原创 关于继承的一些基本小知识,多看不厌
继承 extends 继承 类名后+extends+父类名 继承父类构造函数 super代表对当前对象的直接父类对象的默认引用。在子类中可以通过super关键字来访问父类的成员 只能出现在构造方法中 super(); //访问直接父类的无参构造方法 super(name); //访问直接父类的有参构造方法 可访问权限: private 本类 默认friendly 本类 同包 protected ...
2019-08-01 21:05:39
157
1
原创 想学好MyBatis,先从入门开始
入门 Installation To use the MyBatis you just need to include the mybatis-x.x.x.jar file in the classpath. If you are using Maven just add the following dependency to your pom.xml: org.mybatis my...
2019-08-01 20:58:48
230
原创 监听器与过滤器的使用,简单易懂
1.Servlet Servlet是一个在服务器运行的类,它于第一次访问时创建,一直驻扎在服务器的Serlvet容器中,直到应用程序线束或服务器关闭才释放。所以,它是一个单例模式。 配置可以用注解的方式进行配置, @WebServlet(value= {"/student","/stu"}) public class StudentServlet extends HttpServlet { 可以在...
2019-08-01 20:32:49
164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人