rolik55 / course-management-system

Spring component introduces unmanaged state JAVA-S1060
Security
Critical
a year agoa year old
userHibControl should be annotated with @Autowired, @Value, @Inject, or @Resource
 30    protected static final String STATUS_SUCCESS = "Success";
 31    private static final
 32    SessionFactory factory = new Configuration().configure().buildSessionFactory();
 33    UserHibernateController userHibControl = new UserHibernateController(factory); 34
 35    @RequestMapping(value = "user/getUser", method = RequestMethod.GET)
 36    @ResponseStatus(value = HttpStatus.OK)
folderHibControl should be annotated with @Autowired, @Value, @Inject, or @Resource
17@Controller
18public class FolderWeb {
19    SessionFactory factory = new Configuration().configure().buildSessionFactory();
20    FolderHibernateController folderHibControl = new FolderHibernateController(factory);21
22    @RequestMapping(value = "folder/getFolder", method = RequestMethod.GET)
23    @ResponseStatus(value = HttpStatus.OK)
factory should be annotated with @Autowired, @Value, @Inject, or @Resource
16
17@Controller
18public class FolderWeb {
19    SessionFactory factory = new Configuration().configure().buildSessionFactory();20    FolderHibernateController folderHibControl = new FolderHibernateController(factory);
21
22    @RequestMapping(value = "folder/getFolder", method = RequestMethod.GET)
fileHibControl should be annotated with @Autowired, @Value, @Inject, or @Resource
17@Controller
18public class FileWeb {
19    SessionFactory factory = new Configuration().configure().buildSessionFactory();
20    FileHibernateController fileHibControl = new FileHibernateController(factory);21
22    @RequestMapping(value = "file/getFile", method = RequestMethod.GET)
23    @ResponseStatus(value = HttpStatus.OK)
factory should be annotated with @Autowired, @Value, @Inject, or @Resource
16
17@Controller
18public class FileWeb {
19    SessionFactory factory = new Configuration().configure().buildSessionFactory();20    FileHibernateController fileHibControl = new FileHibernateController(factory);
21
22    @RequestMapping(value = "file/getFile", method = RequestMethod.GET)