- 博客(7)
- 收藏
- 关注
原创 Java实训日志6
在net.huawei.student.service.impl包里创建CollegeServiceImpl类。在net.huawei.student.service.impl包里创建StudentServiceImpl类。在net.huawei.student.service.impl包里创建StatusServiceImpl类。在net.huawei.student.service.impl包里创建UserServiceImpl类。日期:2023年06月16日。日期:2023年06月16日。
2023-06-16 15:56:03 32 1
原创 Java实训5
在test目录里创建net.huawei.student.dao.impl包,在包里创建TestCollegeDaoImpl类。在test目录的net.huawei.student.dao.impl包里创建TestStudentDaoImpl类。System.out.println(“更新后:” + collegeDao.findById(1));System.out.println(“更新后:” + statusDao.findById(1));
2023-06-16 11:39:24 134 1
原创 Java实训日志4
DAO:Data Acess Object - 数据访问对象系统有四张表: t college、t status 、t_student与t_user表,对这四张表的操作就在相应的数据访问接口里进行规定,有四个数据访问接口:CollegeDao、StatusDao、StudentDao与UserDao。将这些接口放到net.sxx.student.dao包里。在net.hc.student包里创建子包dao子包。
2023-06-16 10:38:45 27 1
原创 Java实训日志2
为了便于分类管理项目中不同功能的类或接口,需要创建不同包,比如,实体类就放在 net.huawei.student.bean 包里。在 net.huawei.student.bean 包里创建 Student 类。在 net.huawei.student.bean包里创建 College 类。在 net.huawei.student.bean包里创建 Status 类。在net.huawei.student.bean包里创建 User 类。在src 里创建net.hc.student.bean包。
2023-06-16 10:17:06 40 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人