I am currently preparing a bachelor's degree at the University of Münster. I plan to automatically identify common problems in Spring configurations. There are many tools on the market that perform static code analysis to find errors or problems. Obviously, they cannot detect problems that appear only at runtime. I am going to analyze the ApplicationContext of a Spring application and find the wrong configuration using reflection and analysis of the bean graph.
Example: A simple example: if someone wants to make a transaction of a class or method safe using annotations. Usually it adds the @Transactional tag above the class or method, but if the application is not configured correctly and there is no transaction manager registered in the ApplicationContext that marks annotations, then the tag will be ignored. There will be no error message, which is why these problems are difficult to find so far.
Question: What are the most common errors or architectural errors caused by incorrect configuration using Spring mechanisms that can be detected by dynamic analysis? Are there any projects that will help do something like this?
PS In the course of my dissertation, I will develop a prototype that can further detect these problems with open source. :)
a.ha source share