Annotation是对是错?
来源:互联网 发布:制作动画的软件 知乎 编辑:程序博客网 时间:2024/04/27 15:39
还是来看看专家说的话吧!
Bill Burke has written up four simple rules for when to use annotations instead of XML, based on his experience with JBoss’ EJB3 implementation. They are:
- Use an annotation if the metadata you are applying changes the design of your class.
- Use an annotation if the metadata changes the design of code interacting with your class.
- If your application needs to be portable between app-servers or databases, don't use an annotation that will not allow you to be portable.
- Use XML when you want to configure on a per-deployment basis.
- Annotation是对是错?
- 坚持是对是错
- 是对还是错
- 是对还是错?
- 女程序员是对是错?
- 是对 是错 向左 向右
- 不知是对还是错
- 360是对还是错?
- 解决方案盲目追求通用性是对是错?
- 工作两年,何去何从,是对是错
- 我也不知道是对还是错?
- 加大云投入,是对还是错?
- 爸爸是对的
- 方向是对的
- 对,是form表单
- 是
- 是
- 是
- 收藏的AS博客
- c# Default關鍵字
- MPa和psi,bar压力单位换算成公斤
- C练习题
- js 状态栏显示时间
- Annotation是对是错?
- eclipse使用中内存溢出(缓存)的问题
- Linux系统资源限制
- 赢家通吃及其衍生
- 主键与外键的概念(今天的面试题!)
- 小儿咳嗽
- Ubuntu Config
- 运行库出现的链接问题
- 郭德纲恶心人台词大全