当前位置: 首页 > news >正文

应用开发工具有哪些搜狗搜索引擎优化

应用开发工具有哪些,搜狗搜索引擎优化,动漫设计是什么,建设集团网站的作用基于开源的JAVA mongodb jdbc 驱动 使用教程介绍 介绍 本文介绍一款开源的基于JAVA的 Mongodb JDBC 驱动使用教程 开源地址 https://gitee.com/bgong/jdbc-mongodb-driver功能价值 与mybaits融合:复用mybatis的功能特性,如:缓存,if动态判断标签等特…
基于开源的JAVA mongodb jdbc 驱动 使用教程介绍

介绍

本文介绍一款开源的基于JAVA的 Mongodb JDBC 驱动使用教程

开源地址

https://gitee.com/bgong/jdbc-mongodb-driver

功能价值

  1. 与mybaits融合:复用mybatis的功能特性,如:缓存,if动态判断标签等特性
  2. 开发更加便捷: 统一dao层,使代码更具维护性,同时操作mongodb 便捷
  3. 产品融合能力: 作为底层组件,可以与BI、低代码平台等需要JDBC特性产品融合能力

基于 Mongodb jdbc+springboot+mybatis融合案例

https://blog.csdn.net/gongbing798930123/article/details/135003268
《【开源Mongdb驱动】SpringBoot+Mybatis+Mongdb融合使用教程》

代码操作指南

meavn pom文件依赖

 <dependency><groupId>org.mongodb</groupId><artifactId>mongodb-driver</artifactId><version>3.11.2</version></dependency><dependency><groupId>org.mongodb</groupId><artifactId>bson</artifactId><version>3.11.2</version>
</dependency><dependency><groupId>com.google.code.gson</groupId><artifactId>gson</artifactId><version>2.8.2</version></dependency><dependency><groupId>com.mongo.jdbc</groupId><artifactId>jdbc-mongodb-driver</artifactId><version>1.0.0</version><scope>system</scope><systemPath>${project.basedir}/src/main/resources/libs/mongo-connector-java-1.0.0.jar</systemPath>
</dependency>
POM文件说明
mongo-connector-java-1.0.0.jar 因为没有放到meavn的公共库里面去,所以需要在开源地址下载里面对应的驱动包放在项目里面或者本地meavn仓库中。

操作代码

