Spring核心概念之AOP

<?xml version="1.0" encoding="UTF-8"?>

 

<!--

  - Application context definition for JPetStore's business layer.

  - Contains bean references to the transaction manager and to the DAOs in

  - dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation").

  -->

<beans xmlns="http://www.springframework.org/schema/beans"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        <span style="color: rgb(255, 0, 0);">xmlns:aop="http://www.springframework.org/schema/aop"</span>

        xmlns:tx="http://www.springframework.org/schema/tx"

        xmlns:p="http://www.springframework.org/schema/p"

        xmlns:context="http://www.springframework.org/schema/context"

        xsi:schemaLocation="

            http://www.springframework.org/schema/beans

            http://www.springframework.org/schema/context

            <span style="color: rgb(255, 0, 0);">http://www.springframework.org/schema/aop </span>

            http://www.springframework.org/schema/tx " >

 

     

     <!--4.基于@AspectJ切面的驱动器 -->

    <aop:aspectj-autoproxy />

    <bean class="com.jbit.ssh.aop.AspectTest"></bean>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/7652494aa0ab4ee298723ec113d06a23.html