`

spring xsd usage

 
阅读更多

http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/xsd-config.html

 

factorybean:

 <bean id="jacksonFactory" class="com.toon.web.commons.spring.jackson.JacksonFactory"/>

 <bean id="objectMapper" factory-bean="jacksonFactory" factory-method="getObjectMapper" />

 

construct:

<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">

<constructor-arg name="objectMapper" type="com.fasterxml.jackson.databind.ObjectMapper" ref="objectMapper">

</constructor-arg>

</bean>

 

注入静态变量:

<bean id="..." class="...">
    <property name="isolation">
        <bean id="java.sql.Connection.TRANSACTION_SERIALIZABLE"
                class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean" />
    </property>
</bean>
或:
<bean id="..." class="...">
    <property name="isolation">
        <util:constant static-field="java.sql.Connection.TRANSACTION_SERIALIZABLE"/>
    </property>
</bean>
分享到:
评论

相关推荐

    spring3.0 xsd文件

    spring3.0 xsd文件 spring3.0 xsd文件 spring3.0 xsd文件 spring3.0 xsd文件 spring3.0 xsd文件 spring3.0 xsd文件

    spring4.0xsd文件

    Spring默认在启动时是要加载XSD文件来验证xml文件的,所以如果有的时候断网了,或者一些开源软件切换域名,那么就很容易碰到应用启动不了。我记得当时Oracle收购Sun公司时,遇到过这个情况。为了防止这种情况,...

    spring5.0的全部xsd文件

    spring5.0的xsd文件,放在本地,免得eclipse从网上下载检测慢

    spring-beans-1.3.xsd

    spring-beans-4.3.xsd spring-beans-4.3.xsd spring-beans-4.3.xsd spring-beans-4.3.xsd

    spring-context-3.2.xsd

    spring xsd 文件 是myeclipse的3.2版本的xsd文件,有些人会在项目中提示这个文件版本不对

    spring 4.25版本 xsd文件

    包含 spring-aop.xsd spring-beans.xsd spring-cache.xsd spring-jdbc spring-jms spring-lang 等

    Spring项目的xsd文件大全

    关于Springmvc,SpringBoot,SpringCould项目的xsd文件大全

    spring配置文件的xsd约束文件

    内含spring-aop-4.0.xsd、spring-beans-4.0.xsd、spring-context-4.0.xsd、spring-mvc-4.0.xsd、spring-tool-4.0.xsd、spring-tx-4.0.xsd、spring-util-4.0.xsd,在xml中引入相应xsd文件,便可以自动提示

    spring-cache.xsd+spring-encache.xsd

    里面有两个xsd文件,springmodules-ehcache和springmodules-cache.xsd。需求:因为有时候在你在xml中用某个标签时,提示错误,有时候就是少了xsd的引入

    spring 自定义xsd

    超级简单的spring 自定义xsd。如果需要详细或复杂的请另行查找资料。 本资源只适合初学者。制作过程请看说明

    spring-beans-3.0.xsd

    spring-beans-3.0.xsd

    Spring所有xsd文件

    Spring框架开发时如需要本地导入xml文件的命名空间,这个包里面包括了,aop,beans,cacha,context,jdbc,jee,jms,lang,mvc,oxm,task,tool,tx,util,所有的xsd文件,有需要的可以下载,不需要的可以路过。

    spring-context.xsd

    spring-context.xsd用于spring DI开发代码提示。用于Java开发。(包含2.5/3.1/3.2版本)

    spring-beans-4.2xsd 文件下载

    Spring默认在启动时是要加载XSD文件来验证xml文件的,所以如果有的时候断网了,或者一些开源软件切换域名,那么就很容易碰到应用启动不了。我记得当时Oracle收购Sun公司时,遇到过这个情况。为了防止这种情况,...

    Spring-3.0.xsd

    Spring-3.0.xsd

    mybatis-spring-1.2.xsd

    spring mvc和mybatis整合需要的文件 http://mybatis.org/schema/mybatis-spring/mybatis-spring-1.2.xsd

    spring-aop-3.0.xsd spring-beans-3.0 spring-context-3.0.xsd spring-mvc-3.1.xsd

    spring-aop-3.0.xsd 这个下载之后可以直接放在eclipese的xml的catalog中配置,已到达eclipse可以自动提示xml的功能

    spring-aop.xsd

    spring-aop.xsd用于spring aop开发代码提示。用于Java开发。(包含2.5/3.1/3.2版本)

Global site tag (gtag.js) - Google Analytics