spring jdbc配置

maven:


            org.springframework
            spring-jdbc
            4.3.14.RELEASE
        
        
            mysql
            mysql-connector-java
            5.1.39
        

xml:


        
        
        
        
    

    
        
    

java:

jdbcTemplate.queryForList("select DISTINCT(day) from table order by day desc", String.class);

你可能感兴趣的:(spring jdbc配置)