[关闭]
@attack666 2021-03-08T20:04:37.000000Z 字数 1407 阅读 491

项目Bug复现

Bug1

目前不知道这个img.dir究竟是存放的什么,临时改成了runtime/upload文件夹的目录。即在application.properties中加入img.dir=C:/Users/DELL/Desktop/proj/runtime/upload

Bug2

  1. 2021-3-8 19:27:11 [restartedMain] WARN
  2. [AnnotationConfigServletWebServerApplicationContext]:559
  3. Exception encountered during context initialization -
  4. cancelling refresh attempt:
  5. org.springframework.beans.factory.UnsatisfiedDependencyEx
  6. ception: Error creating bean with name 'taskController'
  7. defined in file [C:\Users\DELL\Desktop\proj\beauty-o2o-
  8. api\target\classes\cn\enilu\flash\api\controller\system\T
  9. askController.class]: Unsatisfied dependency expressed
  10. through constructor parameter 0; nested exception is
  11. org.springframework.beans.factory.BeanCurrentlyInCreation
  12. Exception: Error creating bean with name 'taskService':
  13. Bean with name 'taskService' has been injected into other
  14. beans [jobService] in its raw version as part of a
  15. circular reference, but has eventually been wrapped. This means that said other beans do not use the final
  16. version of the bean. This is often the result of over-
  17. eager type matching - consider using
  18. 'getBeanNamesForType' with the 'allowEagerInit' flag
  19. turned off, for example.

在@Autowired后添加@Lazy注解

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注