Search code examples
springormmybatisspring-mybatis

How to debug spring-mybatis xml mappers ?


If there is a non syntax error in mybatis xml mapper like:

     <result property="pro"    column="col"     javaType="CustomObj" typeHandler="CutomObjTypeHandler"/>

where "CutomObjTypeHandler" is misspelled for example, the app will start deploying and hangs, the last tomcat log:

 Initializing Spring root WebApplicationContext

The deployment process doesn't stop, or raise exception, at least for the first 20 mins.

When that happen I go back and read the xml thoroughly to find the type-O.

Is there a better way to debug this ? or maybe my environment is not setup correctly to handle it ?


Solution

  • Sounds like this is a bug in mybatis that have been fixed recently https://jira.spring.io/browse/SPR-12397