how do you solve the problem that MyBatis cannot load TypeHandler according to the fully qualified name of the class in the configuration file in OSGI environment?
for example:
<delete id="deleteById" statementType="PREPARED">
delete from ${tableName} where id in
<foreach item="item" collection="guidList" separator="," open="(" close=")">
-sharp{item, typeHandler=com.example.GUIDTypeHandler}
</foreach>
</delete>
an error will be reported at this time:
Caused by: java.lang.ClassNotFoundException: Cannot find class: com.example.GUIDTypeHandler
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
... 63 more