springboot Spring之JDBCTemplate学习

1. mvn install:install-file -Dpackaging=jar -DgroupId=com.baidu -DartifactId=ueditor -Dversion=1.1.1 -Dfile=D:\ueditor-1.1.2.jar

参考资料1.https://blog.csdn.net/qq_35673617/article/details/79480650

2.spring boot 集成mybatis连接oracle数据库(注意oracle驱动需要自己打包)

http://www.cnblogs.com/pangkang/p/8296666.html

3. Spring JdbcTemplate方法详解 

//1.查询一行数据并返回int型结果  
jdbcTemplate.queryForInt("select count(*) from test");  
//2. 查询一行数据并将该行数据转换为Map返回  
jdbcTemplate.queryForMap("select * from test where name='name5'");  
//3.查询一行任何类型的数据,最后一个参数指定返回结果类型  
jdbcTemplate.queryForObject("select count(*) from test", Integer.class);  
//4.查询一批数据,默认将每行数据转换为Map       
jdbcTemplate.queryForList("select * from test");  
//5.只查询一列数据列表,列类型是String类型,列名字是name  
jdbcTemplate.queryForList("  
select name from test where name=?", new Object[]{"name5"}, String.class);  
//6.查询一批数据,返回为SqlRowSet,类似于ResultSet,但不再绑定到连接上  
SqlRowSet rs = jdbcTemplate.queryForRowSet("select * from test");  

  https://www.cnblogs.com/wanggd/p/3140506.html

4.

Spring之JDBCTemplate学习

5.通过eclipse把spring boot项目打包成war包并部署到tomcat服务器上的步骤 

https://blog.csdn.net/huangyaa729/article/details/78031337

6.

将SpringBoot的Maven项目打成war包(IDE:Eclipse)

https://blog.csdn.net/gs838251686/article/details/83015989

7.https://www.cnblogs.com/free-dom/p/5801866.html

猜你喜欢

转载自www.cnblogs.com/jycjy/p/10115893.html