2018年12月31日

Mybatis懒加载时,springMVC返回JSON异常 Could not write JSON: No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory$EnhancedResultObjectProxyImpl

摘要: 在mybatis集成springmvc时,假如mybatis采用了懒加载,而springmvc中利用@ResponseBody注解返回实体类的JSON时会抛异常: Could not write JSON: No serializer found for class org.apache.ibati 阅读全文

posted @ 2018-12-31 22:50 橘子柠檬 阅读(1783) 评论(0) 推荐(0) 编辑

mysql+mybatis 在mybatis一个标签中,执行多条sql语句

摘要: 然后在mybatis映射文件中的标签中,一般不能执行多条sql,如下: <insert id="addUser" parameterType="User" > insert into t_users (name,password,phone) values (#{name}, #{password} 阅读全文

posted @ 2018-12-31 12:52 橘子柠檬 阅读(1214) 评论(0) 推荐(0) 编辑

导航