spring基础说明01-schema

    xiaoxiao2021-03-25  111

    一个简单的配置

    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> </bean>

    说明

    xmlns="http://www.springframework.org/schema/beans": 初始化bean的格式文件地址 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance": 辅助初始化bean xmlns:p="http://www.springframework.org/schema/p": p标签代替写<property> xmlns:aop="http://www.springframework.org/schema/aop": aop编程 xmlns:context="http://www.springframework.org/schema/context": spring上下文,包括资源文件相关 xmlns:tx="http://www.springframework.org/schema/tx": tx:transaction
    转载请注明原文地址: https://ju.6miu.com/read-10754.html

    最新回复(0)