csharp: ODP.NET,System.Data.OracleClient(.net 4.0) and System.Data.OleDb读取Oracle g 11.2.0的区别...

ODP.NET:

引用:

using Oracle.DataAccess; //Oracle g 11.2.0
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
//下载 http://www.oracle.com/technetwork/topics/dotnet/downloads/net-downloads-160392.html
//引用:D:\app\geovindu\product\11.2.0\dbhome_1\ODP.NET\bin
//用法参考
//
//http://docs.oracle.com/cd/B28359_01/appdev.111/b28844/procedures_dot_net.htm
//http://docs.oracle.com/cd/B19306_01/win.102/b14307/OracleDataAdapterClass.htm //.net 4.0
//https://docs.oracle.com/cd/B19306_01/server.102/b14220/schema.htm

  数据库连接字符串:

 public string connectionString = @"DATA SOURCE=oracle11g;USER ID=geovin;password=geovindu;";

  

/// <summary>/// 20160918 涂聚文/// Geovin Du/// </summary>public class BookKindListDAL : IBookKindList{///<summary>/// 追加记录///</summary>///<param name="BookKindListInfo"></param>///<returns></returns>public int InsertBookKindList(BookKindListInfo bookKindList){int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("temTypeName",OracleDbType.NVarchar2,1000),new OracleParameter("temParent",OracleDbType.Int32,4),};par[0].Value = bookKindList.BookKindName;par[1].Value = bookKindList.BookKindParent;ret = OracleHelper.ExecuteSql("proc_Insert_BookKindList", CommandType.StoredProcedure, par);}catch (OracleException ex){throw ex;}return ret;}/// <summary>/// 追加记录返回/// </summary>/// <param name="authorList"></param>/// <param name="authorID"></param>/// <returns></returns>public int InsertBookKindOutput(BookKindListInfo bookKindList, out int bookKindLID){bookKindLID = 0;int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("temTypeName",OracleDbType.NVarchar2,1000),new OracleParameter("temParent",OracleDbType.Int32,4),new OracleParameter("temId",OracleDbType.Int32,4),};par[0].Value = bookKindList.BookKindName;par[1].Value = bookKindList.BookKindParent;par[2].Direction = ParameterDirection.Output;ret = OracleHelper.ExecuteSql("proc_Insert_BookKindOut", CommandType.StoredProcedure, par);if (ret > 0){bookKindLID =int.Parse(par[2].Value.ToString());}}catch (OracleException ex){throw ex;}return ret;}///<summary>///修改记录///</summary>///<param name="BookKindListInfo"></param>///<returns></returns>public int UpdateBookKindList(BookKindListInfo bookKindList){int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("BookKindID",OracleDbType.Int32,4),new OracleParameter("BookKindName",OracleDbType.NVarchar2,1000),new OracleParameter("BookKindParent",OracleDbType.Int32,4),};par[0].Value = bookKindList.BookKindID;par[1].Value = bookKindList.BookKindName;par[2].Value = bookKindList.BookKindParent;ret = OracleHelper.ExecuteSql("proc_Update_BookKindList", CommandType.StoredProcedure, par);}catch (OracleException ex){throw ex;}return ret;}///<summary>/// 删除记录///</summary>///<param name="bookKindIDInfo"></param>///<returns></returns>public bool DeleteBookKindList(int bookKindID){bool ret = false;try{OracleParameter par = new OracleParameter("BookKindID", bookKindID);int temp = 0;temp = OracleHelper.ExecuteSql("proc_Delete_BookKindList", CommandType.StoredProcedure, par);if (temp != 0){ret = true;}}catch (OracleException ex){throw ex;}return ret;}///<summary>/// 查询记录///</summary>///<param name="bookKindIDInfo"></param>///<returns></returns>public BookKindListInfo SelectBookKindList(int bookKindID){BookKindListInfo bookKindList = null;try{OracleParameter par = new OracleParameter("BookKindID", bookKindID);using (OracleDataReader reader = OracleHelper.GetReader("proc_Select_BookKindList", CommandType.StoredProcedure, par)){if (reader.Read()){bookKindList = new BookKindListInfo();bookKindList.BookKindID = (!object.Equals(reader["BookKindID"], null)) ? (int)reader["BookKindID"] : 0;bookKindList.BookKindName = (!object.Equals(reader["BookKindName"], null)) ? (string)reader["BookKindName"] : "";bookKindList.BookKindParent = (!object.Equals(reader["BookKindParent"], null)) ? (int)reader["BookKindParent"] : 0;}}}catch (OracleException ex){throw ex;}return bookKindList;}///<summary>/// 查询所有记录///</summary>///<returns></returns>public List<BookKindListInfo> SelectBookKindListAll(){List<BookKindListInfo> list = new List<BookKindListInfo>();BookKindListInfo bookKindList = null;try{using (OracleDataReader reader = OracleHelper.GetReader("proc_Select_BookKindListAll", CommandType.StoredProcedure, null)){while (reader.Read()){bookKindList = new BookKindListInfo();bookKindList.BookKindID = (!object.Equals(reader["BookKindID"], null)) ? (int)reader["BookKindID"] : 0;bookKindList.BookKindName = (!object.Equals(reader["BookKindName"], null)) ? (string)reader["BookKindName"] : "";bookKindList.BookKindParent = (!object.Equals(reader["BookKindParent"], null)) ? (int)reader["BookKindParent"] : 0;list.Add(bookKindList);}}}catch (OracleException ex){throw ex;}return list;}///<summary>/// 查询所有记录///</summary>///<returns></returns>public DataTable SelectBookKindListDataTableAll(){DataTable dt = new DataTable();try{using (DataTable reader = OracleHelper.GetTable("proc_Select_BookKindListAll", CommandType.StoredProcedure, null)){dt = reader;}}catch (OracleException ex){throw ex;}return dt;}}

  System.Data.OracleClient(.net 4.0)

