android 代码混淆后出现:TypeReference constructed without actual type information这个错误的解决方法

-dontwarn   org.codehaus.jackson.**

-keep class org.codehaus.jackson.**{*;}

除去上面的两行代码还要加一句才可以解决上面的问题

-keepattributes Signature,*Annotation*,EnclosingMethod
这个问题困扰了我三天时间今天终于解决了,记录下来以帮助其它人

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Sure! Here's an example of how you can implement this method in an SQL XML file: ```xml <!-- FollowUpPatientMapper.xml --> <select id="findPatientList" resultMap="followUpPatientResultMap"> SELECT * FROM follow_up_patient WHERE 1 = 1 <if test="tenaId != null"> AND tena_id = #{tenaId} </if> <if test="groupIdList != null and groupIdList.size() > 0"> AND group_id IN <foreach collection="groupIdList" item="groupId" open="(" separator="," close=")"> #{groupId} </foreach> </if> <if test="labelIdList != null and labelIdList.size() > 0"> AND label_id IN <foreach collection="labelIdList" item="labelId" open="(" separator="," close=")"> #{labelId} </foreach> </if> <if test="startTime != null"> AND start_time >= #{startTime} </if> <if test="endTime != null"> AND end_time <= #{endTime} </if> </select> <resultMap id="followUpPatientResultMap" type="FollowUpPatient"> <!-- Map the columns of follow_up_patient table to the properties of FollowUpPatient class --> <!-- Add your column-to-property mappings here --> </resultMap> ``` In this example, the SQL query is constructed dynamically based on the provided parameters. The `SELECT` statement retrieves all columns from the `follow_up_patient` table. The `<if>` conditions are used to add additional filtering criteria based on the provided parameters. The resulting list is mapped to a `FollowUpPatient` object using the `<resultMap>` element. Please note that you need to replace the column-to-property mappings in the `<resultMap>` section with the appropriate mappings for your `FollowUpPatient` class.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值