-
继承(个人学习笔记黑马学习)
package com.itheima.d5_extends;public class Test { public static void main(String[]args){/目标:认识继承关系 student s=new student();s.run();} } package com.itheima.d5_extends; ...
-
封装
像咱们的课上案例 Student类 Teacher类 Car类 Phone类 等等,其实是简单的描述某种事物的类. 以后校验的逻辑并不在这些类里面完成.这些类有个名字: javaBean-简单的描述类 class Student { ...
-
MyBatis学习——动态SQL
itheima.mapper.CustomerMapper.findCustomerByNameAndJobs", customer);// 输出查询结果 for (Customer customer2:customers){...
-
Mybatis入门程序实验
2、在 src 目录下,创建一个 com.itheima.po包,在该包下创建持久化类 Customer,并在类中声明 id、username、jobs、phone 属性。public class Customer { private Integer id; // 主键id private String user...
-
MyBatis的工作原理及入门程序
package com . itheima . po ;public class Customer { private Integer id ;private String username ;private String jobs...
-
Java进阶作业
定义测试类 在测试类中定义一个 用手机的方法,要求该方法既能接收老手机对象,也能接收新手机对象 在该方法内部调用打电话,发短信以及新手机特有的玩游戏方法 public class Phone { public void ...
-
想了解MyBatis ?一篇文章搞定
log4j . rootLogger = ERROR , stdout # MyBatis logging configuration . log4j . logger . com . itheima = DEBUG # Console output . . ...
-
[Mybatis的学习笔记01]——初识Mybatis
itheima.po.Customer "> insert into t_customer(username, jobs, phone) values (#{username},#{jobs},#{phone})
-
第六章 初始MyBatis
4、在src目录下,创建一个com.itheima.po包,在该包中创建持久化类Customer。并在类中声明id,username,jobs,和phone属性,及其对应的getter/setter方法。编辑后的代码如下图所示: 5、在src目录...
-
第3章 动态SQL
itheima.pojo.Customer"resultType="com.itheima.pojo.Customer" > select*from t_customer< where ><if test="username!and username != ‘’“ > ...
浏览更多安心,自主掌握个人信息!
我们尊重您的隐私,只浏览不追踪