引用:

using System.Collections;
using System.Data;
using System.Configuration;
using System.Data.OracleClient;//.net 4.0//用法参考
//https://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracledataadapter(v=vs.110).aspx
//http://blog.csdn.net/chinawn/article/details/336904
//C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.OracleClient.dll

  数据库连接字符串:

    public string connectionString = @"Data Source=(DESCRIPTION = (ADDRESS_LIST= (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = oracle11g)));user id=geovin;password=geovindu;Persist Security Info=True;";

  

/// <summary>/// 20160918 涂聚文/// Geovin Du/// </summary>public class BookKindListDAL : IBookKindList{///<summary>/// 追加记录///</summary>///<param name="BookKindListInfo"></param>///<returns></returns>public int InsertBookKindList(BookKindListInfo bookKindList){int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("temTypeName",OracleType.NVarChar,1000),new OracleParameter("temParent",OracleType.Number,4),};par[0].Value = bookKindList.BookKindName;par[1].Value = bookKindList.BookKindParent;ret = OracleHelper.ExecuteSql("proc_Insert_BookKindList", CommandType.StoredProcedure, par);}catch (OracleException ex){throw ex;}return ret;}/// <summary>/// 追加记录返回/// </summary>/// <param name="authorList"></param>/// <param name="authorID"></param>/// <returns></returns>public int InsertBookKindOutput(BookKindListInfo bookKindList, out int bookKindLID){bookKindLID = 0;int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("temTypeName",OracleType.NVarChar,1000),new OracleParameter("temParent",OracleType.Number,4),new OracleParameter("temId",OracleType.Number,4),};par[0].Value = bookKindList.BookKindName;par[1].Value = bookKindList.BookKindParent;par[2].Direction = ParameterDirection.Output;ret = OracleHelper.ExecuteSql("proc_Insert_BookKindOut", CommandType.StoredProcedure, par);if (ret > 0){bookKindLID =int.Parse(par[2].Value.ToString());}}catch (OracleException ex){throw ex;}return ret;}///<summary>///修改记录///</summary>///<param name="BookKindListInfo"></param>///<returns></returns>public int UpdateBookKindList(BookKindListInfo bookKindList){int ret = 0;try{OracleParameter[] par = new OracleParameter[]{new OracleParameter("BookKindID",OracleType.Number,4),new OracleParameter("BookKindName",OracleType.NVarChar,1000),new OracleParameter("BookKindParent",OracleType.Number,4),};par[0].Value = bookKindList.BookKindID;par[1].Value = bookKindList.BookKindName;par[2].Value = bookKindList.BookKindParent;ret = OracleHelper.ExecuteSql("proc_Update_BookKindList", CommandType.StoredProcedure, par);}catch (OracleException ex){throw ex;}return ret;}///<summary>/// 删除记录///</summary>///<param name="bookKindIDInfo"></param>///<returns></returns>public bool DeleteBookKindList(int bookKindID){bool ret = false;try{OracleParameter par = new OracleParameter("BookKindID", bookKindID);int temp = 0;temp = OracleHelper.ExecuteSql("proc_Delete_BookKindList", CommandType.StoredProcedure, par);if (temp != 0){ret = true;}}catch (OracleException ex){throw ex;}return ret;}///<summary>/// 查询记录///</summary>///<param name="bookKindIDInfo"></param>///<returns></returns>public BookKindListInfo SelectBookKindList(int bookKindID){BookKindListInfo bookKindList = null;try{OracleParameter par = new OracleParameter("BookKindID", bookKindID);using (OracleDataReader reader = OracleHelper.GetReader("proc_Select_BookKindList", CommandType.StoredProcedure, par)){if (reader.Read()){bookKindList = new BookKindListInfo();bookKindList.BookKindID = (!object.Equals(reader["BookKindID"], null)) ? (int)reader["BookKindID"] : 0;bookKindList.BookKindName = (!object.Equals(reader["BookKindName"], null)) ? (string)reader["BookKindName"] : "";bookKindList.BookKindParent = (!object.Equals(reader["BookKindParent"], null)) ? (int)reader["BookKindParent"] : 0;}}}catch (OracleException ex){throw ex;}return bookKindList;}///<summary>/// 查询所有记录///</summary>///<returns></returns>public List<BookKindListInfo> SelectBookKindListAll(){List<BookKindListInfo> list = new List<BookKindListInfo>();BookKindListInfo bookKindList = null;try{using (OracleDataReader reader = OracleHelper.GetReader("proc_Select_BookKindListAll", CommandType.StoredProcedure, null)){while (reader.Read()){bookKindList = new BookKindListInfo();bookKindList.BookKindID = (!object.Equals(reader["BookKindID"], null)) ? (int)reader["BookKindID"] : 0;bookKindList.BookKindName = (!object.Equals(reader["BookKindName"], null)) ? (string)reader["BookKindName"] : "";bookKindList.BookKindParent = (!object.Equals(reader["BookKindParent"], null)) ? (int)reader["BookKindParent"] : 0;list.Add(bookKindList);}}}catch (OracleException ex){throw ex;}return list;}///<summary>/// 查询所有记录///</summary>///<returns></returns>public DataTable SelectBookKindListDataTableAll(){DataTable dt = new DataTable();try{using (DataTable reader = OracleHelper.GetTable("proc_Select_BookKindListAll", CommandType.StoredProcedure, null)){dt = reader;}}catch (OracleException ex){throw ex;}return dt;}}

  System.Data.OleDb

 string connString = "Provider=OraOLEDB.Oracle.1;User ID=geovin;Password=geovindu;Data Source=(DESCRIPTION = (ADDRESS_LIST= (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = oracle11g)))";OleDbConnection conn = new OleDbConnection(connString);try{conn.Open();MessageBox.Show(conn.State.ToString());DataTable dt = conn.GetSchema(this.comboBox1.Text.Trim());this.dataGridView1.DataSource = dt;this.textBox1.Text = GetColumnNames(dt);}catch (Exception ex){MessageBox.Show(ex.Message.ToString());}finally{conn.Close();}

  oracle package sql:

