Java学习小总结
本学期主要学习Java程序语言及Javaweb相关知识,其中有相当一部分内容是暑假假期的学习内容,以下主要介绍一些Javaweb学习的总结。
以下教程均为个人建议(当然,适合自己的最好)
一、环境配置
1、jdk和jre的安装配置
jdk安装教程网址:
https://blog.csdn.net/pu329289309/article/details/104883458?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control
jre安装教程网址:
https://blog.csdn.net/weixin_43722048/article/details/92378505?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160846997616780271150826%252522%25252C%252522scm%252522%25253A%25252220140713.130102334..%252522%25257D&request_id=160846997616780271150826&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-1-92378505.first_rank_v2_pc_rank_v29&utm_term=jre%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B
2、tomcat安装配置
tomcat安装配置过程
https://blog.csdn.net/qq_39047789/article/details/103883252?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160842276216780274051550%252522%25252C%252522scm%252522%25253A%25252220140713.130102334..%252522%25257D&request_id=160842276216780274051550&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-1-103883252.first_rank_v2_pc_rank_v29&utm_term=tomcat%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE%E6%95%99%E7%A8%8B
3、eclipse安装配置
eclipse安装教程:
https://blog.csdn.net/Youngist/article/details/106975302?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160843166516780288735977%252522%25252C%252522scm%252522%25253A%25252220140713.130102334..%252522%25257D&request_id=160843166516780288735977&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-1-106975302.first_rank_v2_pc_rank_v29&utm_term=eclipse%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B
二、工程创建
1、第一个Javaweb项目的创建
https://blog.csdn.net/mid_Faker/article/details/108708413?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160847011316780302977277%252522%25252C%252522scm%252522%25253A%25252220140713.130102334.pc%25255Fall.%252522%25257D&request_id=160847011316780302977277&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-4-108708413.first_rank_v2_pc_rank_v29&utm_term=javaweb%E5%B7%A5%E7%A8%8B%E5%88%9B%E5%BB%BA
2、第一个jsp页面的创建
https://blog.csdn.net/iteye_20474/article/details/81498283?ops_request_misc=&request_id=&biz_id=102&utm_term=jsp%25E9%25A1%25B5%25E9%259D%25A2%25E5%2588%259B%25E5%25BB%25BA&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-2-81498283.first_rank_v2_pc_rank_v29
3、(个人jsp学习路径:https://www.runoob.com/jsp/jsp-tutorial.html)菜鸟教程
4、数据库安装配置
(前辈经验)https://www.cnblogs.com/winton-nfs/p/11524007.html
三、个人总结
Javaweb项目工程,说实话个人最初确实一脸懵。但,接触多了就会了解。对于初学者(本人亦小白一枚),MVC(Model Vision Control)模式还是比较适用的。
Model层模型
entity或pojo 实体类
dao层 负责数据库数据的增删改查
(细分可有)service层 业务逻辑层,调用dao层 具体使用方法
view 视图即jsp 页面显示
controller 控制器 (起承上启下作用)连接dao层(或service层)进行数据的接收和Java代码层方法的调用实现对数据的操作
对于链接数据库相关Java代码
可参考本人博客:数据库驱动相关代码:https://www.cnblogs.com/lx06/p/14164557.html
具体知识内容在此不再详说。
综上,个人仍需再努力,能力仍需再加强。