Move your sql query to resource file with @Autowired and factory method on July 01, 2017 DAO Java jdbc Spring SQL +