- 博客(5)
- 收藏
- 关注
转载 maven projects报红线
有时候,我们使用idea工具重新开启一个项目时,项目的maven project dependencies会报红线,这是因为需要用到的jar报没有导入进来,可以修改maven配置,使用本地仓库。...
2019-07-07 15:42:56
1011
转载 在使用schedule创建定时任务时,出现空指针的解决方式。
当我们使用spring boot整合schedule创建定时任务时,出现空指针,很有可能是因为配置定时任务类,创建job对象的时候,由于job工程接收到任务类创建对象是通过反射创建,通过放射创建的对象并不会将该对象放入spring容器,而在定时任务类进行注入业务类的时候无法注入。所以需要手动的将任务类对象放入spring容器中。步骤:1.定义创建任务类的类,并继承AdaptableJobFact...
2019-07-06 17:57:56
2420
转载 手动new对象出现空指针的解决办法详解
java.lang.NullPointerException at com.example.new_oa.identity.service.impl.IdentityServiceImpl.getAllDepts(IdentityServiceImpl.java:51) at com.example.new_oa.NewOaApplicationTests.initDb(NewOa...
2019-06-30 10:03:22
1376
转载 You have defined query method in the repository
Caused by: java.lang.IllegalStateException: You have defined query method in the repository but you don't have any query lookup strategy defined. The infrastructure apparently does not support query m...
2019-06-29 22:24:24
776
转载 Caused by: java.lang.NoClassDefFoundError:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'identityService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed t...
2019-06-29 20:14:41
3490
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