mybatis调用内部类的方法 快来打我* 2022-05-28 10:15 128阅读 0赞 1. mybatis 映射写法: com.XXX.A$B , 注意A类和B类之间用 $ 表示内外关系,而不是常用的 .点号。 2. 内部类需要用static修饰 要不然会报异常 3. `org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: No constructor found in com.cheng.test.Outer$Innermatching [java.lang.Integer, java.lang.Integer]`
还没有评论,来说两句吧...