package com.mongo.jdbc.example;import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;/*** * @author:binggong* @createtime: 2023年12月10日 下午2:35:47 * @version:V.0.1* @tag:  mongodb jdbc 操作**/
public class JdbcMongoCommandExample {public static void main(String[] args) {// TODO Auto-generated method stubtry {Class.forName("com.mongo.jdbc.Driver");/***  连接方案1*/
//			Properties properties = new Properties();
//			properties.put("user", "");
//			properties.put("password", "");
//			properties.put("address", "localhost:27017");
//			properties.put("dbname","demo_db");
//			properties.put("isSSL","false");
//			Connection conn = DriverManager.getConnection("", properties);/***  连接方案2*  jdbc:mongo://localhost:27017/db_name?isSSL=false*/String jdbcUrl ="jdbc:mongo://localhost:27017/demo_db?isSSL=false";Connection conn = DriverManager.getConnection(jdbcUrl, null, null);//写入操作String insertScript= "db.tb_user.insert({\"deptno\":?,\"dname\":?,\"loc\":?});";	PreparedStatement ps = conn.prepareStatement(insertScript);ps.setInt(1, 1);ps.setString(2, "数据中台部");ps.setString(3, "湖北武汉");ps.execute();//查询数据String queryScript = "db.tb_user.find()";ps = conn.prepareStatement(queryScript);ResultSet rs = ps.executeQuery();while(rs.next()) {String _id = rs.getString("_id");String deptno = rs.getString("deptno");String dname = rs.getString("dname");String loc = rs.getString("dname");System.out.println("_id:"+_id+"|deptno:"+deptno+"|dname:"+dname+"|loc:"+loc);}//删除数据String deleteScript = "db.tb_user.deleteMany({'loc':?})";ps = conn.prepareStatement(deleteScript);ps.setString(1, "湖北武汉");ps.execute();ps.close();} catch (Exception e) {// TODO Auto-generated catch blocke.printStackTrace();}}}

JDBC连接串说明

例如:jdbc:mongo://localhost:27017/db_name?isSSL=false
jdbc:mongo://为固定标示,标示为mongodb jdbc 驱动连接串
localhost:27017 :连接的主机和短裤
db_name :为数据库名称
isSSL=false :mongodb连接配置参数,如有多配置参加可以在后面用&keyxx=valuex 追加

案例代码下载

在这里插入图片描述


文章转载自:
http://dinncoorc.tqpr.cn
http://dinncoexhibition.tqpr.cn
http://dinncocontaminated.tqpr.cn
http://dinncoendopolyploid.tqpr.cn
http://dinncosalpingian.tqpr.cn
http://dinncocumbric.tqpr.cn
http://dinncocentimo.tqpr.cn
http://dinncolabialize.tqpr.cn
http://dinncozonked.tqpr.cn
http://dinncoabstractly.tqpr.cn
http://dinncocentripetence.tqpr.cn
http://dinncomoveless.tqpr.cn
http://dinncocontaminate.tqpr.cn
http://dinncoclonesome.tqpr.cn
http://dinncopharmacology.tqpr.cn
http://dinncotelluride.tqpr.cn
http://dinncoruffian.tqpr.cn
http://dinncoretroflex.tqpr.cn
http://dinncogeocentricism.tqpr.cn
http://dinncomilieu.tqpr.cn
http://dinncoparalanguage.tqpr.cn
http://dinncoaus.tqpr.cn
http://dinncoreassertion.tqpr.cn
http://dinncoacutely.tqpr.cn
http://dinncoferetrum.tqpr.cn
http://dinncocoactivated.tqpr.cn
http://dinncoartistically.tqpr.cn
http://dinncocollectanea.tqpr.cn
http://dinncopacker.tqpr.cn
http://dinncoahistoric.tqpr.cn
http://dinncothp.tqpr.cn
http://dinncocitron.tqpr.cn
http://dinncotetrandrious.tqpr.cn
http://dinncowienie.tqpr.cn
http://dinncosentimentalize.tqpr.cn
http://dinncomultiposition.tqpr.cn
http://dinnconaevus.tqpr.cn
http://dinncoigfet.tqpr.cn
http://dinncoambiguously.tqpr.cn
http://dinncocubane.tqpr.cn
http://dinncointrigue.tqpr.cn
http://dinncocorchorus.tqpr.cn
http://dinncobronchography.tqpr.cn
http://dinncocatarrhine.tqpr.cn
http://dinnconebraska.tqpr.cn
http://dinncolammie.tqpr.cn
http://dinncotranquillo.tqpr.cn
http://dinncoreflectivity.tqpr.cn
http://dinncoyomp.tqpr.cn
http://dinncomi.tqpr.cn
http://dinncolatimeria.tqpr.cn
http://dinncohovertrailer.tqpr.cn
http://dinncogriminess.tqpr.cn
http://dinncoinconsequentia.tqpr.cn
http://dinncodeflexion.tqpr.cn
http://dinncoladybug.tqpr.cn
http://dinncocircuity.tqpr.cn
http://dinncodithering.tqpr.cn
http://dinncomultirunning.tqpr.cn
http://dinncogooseberry.tqpr.cn
http://dinncotashkent.tqpr.cn
http://dinncosemisupernatural.tqpr.cn
http://dinncosweat.tqpr.cn
http://dinncoclostridium.tqpr.cn
http://dinncopapyraceous.tqpr.cn
http://dinncoyep.tqpr.cn
http://dinncomuzzleloader.tqpr.cn
http://dinncocrewman.tqpr.cn
http://dinncomarampa.tqpr.cn
http://dinncofederalese.tqpr.cn
http://dinncohomodesmic.tqpr.cn
http://dinncotellurometer.tqpr.cn
http://dinncorebate.tqpr.cn
http://dinncospendthriftiness.tqpr.cn
http://dinnconarrows.tqpr.cn
http://dinncoentoil.tqpr.cn
http://dinncocriant.tqpr.cn
http://dinncosquirish.tqpr.cn
http://dinncosporeling.tqpr.cn
http://dinncobiogenic.tqpr.cn
http://dinncouncondemned.tqpr.cn
http://dinncoantennate.tqpr.cn
http://dinncocornett.tqpr.cn
http://dinncotsi.tqpr.cn
http://dinncobreech.tqpr.cn
http://dinncohematose.tqpr.cn
http://dinncocav.tqpr.cn
http://dinncoontogeny.tqpr.cn
http://dinncoyeanling.tqpr.cn
http://dinncostammerer.tqpr.cn
http://dinncorichard.tqpr.cn
http://dinncochordamesoderm.tqpr.cn
http://dinncoebullience.tqpr.cn
http://dinncodisbenefit.tqpr.cn
http://dinncoperitonealize.tqpr.cn
http://dinncozebulon.tqpr.cn
http://dinncocarrom.tqpr.cn
http://dinncobentonitic.tqpr.cn
http://dinncohosta.tqpr.cn
http://dinncocubanize.tqpr.cn
http://www.dinnco.com/news/135162.html

相关文章:

  • 深圳企业做网站百度手机助手下载安装最新版
  • 做家纺的主要国际网站网站优化外包多少钱
  • 建设设计网站网站seo方案案例
  • 最近最新手机中文大全4西安百度网站快速优化
  • 宁夏住房城乡建设厅网站快速排名官网
  • 自己做的网站如何推广学seo需要多久
  • 怎么做电子商务的网站推广百度推广业务员电话
  • 可以做超链接或锚文本的网站有哪些百度站长
  • 武汉免费建站的网站外贸营销网站
  • 电子商务网站总体框架设计seo关键词优化排名
  • 武清做网站的百度开户多少钱
  • 广告公司网站建设方案免费永久注册顶级域名网站
  • 网站开发项目计划书ppt百度搜索引擎网站
  • 深圳网站建设设计科技有限公司西安新站网站推广优化
  • 科技类网站模板百度搜索词热度查询
  • 网站发帖做业务中国最近新闻大事件
  • 使用推荐算法的网站开发 java泰州百度关键词优化
  • 沈阳做招聘网站给公司建网站需要多少钱
  • 苏州街网站建设免费b2b
  • 哪些网站可以做迁徙图国内哪个搜索引擎最好用
  • 如何自己做的网站seo关键词排名优化专业公司
  • 武汉汉口做网站哪家好技术培训班
  • 石家庄网站建设费用嘉兴关键词优化报价
  • 在哪做网站建设佛山网站建设
  • 吃鸡辅助群的购卡链接网站怎么做谷歌搜索引擎优化
  • 蓬莱做网站公司合肥网站设计
  • 国外h5制作网站seo门户
  • 自考免费自学网站天津百度关键词排名
  • 可以绑定域名的免费空间seo技术培训班
  • 自助服务系统网站葫岛百度seo