
SSM框架
asjodnobfy
这个作者很懒,什么都没留下…
展开
-
Request processing failed; nested exception is java.lang.NullPointerException] with root cause
eException ReportMessageRequest processing failed; nested exception is java.lang.RuntimeException: java.lang.NullPointerExceptionDescriptionThe server encountered an unexpected condition that p...原创 2019-04-15 21:09:08 · 3538 阅读 · 1 评论 -
ssm中mybatis对一查询的注意点
问题:对一关系的查询一个训练计划train由一个教练coach开设的。希望查询一个训练计划train的时候希望带出教练coach的信息,但是查得到train表,coach表的内容是null。解决问题的几个注意点:trainMapper.xml 中对coach的resultMap配置使用association标签 <association property="tr...原创 2019-05-24 18:56:52 · 199 阅读 · 0 评论 -
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
检查了名字,命名空间,xml各种检查。最后:application.properties中缺少配置,mapper接口找不到对应的xml实现文件# mybatismybatis.mapper-locations=classpath:mybatis/user/*.xml,classpath:mybatis/coach/*.xml,classpath:mybatis/*.xml由于我在m...原创 2019-05-22 15:20:02 · 204 阅读 · 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 · 7649 阅读 · 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 · 1414 阅读 · 0 评论