05 2022 档案

摘要:整合Mybatis 步骤 导入相关jar包 junit mybatis mysql数据库 spring相关的 aop织入 mybatis-spring【新的】 包依赖 <dependencies> <!-- mybatis的依赖--> <dependency> <groupId>org.mybati 阅读全文
posted @ 2022-05-25 18:46 明眸清澈 阅读(37) 评论(0) 推荐(0) 编辑
摘要:AOP 10,代理模式 10.1,静态代理 角色分析: 抽象角色:一般会使用接口或者抽象类来解决 真实角色︰被代理的角色 代理角色:代理真实角色,代理真实角色后,我们一般会做一些附属操作 客户:访问代理对象的人! 代码步骤: 接口 //租房 public interface Rent { publi 阅读全文
posted @ 2022-05-25 18:42 明眸清澈 阅读(79) 评论(0) 推荐(0) 编辑
摘要:IOC理论推导 最初: dao层 package dao; //接口 public interface UserDao { //获取普通用户信息 void getUser(); } /////////////////////////// package dao; //实现 public class 阅读全文
posted @ 2022-05-24 17:46 明眸清澈 阅读(142) 评论(0) 推荐(0) 编辑
摘要:好用的一个框架,需要掌握.(很重要),非常多的框架都用这个,后续还有boot mvc 优点: 低侵入式设计,代码污染极低 独立于各种应用服务器,基于Spring框架的应用,可以真正实现Write Once,Run Anywhere的承诺 Spring的DI机制降低了业务对象替换的复杂性,提高了组件之 阅读全文
posted @ 2022-05-24 17:44 明眸清澈 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Mybatis使用注解开发 1.使用注解开发 注解直接在接口上实现 @Select("select * from user ") List<User> getUser(); 需要在核心配置中绑定接口! <!--绑定接口--> <mappers> <mapper class="dao.UserMapp 阅读全文
posted @ 2022-05-16 16:20 明眸清澈 阅读(55) 评论(0) 推荐(0) 编辑
摘要:JavaScript ///定义变量 变量类型 变量名 = 变量值; var num =1; const name = "logteng "; // alert(num); // alert(name); //2.条件控制 const score=70; if (score>70&&score<=8 阅读全文
posted @ 2022-05-10 11:56 明眸清澈 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示