Mybatis keeps loading XML in a loop. The solution is

bg6 2022-05-22 12:42:19 阅读数:710

mybatiskeepsloadingxmlloop.

MyBatis Continuously cyclic loading xml, terms of settlement

This mistake Baidu has said for a long time is because xml Inside sql Statement error or mapping error , But I've seen it many times xml The contents of the file did not find the problem , Until I saw this article later 《mybatis Always loading xml, Find the wrong solution 》 To solve the problem .

stay \spring-beans-4.1.7.RELEASE Of jar Under the bag
route \org\springframework\beans\factory\support\AbstractAutowireCapableBeanFactory.class find autowireByType Method , The location of the catch exception in this method is the break point .
 Insert picture description here Breakpoint location
 Insert picture description here View error message
 Insert picture description here Using this method really quickly found the cause of the error !!

copyright:author[bg6],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/142/202205211829545467.html