Skip to content

Instantly share code, notes, and snippets.

@mocyuto
Last active December 17, 2015 18:39
Show Gist options
  • Save mocyuto/5655230 to your computer and use it in GitHub Desktop.
Save mocyuto/5655230 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
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-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.2.xsd">
<context:component-scan base-package="jp.co.axiz.app" />
<!-- ================================================================ AOP -->
<!-- トレースログ用Advice -->
<beans:bean id="traceAdvice" class="jp.co.axiz.aop.TraceAdvice" />
<!-- AOP Setting -->
<aop:config>
<aop:aspect id="traceAspect" ref="traceAdvice">
<aop:pointcut id="tracePointcut" expression="execution(* isAllowLogin(..))" />
<aop:around method="traceAround" pointcut-ref="tracePointcut" />
</aop:aspect>
</aop:config>
</beans:beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment