<select id="findAll" resultType="com.pojo.Pod">
select
a.id,
a.name,
a.create_date,
a.user_name as 'user.name'
a.user_phone as 'user.phone'
from t_pod a
</select>
配置
mybatis.configuration.map-underscore-to-camel-case=true
我希望 mybatis 支持点,自动映射。
class Pod {
int id;
String name;
User user;
}