会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
卡卡发
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
24
下一页
2022年1月13日
SpringMVC原理-小例子
摘要: 配置web.xml,注册DispatcherServlet(请求分发器,前端控制器)
阅读全文
posted @ 2022-01-13 15:17 卡卡发
阅读(54)
评论(0)
推荐(0)
编辑
SpringMVC01-回忆servlet-搭建servlet环境
摘要: 先创建一个普通的maven项目(module),再加入Web app的支持(相比直接建一个maven的web项目,这样建立可以得到一个比较简洁的web.xml)
阅读全文
posted @ 2022-01-13 10:26 卡卡发
阅读(45)
评论(0)
推荐(0)
编辑
2022年1月8日
Spring中的事务管理
摘要: 1.声明式事务:AOP(不影响原有代码) UserMapper接口: package com.kakafa.mapper; import com.kakafa.pojo.User; import java.util.List; public interface UserMapper { public
阅读全文
posted @ 2022-01-08 11:18 卡卡发
阅读(30)
评论(0)
推荐(0)
编辑
2022年1月7日
mybatis和spring整合
摘要: 第一种方法 1.需要导入的包: pom.xml: <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scop
阅读全文
posted @ 2022-01-07 16:36 卡卡发
阅读(236)
评论(0)
推荐(0)
编辑
AOP
摘要: 什么是AOP: 在Spring中使用AOP: 使用Spring实现AOP需要导入一个包: <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver --> <dependency> <groupId>org.aspectj</
阅读全文
posted @ 2022-01-07 11:24 卡卡发
阅读(87)
评论(0)
推荐(0)
编辑
2022年1月6日
动态代理
摘要: 需要了解两个类Proxy和InvocationHandler Proxy:代理 InvocationHandler:调用处理程序 Rent: package com.kakafa.demo01; //需要被代理的接口 public interface Rent { public void rent(
阅读全文
posted @ 2022-01-06 17:06 卡卡发
阅读(23)
评论(0)
推荐(0)
编辑
使用JavaConfig实现配置
摘要: JAVA配置和注解配置区别
阅读全文
posted @ 2022-01-06 15:27 卡卡发
阅读(114)
评论(0)
推荐(0)
编辑
使用注解开发
摘要: 1)bean: //@Component等价于<context:component-scan base-package="com.kakafa.pojo"/> @Component public class User { private String name; } <?xml version="1
阅读全文
posted @ 2022-01-06 14:46 卡卡发
阅读(29)
评论(0)
推荐(0)
编辑
注解使用自动装配
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
阅读全文
posted @ 2022-01-06 13:58 卡卡发
阅读(33)
评论(0)
推荐(0)
编辑
bean的自动装配
摘要: 在Spring中由三种装配方式: xml中显式的配置 java中显式的配置 隐式的自动装配bean 1.环境搭建 Dog.java: package com.kakafa.pojo; public class Dog { public void shout(){ System.out.println
阅读全文
posted @ 2022-01-06 11:35 卡卡发
阅读(37)
评论(0)
推荐(0)
编辑
上一页
1
···
8
9
10
11
12
13
14
15
16
···
24
下一页
公告