I'm using Spring. I have this class:
@Service
public class FooService {
@Value("${xml.file.path}")
String xmlFilePath;
@Autowired
ResourceLoader ctx;
}
I really hate wiring properties and would prefer to use a constructor but anything I come up is getting a weird "constructor FooService in class FooService cannot be applied to given types". Is it possible to use construction wiring in this case?