Is there a way or a tool that can, at compile time, detect if any of my spring beans have not been autowired correctly.
For e.g., for type based wiring, it should complain if that type does not exist. Or for ‘name’ based wiring, it should complain if a bean by that name does not exist.
These can be caught at application start time, but that sounds too late in the game (especially when you have a long deployment process).
intellij-idea does a great job of figuring out incorrect mappings in XML and in classes. I guess sts-springsourcetoolsuite has similar features.
But the best safety net for you is simply writing an integration test starting up the whole context and running it in continuous integration.