/**创建一个名为pkgBookKinds的包查所表中所有内容**/
create or replace package pkg_BookKinds is
--定义一个公有的游标类型cursor_pdt
--ref 可以在程序间传递结果集
--一个程序里打开游标变量,在另外的程序里处理数据
type cursor_pdt is ref cursor;
--声明一个存储过程 ,游标类型参数为输出类型
procedure proc_GetAllBookKind(cur_set out cursor_pdt);
end pkg_BookKinds;/**创建一个包体**/
create or replace package body pkg_BookKinds is--实现包中没有实现的存储过程procedure proc_GetAllBookKind(cur_set out cursor_pdt) asbegin --打开游标,由于定义游标时使用ref处理游标可以推迟到客户端open cur_set for select * from BookKindList;end;
end;/**使用过程测试定义的存储过程**/
declare
--定义游标类型的变量
cur_set pkg_BookKinds.cursor_pdt;
--定义行类型
pdtrow BookKindList%rowtype;
begin--执行存储过程pkg_BookKinds.proc_GetAllBookKind(cur_set);--遍历游标中的数据LOOP--取当前行数据存入pdtrowFETCH cur_set INTO pdtrow;--如果未获取数据就结束循环EXIT WHEN cur_set%NOTFOUND;--输出获取到的数据DBMS_OUTPUT.PUT_LINE (pdtrow.BookKindID||','||pdtrow.BookKindName);END LOOP;CLOSE cur_set;end;

 

