您的位置:首页 > 编程语言 > Java开发

Spring -- AOP 优缺点

2015-06-08 17:03 323 查看
This has two benefits. First, the logic for each concern is in one place, as opposed to being scattered all over the code base. Second, your service modules are cleaner because they only contain code for their primary concern
(or core functionality), and secondary concerns have been moved to aspects.。

优点:

1)把次要问题代码放在一个统一的地方,而不是在基本业务逻辑中;

      业务逻辑代码清晰,没有前面的次要问题的代码。这些次要功能就被移到面aspect中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: