场景
springboot中@Result注解设置字段及实体属性映射关系,当字段类型为JSONObject和JSONArray时设置映射关系
解决方案
JSON格式表字段映射:
@Result(column = "alarm_rule", property = "alarmRule", jdbcType = JdbcType.OTHER, typeHandler = com.geespace.microservices.data.metrics.config.server.dao.MySqlJsonHandler.class)