--创建包以游标的形式返回BookKindList的结果集
create or replace package pkg_BookKindList is
-- Author  : geovindutype mycur is ref cursor;  procedure fun_GetRecords(cur_return out mycur);
end pkg_BookKindList;create or replace package body pkg_BookKindList is-- Function and procedure implementationsprocedure fun_GetRecords(cur_return out mycur)is    beginopen cur_return for select * from BookKindList;end fun_GetRecords;end pkg_BookKindList;declare 
--定义游标类型的变量
cur_return pkg_BookKindList.mycur;
--定义行类型
pdtrow BookKindList%rowtype;
begin--执行存储过程pkg_BookKindList.fun_GetRecords(cur_return);--遍历游标中的数据LOOP--取当前行数据存入pdtrowFETCH cur_return INTO pdtrow;--如果未获取数据就结束循环EXIT WHEN cur_return%NOTFOUND;--输出获取到的数据DBMS_OUTPUT.PUT_LINE (pdtrow.BookKindID||','||pdtrow.BookKindName);END LOOP;CLOSE cur_return;
end;

  

 

 C# 3.5 调用查询:

 /// <summary>/// /// </summary>/// <param name="sender"></param>/// <param name="e"></param>private void Form3_Load(object sender, EventArgs e){BindGridView();}/// <summary>/// /// </summary>private void BindGridView(){OracleConnection conn = new OracleConnection(connectionString);//ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionStringOracleCommand comm = new OracleCommand("pkg_BookKindList.fun_GetRecords", conn);comm.Parameters.Add("cur_return", OracleType.Cursor).Direction = ParameterDirection.Output;comm.CommandType = CommandType.StoredProcedure;DataSet ds = new DataSet();using (OracleDataAdapter da = new OracleDataAdapter(comm)){da.Fill(ds);}this.dataGridView1.DataSource = ds.Tables[0].DefaultView;}

  

 /// <summary>/// /// </summary>private void BindGridViewOther(){OracleConnection conn = new OracleConnection(connectionString);//ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionStringOracleCommand comm = new OracleCommand("pkg_BookKindList.fun_GetRecords", conn);comm.CommandType = CommandType.StoredProcedure;//定义参数,注意参数名必须与存储过程定义时一致,且类型为OracleType.CursorOracleParameter cur_set = new OracleParameter("cur_return", OracleType.Cursor);//设置参数为输出类型cur_set.Direction = ParameterDirection.Output;           //添加参数comm.Parameters.Add(cur_set);DataSet ds = new DataSet();using (OracleDataAdapter da = new OracleDataAdapter(comm)){da.Fill(ds);}this.dataGridView1.DataSource = ds.Tables[0].DefaultView;}

  

Oracle sql:

