Spring的 JdbcTemplate 可以独立于 Spring微容器单独使用

只要这样就可以了

JdbcTemplate template =  new JdbcTemplate();
template.setDataSource(dataSource);

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.