标签系列一:spring 中beans解释以及beans标签里面的属性
一、beans解释:
英文解释:The top level (typically root) element. Allows the definition of default values for all nested bean definitions.
上句翻译:顶层(通常为根)元素。允许定义所有嵌套bean定义的默认值。
二、beans标签里面的属性(name为属性名,default为默认值,type为=“ ”引号里面填的类型):
下面的属性bean里面也有,请参考我的bean的解释和属性文章。
1、name="default-lazy-init" default="false" type="xsd:boolean"
2、name="default-merge" default="false" type="xsd:boolean"
3、name="default-autowire" default="no"
4、name="default-autowire-candidates" type="xsd:string"
5、name="default-init-method" type="xsd:string"
6、name="default-destroy-method" type="xsd:string"
三、beans标签下一层的标签(ref为下一层标签名字,minOccurs为最小出现次数,maxOccurs为最多出现次数):
1、ref="description" minOccurs="0"
英文解释:Contains informative text describing the purpose of the enclosing element. Used primarily for user documentation of XML bean definition documents.
上句翻译:包含描述封闭元素用途的信息性文本。主要用于XML bean定义文档的用户文档。
2、choice为在里面选择一个
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="import"/>
<xsd:element ref="alias"/>
<xsd:element ref="bean"/>
</xsd:choice>
2.1、<import>标签:
英文解释:Specifies an XML bean definition resource to import.
上句翻译:指定要导入的XML bean定义资源。
<import>标签的属性(use为改属性是否必须出现):
(1)、name="resource" type="xsd:string" use="required"
英文解释:The relative resource location of the XML (bean definition) file to import, for example "myImport.xml" or "includes/myImport.xml" or "../myImport.xml".
上句翻译:要导入的XML(bean定义)文件的相对资源位置,例如“myImport.xml”或“includes / myImport.xml”或“../myImport.xml”。
2.2、<alias>标签:
英文解释:Defines an alias for a bean (which can reside in a different definition resource).
上句翻译:定义bean的别名(可以驻留在不同的定义资源中)。
<alias>标签的属性:
(1)、name="name" type="xsd:string" use="required"
英文解释:The name of the bean to define an alias for.
上句翻译:用于定义别名的bean的名称。
(2)、name="alias" type="xsd:string" use="required"
英文解释:The alias name to define for the bean.
上句翻译:要为bean定义的别名。
2.3、<bean>请参考我的bean的解释和属性文章。
标签系列一:spring 中beans解释以及beans标签里面的属性相关推荐
- 标签系列二:spring 中bean解释以及bean标签里面的属性
一.bean标签: 英文解释:Defines a single (usually named) bean. A bean definition may contain nested tags for ...
- 【Spring全家桶系列】Spring中bean标签的配置与使用
⭐️前面的话⭐️ 本文已经收录到<Spring框架全家桶系列>专栏(该专栏计划在全部文章更新完毕后付费,反正订阅不要钱,要不来一个?),本文将介绍Spring中XML配置Bean,有关be ...
- spring中<tx:annotation-driven>标签转为注解@EnableTransactionManagement
spring中涉及事务的内容使用注解开发时,需开启事务的注解驱动 <?xml version="1.0" encoding="UTF-8"?> &l ...
- Spring/SpringBoot系列之Spring中涉及的9种设计模式【七】
1. 总览 Spring中涉及的设计模式: 简单工厂(非23种设计模式中的一种) 工厂方法 单例模式 适配器模式 装饰器模式 代理模式 观察者模式 策略模式 模版方法模式 2. 详细介绍 2.1 简单 ...
- html中map标签的用法,HTML中的map和area标签
1. 标签介绍: (1)map标签: 该标签是指图片的映射,也就是说一张可以点击的图片的映射: 属性介绍: <1> id: 中的 usemap 属性可引用 中的 id 或 name 属性( ...
- Spring中使用byType实现Beans自动装配
以下内容引用自http://wiki.jikexueyuan.com/project/spring/beans-auto-wiring/spring-autowiring-byType.html: 此 ...
- 【SpringBoot系列】 Spring中自定义Session管理,Spring Session源码解析
系列文章:Spring Boot学习大纲,可以留言自己想了解的技术点 目录 系列文章:Spring Boot学习大纲,可以留言自己想了解的技术
- Spring核心系列之Spring中的事务
Spring的事务,因为这个东西算是Spring 内部使用AOP最好的一个体现,体现了AOP思想@EnableTransactionManagement 表示开启事务!Spring事务其实就是Spri ...
- html 数据项放在 标签,如何在HTML中传递数据选择选项标签?
得到你需要制作一个与基于银行账户号码列中的所有数据数据库Select声明传递的银行帐号作为变量.然后将该语句存储为变量,并将其传递到数据库,该数据库将返回任何匹配项.如: bank_no1 bank_ ...
最新文章
- Linux命令行抓包及包解析工具tshark(wireshark)使用实例解析
- 优秀程序员必备七要件
- github在线执行_什么是Github操作,如何自动执行测试和Slack通知?
- [转载] Linux进程基础
- $con=mysql_connect_php连接mysql mysql_connect()与mysqli_connect()的盲点
- java调用日期控件_JAVA基础应用:日期时间选择控件(代码)
- zabbix系列zabbix3.4监控mysql5.7
- ICCV 2021 best paper-Swin Transformer:对各类SOTA的降维打击!
- opencms整合到java项目里_java-将标签云添加到OpenCMS网站
- 《麦肯锡卓越工作方法》
- 使用C#或C++语言实现微信自动加好友的功能(附接口SDK及源码)
- 一、响应式编程基本介绍
- Android触摸事件进行画图简单实现
- 容器学习Day11-docker commit构建容器镜像
- 简单理解操作系统之存储器管理
- 读书笔记系列--《VB2005-菜根谭》注释版
- Android端集成大疆SDK(MSDK)
- 给js添加类名/添加元素标签/
- 阿里的人工智能之路 与谷歌亚马逊还有多大差距
- DM8:达梦数据库下载地址