-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added resultMessagesLoggingInterceptor & AOP setting in projectName-d…
…omain.xml. #39
- Loading branch information
1 parent
1f8520b
commit 20944ab
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
<?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:tx="http://www.springframework.org/schema/tx" | ||
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" xmlns:tx="http://www.springframework.org/schema/tx" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.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 | ||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> | ||
|
||
<import resource="classpath:META-INF/spring/projectName-infra.xml" /> | ||
|
||
<context:component-scan base-package="xxxxxx.yyyyyy.zzzzzz.domain" /> | ||
<import resource="classpath:META-INF/spring/projectName-infra.xml"/> | ||
<tx:annotation-driven/> | ||
|
||
<tx:annotation-driven /> | ||
|
||
<!-- AOP. --> | ||
<bean id="resultMessagesLoggingInterceptor" | ||
class="org.terasoluna.gfw.common.exception.ResultMessagesLoggingInterceptor"> | ||
<property name="exceptionLogger" ref="exceptionLogger" /> | ||
</bean> | ||
<aop:config> | ||
<aop:advisor advice-ref="resultMessagesLoggingInterceptor" | ||
pointcut="@within(org.springframework.stereotype.Service)" /> | ||
</aop:config> | ||
|
||
</beans> |