Spring框架中的aop操作之一 及aspectjweaver.jar与aopalliance-1.0.jar下载地址 包含beans 注解context 和aop的约束
2018-01-01 00:41
746 查看
(aspect oriented programming面向切面编程)
首先在原有的jar包:
需Spring压缩包中的四个核心JAR包
beans 、context、core 和expression
下载地址:
https://pan.baidu.com/s/1qXLHzAW
以及日志jar包
commons-logging 和log4j
下载地址:
https://pan.baidu.com/s/1mimTW5i
再增加一个
spring-aop-5.0.1.RELEASE.jar (用于注解,在Spring-framework库中包含)
再增加
spring-aspects-5.0.1.RELEASE.jar [b](在Spring-framework库中包含)[/b]
aspectjweaver-1.8.12.jar (官方下载地址 http://mvnrepository.com/artifact/org.aspectj/aspectjweaver)
[b]aopalliance-1.0.jar (官方下载地址 http://mvnrepository.com/artifact/aopalliance/aopalliance/1.0)[/b]
然后在Spring-framework库中docs文件夹中找到html文件夹的xsd-configuration.html文件
找到aop的相关约束。(不包含注解的约束)
之前的注解context的约束(包括了下边的beans的约束)
之前的beans的约束
包含beans 注解context 和aop的约束
首先在原有的jar包:
需Spring压缩包中的四个核心JAR包
beans 、context、core 和expression
下载地址:
https://pan.baidu.com/s/1qXLHzAW
以及日志jar包
commons-logging 和log4j
下载地址:
https://pan.baidu.com/s/1mimTW5i
再增加一个
spring-aop-5.0.1.RELEASE.jar (用于注解,在Spring-framework库中包含)
再增加
spring-aspects-5.0.1.RELEASE.jar [b](在Spring-framework库中包含)[/b]
aspectjweaver-1.8.12.jar (官方下载地址 http://mvnrepository.com/artifact/org.aspectj/aspectjweaver)
[b]aopalliance-1.0.jar (官方下载地址 http://mvnrepository.com/artifact/aopalliance/aopalliance/1.0)[/b]
然后在Spring-framework库中docs文件夹中找到html文件夹的xsd-configuration.html文件
找到aop的相关约束。(不包含注解的约束)
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> <!-- bean definitions here --> </beans>
之前的注解context的约束(包括了下边的beans的约束)
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <!-- bean definitions here --> </beans>
之前的beans的约束
<?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="foo" class="x.y.Foo"> <property name="name" value="Rick"/> </bean> </beans>
包含beans 注解context 和aop的约束
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> <!-- 开启注解扫描 --> <context:component-scan base-package="com.swift"></context:component-scan> </beans>
相关文章推荐
- Spring所依赖的AspectJ的jar包下载/Spring-aop注解jar包下载
- aspectjweaver.jar+ aopalliance.jar+mchange-commons-java.jar+cglib.jar官网下载
- Spring框架 aop操作的注解方法 基于aspectj的自动注解aop方法
- 让spring3.0可以使用aop注解的方法是导入两个jar包aspectjrt.jar aspectjweaver.jar
- Intellij IDEA创建Spring项目之基于Aspectj的AOP操作(注解方式)
- Spring框架学习第五讲(AOP操作——注解实现)
- java资料全套\基础+就业\Spring框架2016版视频\day02视频\13-aspectj的aop其他操作.xml
- Spring框架学习-深入理解AOP02----AOP简介,AspectJ,AOP基于注解和XML配置(5种通知,切面优先级)
- 读取excel文件(jxl.jar包简介/java操作excel jxl.jar下载地址)
- Spring中使用aop操作需要用到的aspectjweaver-1.8.7.jar包
- aopalliance.jar —— 下载地址
- spring框架的学习(四)——Spring的AOP的概述及AOP的操作(基于aspectj的xml方式)
- day3_Spring_02_基于aspectj的注解aop操作
- Spring AOP aspectjweaver.jar包 4000
- spring框架的学习(五)——Spring使用AspectJ进行AOP的开发:注解方式
- Spring框架针对dao层的jdbcTemplate操作crud之delete删除数据库操作 Spring相关Jar包下载
- jxl.jar包简介/java操作excel jxl.jar下载地址
- oracle linux 6.2安装oracle 11g动手实验(包含操作视频下载地址)
- 4000 从oracle官网下载JavaMail所需jar的操作流程
- SPRING的各种jar包官网下载地址 。3.2.8