---某条记录的字段
drop PROCEDURE proc_Select_BookKindName;CREATE OR REPLACE PROCEDURE proc_Select_BookKindName(kind_id IN BookKindList.BookKindID%type) AS--声明语句段v_name varchar2(20);
BEGIN--执行语句段SELECT o.BookKindName INTO v_name FROM BookKindList o where o.BookKindID=kind_id;dbms_output.put_line(v_name);
EXCEPTION--异常处理语句段WHEN NO_DATA_FOUND THEN dbms_output.put_line('NO_DATA_FOUND');
END;--测试
begin
proc_Select_BookKindName(1);
end;---一条记录
--创建包:
create or replace package pack_BookKindId is type cur_BookKindId is ref cursor;  
end pack_BookKindId; 
--创建存储过程
create or replace procedure proc_curBookKindId(p_id in number,p_cur out pack_BookKindId.cur_BookKindId) 
is   v_sql varchar2(400);
begin  if p_id = 0 then   open p_cur for select * from BookKindList; else   v_sql := 'select * from BookKindList where BookKindID =: p_id';  open p_cur for v_sql using p_id;   end if;  
end proc_curBookKindId;--测试查询一条记录存储过程
-- Test statements here  
set serveroutput on
declare   v_id number := 1; --0 时,所有记录 v_row BookKindList%rowtype;   --注意这里是表名p_cur pack_BookKindId.cur_BookKindId;
begin   proc_curBookKindId(v_id, p_cur);  loop  fetch p_cur into v_row;  exit when p_cur%notfound;  DBMS_OUTPUT.PUT_LINE(v_row.BookKindName||'='||v_row.BookKindID);  end loop;  close p_cur;  
end; 

  

ODP.NET:

  ///<summary>/// 查询所有记录///</summary>///<returns></returns>public List<BookKindListInfo> SelectBookKindListAll(){List<BookKindListInfo> list = new List<BookKindListInfo>();BookKindListInfo bookKindList = null;try{//定义参数,注意参数名必须与存储过程定义时一致,且类型为OracleType.CursorOracleParameter cur_set = new OracleParameter("cur_return", OracleDbType.RefCursor);//设置参数为输出类型cur_set.Direction = ParameterDirection.Output;//OracleHelper.ExecuteReader(connectionString, CommandType.StoredProcedure, "pkg_Select_BookKindListAll.proc_Select_BookKindListAll", cur_set)using (OracleDataReader reader = OracleHelper.GetReader("pkg_Select_BookKindListAll.proc_Select_BookKindListAll", CommandType.StoredProcedure, cur_set)){while (reader.Read()){bookKindList = new BookKindListInfo();string s = reader["BookKindID"].ToString();bookKindList.BookKindID = (!object.Equals(reader["BookKindID"], null)) ? (decimal)reader["BookKindID"] : 0;bookKindList.BookKindName = (!object.Equals(reader["BookKindName"], null)) ? (string)reader["BookKindName"] : "";bookKindList.BookKindParent = (!object.Equals(reader["BookKindParent"], null)) ? (decimal)reader["BookKindParent"] : 0;list.Add(bookKindList);}}}catch (OracleException ex){throw ex;}return list;}///<summary>/// 查询所有记录///</summary>///<returns></returns>public DataTable SelectBookKindListDataTableAll(){DataTable dt = new DataTable();try{//定义参数,注意参数名必须与存储过程定义时一致,且类型为OracleType.CursorOracleParameter cur_set = new OracleParameter("cur_return", OracleDbType.RefCursor);//设置参数为输出类型cur_set.Direction = ParameterDirection.Output;//添加参数//comm.Parameters.Add(cur_set);using (DataTable reader = OracleHelper.GetTable("pkg_Select_BookKindListAll.proc_Select_BookKindListAll", CommandType.StoredProcedure, cur_set)){dt = reader;}}catch (OracleException ex){throw ex;}return dt;}

  

转载于:https://www.cnblogs.com/geovindu/p/5881963.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/361955.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Java 9幕后花絮:新功能从何而来?

