《springboot和mybatis項目使用枚舉轉換器出現No enum constant及解決方法》

mybatis枚舉轉換器參見此篇博客。 咱們知道寫好了枚舉轉換器之後,能夠在xxxMapper.xml中配置handler,以下:java <result column="type" property="personEnum" typeHandler="com.db.enumhandler.PersonTypeHandler"/> 也能夠在mybatis-config.xml中進行配置,以下:sp
相關文章
相關標籤/搜索