springboot Spring之JDBCTemplate學習
阿新 • • 發佈:2018-12-13
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