找出Java幕后发生的事情&#xff0c;以及新功能如何实现 在上一篇文章中&#xff0c;我们介绍了即将发布的Java 9版本的新功能和尚待解决的功能&#xff0c;并简要提到了将新功能添加到下一个版本之前要经历的过程。 由于此过程几乎影响了所有Java开发人员&#xff0c;但大多数…

sudo apt-get install libstdc++6

sudo apt-get install libstdc6 yum install libncurses.so.5 sudo apt-get install libncurses.so.5 sudo apt-get install lib32ncurses5 apt-get update把源更新一下 使用gdb时的指令 (gbd) info line *0x08xxxx sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.…

AngularJS快速入门指南03:表达式

AngularJS通过表达式将数据绑定到HTML。 AngularJS表达式 AngularJS表达式写在双大括号中&#xff1a;{{ 表达式语句 }}。 AngularJS表达式绑定数据到HTML的方式与ng-bind指令的方式相同。 AngularJS会准确地将表达式“输出”为计算的结果。 AngularJS表达式与JavaScript表达式…

零基础快速上手HarmonyOS ArkTS开发2---ArkTS开发实践

ArkTS开发实践&#xff1a; 接着上一次零基础快速上手HarmonyOS ArkTS开发1---运行Hello World、ArkTS开发语言介绍继续&#xff0c; 在上一次对于ArkTS的基础知识进行了学习&#xff0c;依照官方的课程计划&#xff0c;还有两个具体的小案例需要来实践实践&#xff1a; 实践出…

八、VueJs 填坑日记之参数传递及内容页面的开发

我们在上一篇博文中&#xff0c;渲染出来了一个列表&#xff0c;并在列表中使用了router-link标签&#xff0c;标签内的&#xff1a;to就是链接地址&#xff0c;昨天咱们是<router-link :to"/content/ i.id">这样写的&#xff0c;今天我们来完成内容页面的渲染…

为Kindeditor控件添加图片自动上传功能

Kindeditor是一款功能强大的开源在线HTML编辑器&#xff0c;支持所见即所得的编辑效果。它使用JavaScript编写&#xff0c;可以无缝地与多个不同的语言环境进行集成&#xff0c;如.NET、PHP、ASP、Java等。官方网站可以查看这里&#xff1a;http://kindeditor.net/index.php Ki…

4个万无一失的技巧让您开始使用JBoss BRMS 6.0.3

上周&#xff0c;红帽发布了标记为6.0.3的JBoss BRMS的下一版本&#xff0c;已订阅的用户可以在其客户门户中使用。 如果您对该版本的新增功能感到好奇&#xff0c;请在客户门户网站上在线查看版本说明和其余文档 。 我们正在寻找一些简单的方法来开始使用此新版本&#xff0…

带有Angular JS的Java EE 7 – CRUD,REST,验证–第2部分

这是Angular JS承诺的Java EE 7的后续版本–第1部分 。 花了比我预期更长的时间&#xff08;找到时间来准备代码和博客文章&#xff09;&#xff0c;但是终于到了&#xff01; 应用程序 第1部分中的原始应用程序只是带有分页的简单列表&#xff0c;以及提供列表数据的REST服务…

Chrome不显示OPTIONS请求的解决方法2021版chrome90

在chrome90上之前展示跨域请求预检请求的方法失效了&#xff1a; 在chrome地址栏总输入 chrome://flags/#out-of-blink-cors 将其设置为Disabled后重启浏览器 在chrome://flags找不到选项out-of-blink-cors。取而代之的是chrome将预检请求放到了控制台网络面板的 OTHER 面板中。…

SVG实现波浪效果

SVG实现波浪效果 svg path&#xff1a;C 贝塞尔曲线绘制波浪形状 A 绘制圆弧形 svg animate&#xff1a;制作波浪动画&#xff0c;为了波浪动画效果自然&#xff0c;设置values关键点       attributeName&#xff1a;变化属性名 dur&#xff1a;动画时间 repeatCount&a…

使用WildFly 8在Java EE7中自举Apache Camel

