2019-08-14 22:25:10 103.226.196.* 对s*说:


@GetMapping("/jdbc")
@ResponseBody
public List<Map<String, Object>> jdbc() {


String sql = "select 1 as v union select 2 as v";
sql = "show databases";
List<Map<String, Object>> map = null;
if(jdbc!=null)
map = jdbc.queryForList(sql);

return map;
//return "jdbc";

}

  1. @Autowired
    private JdbcTemplate jdbc;
    oo[30] xx[1] 2019-08-14 22:25:15

回复

关于本站 @ 2018