Fieldinjection harms testability, especially if you mark the fields private.
字段注入会影响可测试性,特别是将字段标记为private时。
2
The EJB 3.0 specification talks about public fieldinjection and setter injection, but constructor injection will enable you to avoid creating setters for values you don't expect to change.