was not registered for synchronization because synchronization is not active

was not registered for synchronization because synchronization is not active

上图来自网页,遇到问题一样。

1)对应的sql中出现了ParamterType对应的实体类中缺少的字段。

             比如:if标签中,对name是否为空进行了判断。但是实体类中根本没有name变量,那么就会出现此错误。

2)此思路是网搜的。实体类中使用的不是包装类,而是基本数据类型。

3)是否在不该加limit 的sql中加了limit

4)页面的form表单的name属性字段是否一致。(解决了我的问题)

springtest:jar:1.0-SNAPSHOT is missing, no dependency information available

         刷新maven工程解决。