在上文中(点击这里回顾>>),我们介绍了如何管理多个Beans和项目、Spring配置编辑器等,本文将继续介绍AOP、Web Flow支持等,要持续关注哦~
MyEclipse技术交流群:742336981 欢迎一起进群讨论
6. AOP支持
Beans Cross References视图显示了所有被建议的beans以及那些建议其他beans。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/15p09pff56ostl765.png)
Beans Cross References视图
Spring Configuration编辑器和Java编辑器显示受项目AOP配置影响的方法和类的特殊标记。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/2t5jmvxnmt40xhfww.gif)
建议bean
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/3wdgn00qw9f93bid8.png)
建议的方法
Spring AOP Event Trace(事件跟踪)视图让您了解在构建Spring IDE的内部AOP模型时底层发生了什么。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/4l8k7zsvwofwa8i45.gif)
AOP事件跟踪视图
AOP支持需要AOP Reference Model Builder(参考模型构建器),它可以在项目和全局级别上启用/禁用。如果您不在项目中使用AOP,可以全局地关闭它。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/53ix4wl18bpyd42ru.gif)
AOP构建器
7. Web流支持
MyEclipse还增加了Spring Web Flow支持,并包含多个版本的Spring Web Flow库。在项目中安装Spring facet时,包含Spring Web Flow,或您可以稍后在项目的Spring属性中包含它。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/68can88qdk41iepyf.png)
在添加Spring facet时包含Spring Webflow
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/7xeo0r8t0m8gp5was.png)
包括web flow
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/828j5pbqot8xpgtet.png)
Web flow容器
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/9o7fegzfyih7kxmr0.png)
定义Web Flow definition文件
使用可视化编辑器可以使用右键菜单轻松创建状态、操作和转换,使用Element Details部分添加元素信息,使用flow-graph选项卡直观地设计您的web流程。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/10l8frz5t0r9z9wwdt.gif)
打开Web Flow编辑器
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/00caszwm6e1u33g0ea.png)
Web Flow编辑器
Source视图提供了特定于web流的内容辅助支持。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/111kglbgmn1i7zxe9o.gif)
编辑器源视图
web流定义文件的验证是可定制的。
![在MyEclipse中的Spring开发](https://image.evget.com/2023/09/14/125a3mulqs8hxuwiy6.png)
Web Flow验证自定义
8. 资源参考
- Introduction to Spring – Knight MyEclipse Spring Project
- Spring 1.2 Reference Manual
- Spring 2.0 Reference Manual
- Spring 3.0 Reference Manual