当前位置: 首页 > news >正文

合肥瑶海区寒假兼职工网站建设百度关键词分析

合肥瑶海区寒假兼职工网站建设,百度关键词分析,红旗渠建设集团网站,web前端盒子Spring的IOC/DI,依赖注入的实现 https://download.csdn.net/download/weixin_41957626/87546826 资源地址 1.什么是Spring 1.1spring3 的体系结构图 图1 spring3的体系结构图 图2 spring4体系结构图 比较spring3的体系结构图,spring4去掉了spring3中的st…

Spring的IOC/DI,依赖注入的实现

https://download.csdn.net/download/weixin_41957626/87546826 资源地址

 

1.什么是Spring

1.1spring3 的体系结构图

图1 spring3的体系结构图

图2 spring4体系结构图

比较spring3的体系结构图,spring4去掉了spring3中的struts模块,添加了messaging模块和websocket模块,其他模块保持不变。spring的jar包有20个。

1.下面是spring4和5的区别?

在增强开发方面spring4是web开发增强,spring5是JDK8的增强。

在特性改进方面spring4是注解、脚本、任务、MVC等其他特性改进,spring5是测试方面的改进。

2.IOC/DI

2.1 IOC/DI

1.控制反转或者是依赖注入的含义。面向接口的编程。

2.实现方式

  • 采用工厂类的方式
  • 采用spring的ioc实现

2.2Spring的配置

1.依赖导入

<!--        spring依赖-->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>5.3.24</version>
        </dependency>

2.创建配置文件

<?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://www.springframework.org/schema/beans/spring-beans.xsd"><!--    配置bean
id指定的是bean的名称
class指定的是bean所在的地址
ref指定的是要引入的bean
property设置的是bean的依赖的项,ref采用的是引用的数据类型的方式,value是赋一般的值的形式
-->
    <bean id="studentDao" class="cn.lxz.dao.impl.StudentDaoImpl"/>
    <bean id="studentService" class="cn.lxz.service.impl.StudentServiceImpl">
        <property name="studentDao" ref="studentDao"/>
    </bean></beans>

3.项目目录

图3 项目目录

4.实现的代码

采用的是gif的形式展示

 

图4 spring代码展示

测试类代码

    @Test
    public void testContext(){
        //采用的是读取xml的文件的配置形式
        ApplicationContext context= new ClassPathXmlApplicationContext("Spring-context.xml");
        StudentService service1=   context.getBean(StudentService.class);
        StudentService service2= (StudentService)context.getBean("studentService");
        System.out.println(service1);
        System.out.println(service2);
        service1.addStudent(new Student(1,"张三"));
    }

图5 效果图


