mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
优化spring native环境下自定义AOP的单元测试用例
This commit is contained in:
@@ -17,7 +17,7 @@ import javax.annotation.Resource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@ContextConfiguration("classpath:/aop/application-global.xml")
|
||||
@ContextConfiguration("classpath:/aop/application-custom.xml")
|
||||
public class CustomAOPSpringTest extends BaseTest {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -2,13 +2,18 @@
|
||||
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://www.springframework.org/schema/beans"
|
||||
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-4.0.xsd
|
||||
http://www.springframework.org/schema/aop
|
||||
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-4.0.xsd">
|
||||
|
||||
<context:component-scan base-package="com.yomahub.liteflow.test.aop.cmp1,com.yomahub.liteflow.test.aop.cmp2" />
|
||||
|
||||
<aop:aspectj-autoproxy proxy-target-class="true" />
|
||||
|
||||
<bean class="com.yomahub.liteflow.test.aop.aspect.CustomAspect"/>
|
||||
|
||||
<bean id="springAware" class="com.yomahub.liteflow.spi.spring.SpringAware"/>
|
||||
|
||||
Reference in New Issue
Block a user