首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >多maven项目的Spring问题

多maven项目的Spring问题
EN

Stack Overflow用户
提问于 2014-07-07 06:20:47
回答 1查看 578关注 0票数 2

嗨,我正在使用一个带有POM模块的多maven spring项目。

  1. 博欧米-域-it
  2. 博米-数据-it
  3. 博欧米域
  4. Bhoomi-数据
  5. 博欧米-介绍
  6. 博欧米-整合-消费者
  7. Bhoomi-整合服务提供商

与单独的pom.xml

我在LoggerAspect模块中创建了一个包含

代码语言:javascript
复制
@Pointcut("execution(* *.*(..))")

问题是,当我正在构建project(Bhoomi-presentation-0.1.0.BUILD-SNAPSHOT.war)时,它只是记录Bhoomi表示模块中存在的类文件的日志,而不是其他模块。

所有其他模块都以jar的形式出现在解放战争中。

如果我忘记了任何配置,请告诉我,这样我就可以记录所有的项目日志了。

EN

回答 1

Stack Overflow用户

发布于 2014-08-05 15:12:52

代码语言:javascript
复制
I can think of something like this in XML( surely it can be done with annotations as well ) for creating common pointcuts spanning multiple modules

<aop:config>
        <aop:pointcut id="appPointcutServices" expression="bean(*Services)" />
        <aop:pointcut id="appPointcutDao" expression="bean(*Dao)" />
        <aop:pointcut id="appPointcutRepository" expression="bean(*Repository)" />
<aop:config>

& Then attach these pointcuts with your application defined Advisor
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24604126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档