search-demo/src/test/java/com/qingqing/search/demo/TeacherMapperTest.java
@Test
    public void testQuery() throws Exception{
//
//        JdbcTemplate jdbcTemplate = new JdbcTemplate(elasticSearchDruidDataSource);
//
//        List<Map<String, Object>> results = jdbcTemplate.queryForList("select * from teacher");
//
//        for (Map<String, Object> result : results) {
//            for (Entry<String, Object> stringObjectEntry : result.entrySet()) {
//                System.out.println(stringObjectEntry.getKey() + "   " + stringObjectEntry.getValue().toString());
//            }
//        }
    }
/**
     * not support execute method
     * @throws Exception
     */
not support execute method
@throws Exception
not support execute method @throws Exception
@Test
    public void testQuery() throws Exception{
        JdbcTemplate jdbcTemplate = new JdbcTemplate(elasticSearchDruidDataSource);
        List<Map<String, Object>> results = jdbcTemplate.queryForList("select * from teacher");
        for (Map<String, Object> result : results) {
            for (Entry<String, Object> stringObjectEntry : result.entrySet()) {
                System.out.println(stringObjectEntry.getKey() + "   " + stringObjectEntry.getValue().toString());
            }
        }
    }
@ Test public void testQuery ( ) throws Exception { }
not support execute method
 @throws Exception
not support execute method @throws Exception
// //        JdbcTemplate jdbcTemplate = new JdbcTemplate(elasticSearchDruidDataSource); // //        List<Map<String, Object>> results = jdbcTemplate.queryForList("select * from teacher"); // //        for (Map<String, Object> result : results) { //            for (Entry<String, Object> stringObjectEntry : result.entrySet()) { //                System.out.println(stringObjectEntry.getKey() + "   " + stringObjectEntry.getValue().toString()); //            } //        }