We often use @Value @Autowired implanting
Provided that you use these classes must be annotated to spring management, otherwise it can not be injected
If you manage to spring, then obtain new instances of the class can not use the (new after class inside the injection property does not have value)