
SSM框架
asjodnobfy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Request processing failed; nested exception is java.lang.NullPointerException] with root cause
eException Report MessageRequest processing failed; nested exception is java.lang.RuntimeException: java.lang.NullPointerException DescriptionThe server encountered an unexpected condition that p...原创 2019-04-15 21:09:08 · 3557 阅读 · 1 评论 -
ssm中mybatis对一查询的注意点
问题:对一关系的查询 一个训练计划train由一个教练coach开设的。 希望查询一个训练计划train的时候希望带出教练coach的信息, 但是查得到train表,coach表的内容是null。 解决问题的几个注意点: trainMapper.xml 中对coach的resultMap配置使用association标签 <association property="tr...原创 2019-05-24 18:56:52 · 210 阅读 · 0 评论 -
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
检查了名字,命名空间,xml各种检查。最后: application.properties中缺少配置,mapper接口找不到对应的xml实现文件 # mybatis mybatis.mapper-locations=classpath:mybatis/user/*.xml,classpath:mybatis/coach/*.xml,classpath:mybatis/*.xml 由于我在m...原创 2019-05-22 15:20:02 · 211 阅读 · 0 评论 -
ERROR [main] org.springframework.test.context.TestContextManager [250] -| Caught exception while all
-ERROR [main] org.springframework.test.context.TestContextManager [250] -| Caught exception while allowing TestExecutionListener [org.springframework.boot.test.autoconfigure.SpringBootDependencyInject...原创 2019-05-24 09:06:10 · 7672 阅读 · 0 评论 -
net.sf.json.JSONException: Object is null
问题:SSM前端jsp页面使用angular请求数据,后台Controller拿到了数据但是个别值是空的,因此报了此异常。 原来我懒得在controller封装json数据,直接使用的是第一种方式转换: // 前端angular请求数据 @ResponseBody @RequestMapping(value="showCar", method = RequestMethod.POST) ...原创 2019-05-31 17:25:38 · 1423 阅读 · 0 评论