摘要: github学习项目--mall学习教程 https://www.macrozheng.com/mall/catalog/mall_catalog.html Mybatis generator 配置文件介绍 MyBatis的代码生成器,可以根据数据库生成model、mapper.xml、mapper 阅读全文
posted @ 2022-11-06 17:17 Saski&Naruto 阅读(262) 评论(0) 推荐(0)
摘要: 事务 概念 定义:数据库事务是构成单一逻辑工作单元的操作集合 数据库事务概念 ACID特性: 原子性(Atomicity):事务中的所有操作作为一个整体像原子一样不可分割,要么全部成功,要么全部失败。 一致性(Consistency):事务的执行结果必须使数据库从一个一致性状态到另一个一致性状态。一 阅读全文
posted @ 2022-07-23 17:01 Saski&Naruto 阅读(37) 评论(0) 推荐(0)
摘要: 动态代理 代理模式类图 代理的基本分类: 静态代理 + 动态代理,分类的标准是 “代理关系是否在编译期确定; JDK动态代理 样例 TargetInterface.java public interface TargetInterface { public void save(); } Target 阅读全文
posted @ 2022-07-17 17:07 Saski&Naruto 阅读(34) 评论(0) 推荐(0)
摘要: Spring MVC--JDBCTemplate 配置样例 application.xml <!--加载外部properties文件--> <context:property-placeholder location="classpath:jdbc.properties"/> <bean id="d 阅读全文
posted @ 2022-07-13 23:32 Saski&Naruto 阅读(63) 评论(0) 推荐(0)
摘要: Spring MVC 开发步骤 开发步骤: maven导入SpringMVC 配置SpringMVC核心控制器DispathcerServlet 创建Controller类和视图页面 使用注解配置Controller类中业务方法的映射地址 配置SpringMVC核心文件spring-mvc.xml 阅读全文
posted @ 2022-06-23 21:57 Saski&Naruto 阅读(47) 评论(0) 推荐(0)
摘要: Spring集成web环境 idea社区版没有web功能,也不带tomcat插件,需要idea专业版。 IDEA配置 在项目的modules中增加web模块,并设置路径。 在Facets中也要新增web模块 在Artifacts中确保有classes和lib文件夹,我的没有lib,导致启动tomca 阅读全文
posted @ 2022-06-19 16:24 Saski&Naruto 阅读(319) 评论(0) 推荐(0)
摘要: idea配置copilot登录不上的问题 原文链接:https://itcn.blog/p/2525332226.html 首先copilot已经申请上了,但是登录时一直卡住 以下是100%修复方法 1-将您的github-copilot更新到最新版本,然后关闭ide 2-下载此版本的github- 阅读全文
posted @ 2022-06-19 12:08 Saski&Naruto 阅读(7337) 评论(0) 推荐(0)
摘要: Spring集成Junit SpringJunit负责创建Spring容器--RunWith 指定配置文件 --ContextConfiguration 需要测试的Bean在测试类注入--Autowired 准备工作 pom.xml引入SpringJunit <dependency> <groupI 阅读全文
posted @ 2022-05-30 00:43 Saski&Naruto 阅读(94) 评论(0) 推荐(0)
摘要: spring原始注解 下面以注解来替换xml中的 改造前: <bean id="userDao" class="com.yihao.dao.impl.UserDaoImpl"/> <bean id="userService" class="com.yihao.service.impl.UserSer 阅读全文
posted @ 2022-05-15 20:34 Saski&Naruto 阅读(35) 评论(0) 推荐(0)
摘要: spring JDBC 最简单的JDBC配置 <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org 阅读全文
posted @ 2022-05-15 19:51 Saski&Naruto 阅读(36) 评论(0) 推荐(0)