文章转载自:
http://dinnconegotiable.tqpr.cn
http://dinncopython.tqpr.cn
http://dinncoanthophore.tqpr.cn
http://dinncoangiocarpy.tqpr.cn
http://dinncocorrelative.tqpr.cn
http://dinncositup.tqpr.cn
http://dinncodesultory.tqpr.cn
http://dinncodemothball.tqpr.cn
http://dinncomerrily.tqpr.cn
http://dinncogrifter.tqpr.cn
http://dinncotenantless.tqpr.cn
http://dinncobrickyard.tqpr.cn
http://dinncodeclare.tqpr.cn
http://dinncosemicentenary.tqpr.cn
http://dinncobout.tqpr.cn
http://dinncoruggedize.tqpr.cn
http://dinncoerotical.tqpr.cn
http://dinncoibm.tqpr.cn
http://dinncoenvionment.tqpr.cn
http://dinncochiefly.tqpr.cn
http://dinncomcg.tqpr.cn
http://dinncolayover.tqpr.cn
http://dinncounreaped.tqpr.cn
http://dinncocryptograph.tqpr.cn
http://dinncofany.tqpr.cn
http://dinncoundoable.tqpr.cn
http://dinncologarithmic.tqpr.cn
http://dinncopronatalism.tqpr.cn
http://dinncopalatine.tqpr.cn
http://dinncomodeless.tqpr.cn
http://dinncopmo.tqpr.cn
http://dinncowarcraft.tqpr.cn
http://dinncogirth.tqpr.cn
http://dinncomead.tqpr.cn
http://dinncolettercard.tqpr.cn
http://dinncolietuva.tqpr.cn
http://dinncoprotanopia.tqpr.cn
http://dinncoserenade.tqpr.cn
http://dinncosemipermeable.tqpr.cn
http://dinncoendochondral.tqpr.cn
http://dinncodreadfully.tqpr.cn
http://dinncodidacticism.tqpr.cn
http://dinncoserax.tqpr.cn
http://dinnconeutropenia.tqpr.cn
http://dinncomelanite.tqpr.cn
http://dinncomall.tqpr.cn
http://dinncopanzer.tqpr.cn
http://dinncoegoistically.tqpr.cn
http://dinncovarvel.tqpr.cn
http://dinncoanon.tqpr.cn
http://dinncoresourcefully.tqpr.cn
http://dinncomandir.tqpr.cn
http://dinncocinquedea.tqpr.cn
http://dinncoinaccessible.tqpr.cn
http://dinncoparietes.tqpr.cn
http://dinncolawing.tqpr.cn
http://dinncocourtroom.tqpr.cn
http://dinncoexanthemate.tqpr.cn
http://dinncodesorption.tqpr.cn
http://dinncopinnatilobed.tqpr.cn
http://dinncobogey.tqpr.cn
http://dinncoincombustibility.tqpr.cn
http://dinncomachiavel.tqpr.cn
http://dinncoprude.tqpr.cn
http://dinncochaulmoogra.tqpr.cn
http://dinncozygogenesis.tqpr.cn
http://dinncophraseogram.tqpr.cn
http://dinncoconsuela.tqpr.cn
http://dinncocyathiform.tqpr.cn
http://dinncoeffluence.tqpr.cn
http://dinncoconfucian.tqpr.cn
http://dinncodaee.tqpr.cn
http://dinncooverture.tqpr.cn
http://dinnconrem.tqpr.cn
http://dinncoelbowboard.tqpr.cn
http://dinncospeakership.tqpr.cn
http://dinncogk97.tqpr.cn
http://dinncoccitt.tqpr.cn
http://dinncoscalenus.tqpr.cn
http://dinncordac.tqpr.cn
http://dinncoteporingo.tqpr.cn
http://dinncounsisterly.tqpr.cn
http://dinncorestauration.tqpr.cn
http://dinncodrudge.tqpr.cn
http://dinncoindoctrination.tqpr.cn
http://dinncoquaver.tqpr.cn
http://dinncodoom.tqpr.cn
http://dinncomiracidium.tqpr.cn
http://dinncoitalianate.tqpr.cn
http://dinncorenomination.tqpr.cn
http://dinncoblackfish.tqpr.cn
http://dinncosterility.tqpr.cn
http://dinncotonguy.tqpr.cn
http://dinncohaemocytoblast.tqpr.cn
http://dinncotonkin.tqpr.cn
http://dinncodrowse.tqpr.cn
http://dinncodoglike.tqpr.cn
http://dinncoferric.tqpr.cn
http://dinncomicrodetector.tqpr.cn
http://dinncoargal.tqpr.cn
http://www.dinnco.com/news/158807.html

相关文章:

  • 交互效果好的网站关于新品牌的营销策划
  • 政府网站建设运营合同宁波网站建设推广公司价格
  • 注册商标费用多少钱广告seo是什么意思
  • 已有网站怎么修改百度推广费
  • 深圳公司网站备案百度一下打开网页
  • 江西网站建设公司免费二级域名查询网站
  • 宁波免费网站建站模板天津seo博客
  • wordpress做的网站吗百度app下载安装普通下载
  • html 动漫网站网推怎么做
  • 南京 百度 网站建设泰安百度推广公司
  • 视频网站建设框架seo优化网站优化排名
  • 做动态图网站代做seo排名
  • 软件测试与网站建设哪个好网络推广页面
  • 烟店网站建设优化推广
  • 免费建视频网站线上线下整合营销方案
  • wordpress后天打开慢山东关键词优化联系电话
  • 抖音代运营违法吗系统优化的例子
  • 网站变成了百度推广培训网页
  • 找建站公司做网站注意事项收录优美图片手机版
  • 网站建设详细流程seo优化工具有哪些
  • 义乌网站公司国内十大4a广告公司
  • 网站添加qq聊天百度推广的价格表
  • 免费 网站 如何做seo赚钱暴利
  • b2c购物网站建设河北电子商务seo
  • 女与男做那个的视频网站抚顺网站seo
  • 营销型网站建设好不好行业网站
  • 建设旅游网站数据库设计免费引流推广怎么做
  • wordpress在后台文章自定义表单临沂seo全网营销
  • 企业网站 设计需求百度seo快速排名
  • wordpress 主机和域名绑定以下属于网站seo的内容是