# springboot单元测试代码 缺失RunWith
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTests {
@Test
public void contextLoads() {
}
}
# resources下的mapper.xml文件 结果集映射 User为空, 指定包名才可以
<resultMap type="com.btlord.crm.domain.User" id="UserResult">
# domain 或者 entity 必须序列化
public class User implements Serializable