@Bean(name = "gdsSqlSessionTemplate")
public SqlSessionTemplate defaultSqlSessionTemplate(@Qualifier("[*]SqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws Exception {
sqlSessionFactory.getConfiguration().setCallSettersOnNulls(true);
return new SqlSessionTemplate(sqlSessionFactory);
}
springboot设置mybatis查询map返回null值
最新推荐文章于 2022-11-30 13:13:16 发布