<select id="queryById" parameterType="String" resultMap="ask">
public Task queryById(long id);
Cause: ClassCastException: class java.lang.Long cannot be cast to class java.lang.String
解决办法:
<select id="queryById" resultMap="ask">
OR
<select id="queryById" parameterType="long" resultMap="ask">