spring
ouyu2014
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
声明式事务控制(基于纯注解)
F:\spring\day04_eesy_05anno_tx_withoutxml AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jd原创 2020-06-25 11:01:44 · 372 阅读 · 0 评论 -
声明式事务控制(基于注解加XML)
F:\spring\day04_eesy_04tx_anno AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.Bea原创 2020-06-25 10:57:36 · 236 阅读 · 0 评论 -
声明式事务控制(基于XML)
F:\spring\day04_eesy_03tx_xml AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.JdbcTem原创 2020-06-25 10:54:26 · 281 阅读 · 0 评论 -
JdbcTemplate入门(基于XML)
F:\spring\day04_eesy_01jdbctemplate Account.java package com.itheima.domain; import java.io.Serializable; public class Account implements Serializable { private Integer id; private String name; private Float money; @Override public原创 2020-06-24 16:33:22 · 412 阅读 · 0 评论 -
AOP四种常用通知类型+环绕通知(基于注解+XML)
F:\spring\day03_eesy_05annotationAOP AccountServiceImpl.java package com.itheima.service.impl; import com.itheima.service.IAccountService; import org.springframework.stereotype.Service; /** * 账户的业务层实现类 */ @Service("accountService") public class Account原创 2020-06-24 14:21:11 · 783 阅读 · 0 评论 -
AOP四种常用通知类型+环绕通知(基于XML)
F:\spring\day03_eesy_04adviceType bean.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframewor原创 2020-06-24 13:44:38 · 615 阅读 · 0 评论 -
AOP必要的代码(基于XML)
F:\spring\day03_eesy_03springAOP AccountServiceImpl.java package com.itheima.service.impl; import com.itheima.service.IAccountService; /** * 账户的业务层实现类 */ public class AccountServiceImpl implements IAccountService { public void saveAccount() {原创 2020-06-24 13:18:17 · 167 阅读 · 0 评论 -
两种动态代理方式(基于接口和基于子类)
F:\spring\day03_eesy_02proxy 基于子类的动态代理: Client.java package com.itheima.cglib; import com.itheima.proxy.IProducer; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; import net.sf.cglib.proxy.MethodProxy; import java.lang.r原创 2020-06-24 11:34:39 · 356 阅读 · 0 评论 -
银行转账案例(事务控制)
F:\spring\day03_eesy_01account AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import com.itheima.utils.ConnectionUtils; import org.apache.commons.dbutils.QueryRunner; import org.ap原创 2020-06-24 11:21:11 · 744 阅读 · 0 评论 -
简单的IOC案例(基于纯注解)
F:\spring\day02_eesy_04account_annoioc_withoutxml AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.han原创 2020-06-23 16:45:55 · 221 阅读 · 0 评论 -
简单的IOC案例(基于注解加xml)
F:\spring\day02_eesy_03account_annoioc AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanH原创 2020-06-22 23:09:53 · 168 阅读 · 0 评论 -
简单的IOC案例(基于XML)
F:\spring\day02_eesy_02account_xmlioc AccountDaoImpl.java package com.itheima.dao.impl; import com.itheima.dao.IAccountDao; import com.itheima.domain.Account; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanHa原创 2020-06-22 22:53:57 · 153 阅读 · 0 评论 -
spring对bean的管理细节和依赖注入(基于注解和xml)
F:\spring\day02_eesy_01anno_ioc AccountServiceImpl.java package com.itheima.service.impl; import com.itheima.dao.IAccountDao; import com.itheima.dao.impl.AccountDaoImpl; //import com.itheima.factory.BeanFactory; import com.itheima.service.IAccountService;原创 2020-06-22 21:12:00 · 240 阅读 · 0 评论 -
spring中的依赖注入(基于xml)
F:\spring\day01_eesy_05DI <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/sche原创 2020-06-22 16:54:13 · 167 阅读 · 0 评论 -
spring对bean的管理细节(基于xml文件)
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://ww原创 2020-06-22 16:38:38 · 143 阅读 · 0 评论 -
spring的Ioc核心容器 ApplicationContext和BeanFactory的区别
package com.itheima.ui; import com.itheima.dao.IAccountDao; //import com.itheima.factory.BeanFactory; import com.itheima.service.IAccountService; import com.itheima.service.impl.AccountServiceImpl; import javafx.application.Application; import org.springfr原创 2020-06-22 16:30:14 · 221 阅读 · 0 评论 -
自己写一个创建Bean对象的工厂(BeanFactory)
package com.itheima.factory; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import java.util.Properties; /** 一个创建Bean对象的工厂 Bean:在计算机英语中原创 2020-06-22 15:23:44 · 563 阅读 · 0 评论 -
程序的耦合
F:\spring\day01_eesy_01jdbc package com.itheima.jdbc; import java.sql.*; /** 程序的耦合 耦合:程序间的依赖关系 包括: 类之间的依赖 方法间的依赖 解耦:降低程序间的依赖关系 实际开发中: 应该做到,编译期不依赖,运行时才依赖 解耦的思路: 第一步,使用放射来创建对象,而避免使用new关键字原创 2020-06-22 14:48:47 · 141 阅读 · 0 评论
分享