1、
tEdasArchiveLogService = (TEdasArchiveLogService) SpringContextHolder.getBean("TEdasArchiveLogService");

2、
ServletContext sc = request.getSession().getServletContext();
//获取spring容器
ApplicationContext app=WebApplicationContextUtils.getRequiredWebApplicationContext(sc);
TEdasFilesService tEdasFilesService=app.getBean(TEdasFilesService.class);

相关文章:

  • 2021-11-10
  • 2021-12-04
  • 2021-04-13
  • 2021-09-25
  • 2021-04-01
  • 2021-04-11
  • 2021-05-11
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-06-28
  • 2021-12-18
  • 2022-02-06
  • 2021-11-17
  • 2021-10-28
相关资源
相似解决方案