I have a resultset as a result of a MySQL query using the JDBC connector. So my job is to convert the resultset into a JSON format. So that I can send it to the clientside a
It's pretty easy if you want to use Spring:
@RestController
public class MyController
@Autowired
private JdbcTemplate jdbcTemplate;
@RequestMapping("/")
List
In mvc-dispatcher-servlet.xml, you'd setup your JdbcTemplate like this:
...data source config...
Jackson should be in your classpath (ie a Maven dependency).