Spring
半止
这个作者很懒,什么都没留下…
展开
-
AOP的相关概念
1.1AOP概述1.1.1什么是AOPAOP:全称 Aspect Oriented Programming 即:面向切面编程。在软件行业,通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术。AOP是OOP的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生范式。利用AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度降...原创 2020-04-08 11:29:14 · 135 阅读 · 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:...原创 2020-04-02 16:49:16 · 203 阅读 · 0 评论 -
使用spring,在main函数中的基本操作代码
package com.lwb.ui;import com.lwb.dao.IAccountDao;import com.lwb.service.IAccountService;import com.lwb.service.impl.AccountServiceImpl;import org.springframework.context.ApplicationContext;impor...原创 2020-04-02 10:34:35 · 853 阅读 · 0 评论 -
spring的pom文件的基本配置
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ma...转载 2020-04-02 10:21:08 · 1724 阅读 · 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:...原创 2020-04-02 10:18:05 · 87 阅读 · 0 评论 -
控制反转IOC
控制反转(Inversion of Control,英文缩写为IoC)把创建对象的权利交给框架(有的是工厂),是框架的重要特征,并非面向对象编程的专用术语。它包括依赖注入(Dependency Injection,简称DI)和依赖查找(Denpendency Lookup)。IoC的作用:削减计算机程序的耦合(解除我们代码中的依赖关系)。// private IAccountDao accou...原创 2020-04-01 21:52:50 · 137 阅读 · 0 评论