从Camel版本2.10开始&#xff0c;支持CDI&#xff08;JSR-299&#xff09;和DI&#xff08;JSR-330&#xff09;。 这为在Java EE容器中以及独立Java SE或CDI容器中开发和部署Apache Camel项目提供了新的机会。 是时候尝试一下并熟悉它了。 骆驼到底是什么&#xff1f; 骆驼是…

好东西要分享

目录 矢量图标库$\text{pic}$图论神器$\text{bzoj}$离线题库打字速度表情包PPP矢量图标库 个人jio的这个阿里巴巴矢量图标库蛮不错的 上面这张就是去上面的网站找的。 $\text{pic}$ 来wallpaper abyss找点好康的图片吧。 图论神器 画图 $\text{bzoj}$离线题库 $\text{bzoj}$离线…

Vue2.0 全家桶开发的网页应用(参照吾记APP)

github链接 借鉴吾记APP&#xff0c;使用 vue2.0 vue-router vuex 为主要技术栈&#xff0c;elementui做为ui框架&#xff0c;多模块 spa 模式&#xff0c;webpack2.0 负责模块打包&#xff0c;gulp 负责处理静态资源打包、压缩&#xff0c;欢迎打赏star&#xff01;&#xff…

Java EE 7批处理和魔兽世界–第1部分

这是我在上一个JavaOne上的会议之一。 这篇文章将扩展主题并使用Batch JSR-352 API进入一个实际的应用程序。 此应用程序与MMORPG 魔兽世界集成。 由于JSR-352是Java EE世界中的新规范&#xff0c;所以我认为许多人不知道如何正确使用它。 确定本规范适用的用例也可能是一个挑…

学习笔记-AngularJs(十)

前面一直在说自定义指令&#xff0c;但是却一直没有一次系统地去了解&#xff0c;现在需要我们一起来学习如何去使用自定义指令&#xff0c;去丰富html标签、属性&#xff0c;实现多元化、多功能的标签&#xff08;或是属性&#xff09;。辣么&#xff0c;啥是指令&#xff1f;…

WildFly 9 –别希望您的控制台像这样!

每个人都可能听到这个消息。 周一发布了第一个WildFly 9.0.0.Alpha1版本。 您可以从wildfly.org网站上下载它&#xff0c;最大的变化是它是由一个新的功能配置工具构建的&#xff0c;该工具位于现在单独的核心发行版中&#xff0c;并且还包含一个新的Servlet发行版 &#xff08…

磁盘性能 -- IOPS 和 吞吐量 说明

一. Wikepedia上有关IOPS 的说明链接如下&#xff1a;http://en.wikipedia.org/wiki/IOPSIOPS (Input/Output OperationsPer Second, pronounced i-ops) is a common performance measurement used to benchmark computer storage devices like harddisk drives (HDD), solid s…

3使用Jsoup解析Java中HTML文件的示例

HTML是Web的核心&#xff0c;无论您是通过JavaScript&#xff0c;JSP&#xff0c;PHP&#xff0c;ASP还是任何其他Web技术动态生成的&#xff0c;您在Internet上看到的所有页面都是基于HTML的。 您的浏览器实际上是解析HTML并为您呈现。 但是&#xff0c;如果需要解析HTML文档并…

径向菜单的制作

最终效果&#xff1a; 在径向菜单的制作前&#xff0c;首先需要知道几点知识点&#xff1a; Math.sin(x) x 的正玄值。返回值在 -1.0 到 1.0 之间&#xff1b; Math.cos(x) x 的余弦值。返回的是 -1.0 到 1.0 之间的数&#xff1b; 这两个函数中的X 都是指的“弧度”…

OptaPlanner –具有真实道路距离的车辆路线

在现实世界中&#xff0c;车辆路径问题&#xff08;VRP&#xff09;中的车辆必须走这条路&#xff1a;它们不能在客户之间直线行驶。 大多数VRP研究论文和演示都乐于忽略此实现细节。 和我一样&#xff0c;过去。 尽管使用道路距离&#xff08;而不是空中距离&#xff09;不会对…