随笔分类 - 报错
摘要:因为 实体类中的主键 是String类型 不能自动为其分配id 所以需要手动设置在service层 model.setId(UUID.randomUUID().toString());
阅读全文
摘要:控制台不报错 可能是注解都写了 但是Action-Service-dao 没通到最后
阅读全文
摘要:service实现类上没有加@transaction 事务注解
阅读全文
摘要:No qualifying bean of type [cn.itcast.bos.web.service.base.CourierService] found for dependency: expected at least 1 bean which qualifies as autowire
阅读全文
摘要:ORA-00001: 违反唯一约束条件 --解决方法 ORA-00001: 违反唯一约束条件 --解决方法 2017年07月27日 12:04:11 阅读数:11853 2017年07月27日 12:04:11 阅读数:11853 阅读数:11853 1、错误 Caused by: java.sql
阅读全文
摘要:解决 @scope(多例) 这是因为造成线程并发访问不安全
阅读全文
摘要:原因:jar包冲突
阅读全文
摘要:解决方法: 关闭正在运行的myeclipse,然后打开myeclipse安装路径(我的安装在c盘): c:\ProgramFiles\MyEclipse\MyEclipse Professional 2014\configuration 将org.eclipse.update文件夹删除,重新启动my
阅读全文
摘要:原因: @serice("customerService") 和@Repository(value="customerDao") 解决: 直接@serice 和 @Repository严重: Exception sending context initialized event to listene
阅读全文
摘要:java.lang.NullPointerException at com.itheima.test.Test2.fun1(Test2.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.ref
阅读全文
摘要:@Test报堆栈溢出, 在main中报错toString
阅读全文
摘要:17:51:45,580 ERROR SqlExceptionHelper:129 - Column 'lkm_cust_id' cannot be nullorg.hibernate.exception.ConstraintViolationException: could not execute
阅读全文
摘要:日期类型转换不了json格式数据 json转换数据的时候可以设置某个字段不需要转换 jsonconfig=new JsonConfig() //{} 内传入不需要转换的字段 jsonconfig.setexcludes(new String{"pdata"}) jsonObject.fromObje
阅读全文