注: C#已亲测及做扩展, Java 部分未做验证

/// <summary>
/// 3DES加密解密
/// -----------------------------------------------------------
/// 说明:
/// 转载自网上http://bbs.csdn.net/topics/350158619
/// 并加以扩展
/// 修正:
/// 1. 修改正解密后出现 '\0'
/// 注: 1. 向量不能小于8位
/// 2. 明文末尾如果是带'\0'字符,则会一起去掉
/// -----------------------------------------------------------
/// 扩展人:Wuyf    11222337#qq.com
/// 日 期:2014-11-29
/// </summary>

C# 代码

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web; namespace WuFrame.Tool
{
/// <summary>
/// 3DES 加密解密
/// -----------------------------------------------------------
/// 说明:
/// 转载自网上http://bbs.csdn.net/topics/350158619
/// 并加以扩展
/// 修正:
/// 1. 修改正解密后出现 '\0'
/// 注: 1. Key必须为24位
/// 2. 向量不能小于8位
/// 3. 明文末尾如果是带'\0'字符,则会一起去掉
/// -----------------------------------------------------------
/// 扩展人:Wuyf 11222337#qq.com
/// 日 期:2014-11-29
/// </summary>
public class Des3Tool
{
#region CBC模式** #region 扩展方法 /// <summary>
/// 3DES 加密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <param name="isRetBase64">true:返回base64,false:返回Utf8</param>
/// <returns></returns>
public static string Des3EncodeCBC(string key, string iv, string data)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv);
byte[] dataArr = Encoding.UTF8.GetBytes(data); rtnValue = Des3EncodeCBC(keyArr, ivArr, dataArr); rtnResult = Convert.ToBase64String(rtnValue); return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeCBC(string key, string iv, string dataEnBase64)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv);
byte[] dataArr = Convert.FromBase64String(dataEnBase64); rtnValue = Des3DecodeCBC(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeCBC(string key, string iv, byte[] dataArr)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv); rtnValue = Des3DecodeCBC(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
} #endregion #region 原加解密方法 /// <summary>
/// DES3 CBC模式加密
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">IV</param>
/// <param name="data">明文的byte数组</param>
/// <returns>密文的byte数组</returns>
public static byte[] Des3EncodeCBC(byte[] key, byte[] iv, byte[] data)
{
//复制于MSDN try
{
// Create a MemoryStream.
MemoryStream mStream = new MemoryStream(); TripleDESCryptoServiceProvider tdsp = new TripleDESCryptoServiceProvider();
tdsp.Mode = CipherMode.CBC; //默认值
tdsp.Padding = PaddingMode.PKCS7; //默认值 // Create a CryptoStream using the MemoryStream
// and the passed key and initialization vector (IV).
CryptoStream cStream = new CryptoStream(mStream,
tdsp.CreateEncryptor(key, iv),
CryptoStreamMode.Write); // Write the byte array to the crypto stream and flush it.
cStream.Write(data, , data.Length);
cStream.FlushFinalBlock(); // Get an array of bytes from the
// MemoryStream that holds the
// encrypted data.
byte[] ret = mStream.ToArray(); // Close the streams.
cStream.Close();
mStream.Close(); // Return the encrypted buffer.
return ret;
}
catch (CryptographicException e)
{
Console.WriteLine("A Cryptographic error occurred: {0}", e.Message);
return null;
}
} /// <summary>
/// DES3 CBC模式解密
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">IV</param>
/// <param name="data">密文的byte数组</param>
/// <returns>明文的byte数组</returns>
public static byte[] Des3DecodeCBC(byte[] key, byte[] iv, byte[] data)
{
try
{
// Create a new MemoryStream using the passed
// array of encrypted data.
MemoryStream msDecrypt = new MemoryStream(data); TripleDESCryptoServiceProvider tdsp = new TripleDESCryptoServiceProvider();
tdsp.Mode = CipherMode.CBC;
tdsp.Padding = PaddingMode.PKCS7; // Create a CryptoStream using the MemoryStream
// and the passed key and initialization vector (IV).
CryptoStream csDecrypt = new CryptoStream(msDecrypt,
tdsp.CreateDecryptor(key, iv),
CryptoStreamMode.Read); // Create buffer to hold the decrypted data.
byte[] fromEncrypt = new byte[data.Length]; // Read the decrypted data out of the crypto stream
// and place it into the temporary buffer.
csDecrypt.Read(fromEncrypt, , fromEncrypt.Length); //Convert the buffer into a string and return it.
return fromEncrypt;
}
catch (CryptographicException e)
{
Console.WriteLine("A Cryptographic error occurred: {0}", e.Message);
return null;
}
} #endregion #endregion #region ECB模式 #region 不提供Iv(扩展方法) private static string ivDefault = ""; /// <summary>
/// 3DES 加密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <param name="isRetBase64">true:返回base64,false:返回Utf8</param>
/// <returns></returns>
public static string Des3EncodeECB(string key, string data)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(ivDefault);
byte[] dataArr = Encoding.UTF8.GetBytes(data); rtnValue = Des3EncodeCBC(keyArr, ivArr, dataArr); rtnResult = Convert.ToBase64String(rtnValue); return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeECB(string key, string dataEnBase64)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(ivDefault);
byte[] dataArr = Convert.FromBase64String(dataEnBase64); rtnValue = Des3DecodeCBC(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeECB(string key, byte[] dataArr)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(ivDefault); rtnValue = Des3DecodeECB(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
}
#endregion #region 提供Iv(扩展方法) /// <summary>
/// 3DES 加密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <param name="isRetBase64">true:返回base64,false:返回Utf8</param>
/// <returns></returns>
public static string Des3EncodeECB(string key, string iv, string data)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv);
byte[] dataArr = Encoding.UTF8.GetBytes(data); rtnValue = Des3EncodeCBC(keyArr, ivArr, dataArr); rtnResult = Convert.ToBase64String(rtnValue); return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeECB(string key, string iv, string dataEnBase64)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv);
byte[] dataArr = Convert.FromBase64String(dataEnBase64); rtnValue = Des3DecodeCBC(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
} /// <summary>
/// 3DES 解密(字符串参数和返回值)
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">向量</param>
/// <param name="data">明文</param>
/// <returns></returns>
public static string Des3DecodeECB(string key, string iv, byte[] dataArr)
{
string rtnResult = string.Empty;
byte[] rtnValue = null;
byte[] keyArr = Encoding.UTF8.GetBytes(key);
byte[] ivArr = Encoding.UTF8.GetBytes(iv); rtnValue = Des3DecodeECB(keyArr, ivArr, dataArr); rtnResult = Encoding.UTF8.GetString(rtnValue).TrimEnd('\0'); // 去除多余空字符 return rtnResult;
} #endregion #region 原加解密方法 /// <summary>
/// DES3 ECB模式加密
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">IV(当模式为ECB时,IV无用)</param>
/// <param name="str">明文的byte数组</param>
/// <returns>密文的byte数组</returns>
public static byte[] Des3EncodeECB(byte[] key, byte[] iv, byte[] data)
{
try
{
// Create a MemoryStream.
MemoryStream mStream = new MemoryStream(); TripleDESCryptoServiceProvider tdsp = new TripleDESCryptoServiceProvider();
tdsp.Mode = CipherMode.ECB;
tdsp.Padding = PaddingMode.PKCS7;
// Create a CryptoStream using the MemoryStream
// and the passed key and initialization vector (IV).
CryptoStream cStream = new CryptoStream(mStream,
tdsp.CreateEncryptor(key, iv),
CryptoStreamMode.Write); // Write the byte array to the crypto stream and flush it.
cStream.Write(data, , data.Length);
cStream.FlushFinalBlock(); // Get an array of bytes from the
// MemoryStream that holds the
// encrypted data.
byte[] ret = mStream.ToArray(); // Close the streams.
cStream.Close();
mStream.Close(); // Return the encrypted buffer.
return ret;
}
catch (CryptographicException e)
{
Console.WriteLine("A Cryptographic error occurred: {0}", e.Message);
return null;
} } /// <summary>
/// DES3 ECB模式解密
/// </summary>
/// <param name="key">密钥</param>
/// <param name="iv">IV(当模式为ECB时,IV无用)</param>
/// <param name="str">密文的byte数组</param>
/// <returns>明文的byte数组</returns>
public static byte[] Des3DecodeECB(byte[] key, byte[] iv, byte[] data)
{
try
{
// Create a new MemoryStream using the passed
// array of encrypted data.
MemoryStream msDecrypt = new MemoryStream(data); TripleDESCryptoServiceProvider tdsp = new TripleDESCryptoServiceProvider();
tdsp.Mode = CipherMode.ECB;
tdsp.Padding = PaddingMode.PKCS7; // Create a CryptoStream using the MemoryStream
// and the passed key and initialization vector (IV).
CryptoStream csDecrypt = new CryptoStream(msDecrypt,
tdsp.CreateDecryptor(key, iv),
CryptoStreamMode.Read); // Create buffer to hold the decrypted data.
byte[] fromEncrypt = new byte[data.Length]; // Read the decrypted data out of the crypto stream
// and place it into the temporary buffer.
csDecrypt.Read(fromEncrypt, , fromEncrypt.Length); //Convert the buffer into a string and return it.
return fromEncrypt;
}
catch (CryptographicException e)
{
Console.WriteLine("A Cryptographic error occurred: {0}", e.Message);
return null;
}
} #endregion #endregion /// <summary>
/// 类测试
/// </summary>
public static void Test()
{
System.Text.Encoding utf8 = System.Text.Encoding.UTF8; // 扩展方法测试
string keyExt = "abcdefghijklmnopqrstuvwx";
string ivExt = "";
string dataExt = "吴@#@\0\n"; // CBC 模式
string tmpEnCBC = Des3Tool.Des3EncodeCBC(keyExt, ivExt, dataExt); // 返回 base64
string tmpDeCBC = Des3Tool.Des3DecodeCBC(keyExt, ivExt, tmpEnCBC); // 返回 utf8格式字符串 System.Console.WriteLine(tmpEnCBC);
System.Console.WriteLine(tmpDeCBC); System.Console.WriteLine(); // ECB 带 iv
string tmpEnECB = Des3Tool.Des3EncodeECB(keyExt, ivExt, dataExt); // 返回 base64
string tmpDeECB = Des3Tool.Des3DecodeECB(keyExt, ivExt, tmpEnECB); // 返回 utf8格式字符串 System.Console.WriteLine(tmpEnECB);
System.Console.WriteLine(tmpDeECB); System.Console.WriteLine(); // ECB 不带 iv
string tmpEnECBNoIv = Des3Tool.Des3EncodeECB(keyExt, dataExt); // 返回 base64
string tmpDeECBNoIv = Des3Tool.Des3DecodeECB(keyExt, tmpEnECBNoIv); // 返回 utf8格式字符串 System.Console.WriteLine(tmpEnECBNoIv);
System.Console.WriteLine(tmpDeECBNoIv); System.Console.WriteLine(); //key为abcdefghijklmnopqrstuvwx的Base64编码
byte[] key = Convert.FromBase64String("YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4");
byte[] iv = new byte[] { , , , , , , , }; //当模式为ECB时,IV无用
byte[] data = utf8.GetBytes("中国ABCabc123"); System.Console.WriteLine("ECB模式:");
byte[] str1 = Des3Tool.Des3EncodeECB(key, iv, data);
byte[] str2 = Des3Tool.Des3DecodeECB(key, iv, str1);
System.Console.WriteLine(Convert.ToBase64String(str1));
System.Console.WriteLine(System.Text.Encoding.UTF8.GetString(str2)); System.Console.WriteLine(); System.Console.WriteLine("CBC模式:");
byte[] str3 = Des3Tool.Des3EncodeCBC(key, iv, data);
byte[] str4 = Des3Tool.Des3DecodeCBC(key, iv, str3);
System.Console.WriteLine(Convert.ToBase64String(str3));
System.Console.WriteLine(utf8.GetString(str4)); System.Console.WriteLine(); } }
}

Java 代码

import java.security.Key;

import javax.crypto.Cipher;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;
import javax.crypto.spec.IvParameterSpec; import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder; public class Des3 {
public static void main(String[] args) throws Exception { byte[] key=new BASE64Decoder().decodeBuffer("YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4");
byte[] keyiv = { 1, 2, 3, 4, 5, 6, 7, 8 }; byte[] data="中国ABCabc123".getBytes("UTF-8"); System.out.println("ECB加密解密");
byte[] str3 = des3EncodeECB(key,data );
byte[] str4 = ees3DecodeECB(key, str3);
System.out.println(new BASE64Encoder().encode(str3));
System.out.println(new String(str4, "UTF-8")); System.out.println(); System.out.println("CBC加密解密");
byte[] str5 = des3EncodeCBC(key, keyiv, data);
byte[] str6 = des3DecodeCBC(key, keyiv, str5);
System.out.println(new BASE64Encoder().encode(str5));
System.out.println(new String(str6, "UTF-8")); } /**
* ECB加密,不要IV
* @param key 密钥
* @param data 明文
* @return Base64编码的密文
* @throws Exception
*/
public static byte[] des3EncodeECB(byte[] key, byte[] data)
throws Exception { Key deskey = null;
DESedeKeySpec spec = new DESedeKeySpec(key);
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
deskey = keyfactory.generateSecret(spec); Cipher cipher = Cipher.getInstance("desede" + "/ECB/PKCS5Padding"); cipher.init(Cipher.ENCRYPT_MODE, deskey);
byte[] bOut = cipher.doFinal(data); return bOut;
} /**
* ECB解密,不要IV
* @param key 密钥
* @param data Base64编码的密文
* @return 明文
* @throws Exception
*/
public static byte[] ees3DecodeECB(byte[] key, byte[] data)
throws Exception { Key deskey = null;
DESedeKeySpec spec = new DESedeKeySpec(key);
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
deskey = keyfactory.generateSecret(spec); Cipher cipher = Cipher.getInstance("desede" + "/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, deskey); byte[] bOut = cipher.doFinal(data); return bOut; } /**
* CBC加密
* @param key 密钥
* @param keyiv IV
* @param data 明文
* @return Base64编码的密文
* @throws Exception
*/
public static byte[] des3EncodeCBC(byte[] key, byte[] keyiv, byte[] data)
throws Exception { Key deskey = null;
DESedeKeySpec spec = new DESedeKeySpec(key);
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
deskey = keyfactory.generateSecret(spec); Cipher cipher = Cipher.getInstance("desede" + "/CBC/PKCS5Padding");
IvParameterSpec ips = new IvParameterSpec(keyiv);
cipher.init(Cipher.ENCRYPT_MODE, deskey, ips);
byte[] bOut = cipher.doFinal(data); return bOut;
} /**
* CBC解密
* @param key 密钥
* @param keyiv IV
* @param data Base64编码的密文
* @return 明文
* @throws Exception
*/
public static byte[] des3DecodeCBC(byte[] key, byte[] keyiv, byte[] data)
throws Exception { Key deskey = null;
DESedeKeySpec spec = new DESedeKeySpec(key);
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
deskey = keyfactory.generateSecret(spec); Cipher cipher = Cipher.getInstance("desede" + "/CBC/PKCS5Padding");
IvParameterSpec ips = new IvParameterSpec(keyiv); cipher.init(Cipher.DECRYPT_MODE, deskey, ips); byte[] bOut = cipher.doFinal(data); return bOut; } }

C# Java 3DES加密解密 扩展及修正\0 问题的更多相关文章

  1. 【推荐】JAVA基础◆浅谈3DES加密解密

    国内私募机构九鼎控股打造APP,来就送 20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送)国内私 ...

  2. iOS 3DES加密解密(一行代码搞定)

    3DES(或称为Triple DES)是三重数据加密算法(TDEA,Triple Data Encryption Algorithm)块密码的通称.它相当于是对每个数据块应用三次DES加密算法.由于计 ...

  3. 简进祥==iOS 3DES加密解密

    3DES(或称为Triple DES)是三重数据加密算法(TDEA,Triple Data Encryption Algorithm)块密码的通称.它相当于是对每个数据块应用三次DES加密算法.由于计 ...

  4. 你真的了解字典(Dictionary)吗? C# Memory Cache 踩坑记录 .net 泛型 结构化CSS设计思维 WinForm POST上传与后台接收 高效实用的.NET开源项目 .net 笔试面试总结(3) .net 笔试面试总结(2) 依赖注入 C# RSA 加密 C#与Java AES 加密解密

    你真的了解字典(Dictionary)吗?   从一道亲身经历的面试题说起 半年前,我参加我现在所在公司的面试,面试官给了一道题,说有一个Y形的链表,知道起始节点,找出交叉节点.为了便于描述,我把上面 ...

  5. 3DES加密解密

    C#3DES加密解密,JAVA.PHP可用 using System; using System.Security.Cryptography; using System.Text; namespace ...

  6. C# 实现 JAVA AES加密解密[原创]

    以下是网上普遍能收到的JAVA AES加密解密方法. 因为里面用到了KeyGenerator 和 SecureRandom,但是.NET 里面没有这2个类.无法使用安全随机数生成KEY. 我们在接收J ...

  7. C#与Java同步加密解密DES算法

    在实际项目中,往往前端和后端使用不同的语言.比如使用C#开发客户端,使用Java开发服务器端.有时出于安全性考虑需要将字符加密传输后,由服务器解密获取.本文介绍一种采用DES算法的C#与Java同步加 ...

  8. 【转】 java RSA加密解密实现

    [转] java RSA加密解密实现 该工具类中用到了BASE64,需要借助第三方类库:javabase64-1.3.1.jar 下载地址:http://download.csdn.net/detai ...

  9. java字符串加密解密

    java字符串加密解密 字符串加密解密的方式很多,每一种加密有着相对的解密方法.下面要说的是java中模拟php的pack和unpack的字符串加密解密方法. java模拟php中pack: /** ...

随机推荐

  1. 编写第一个java程序

    安装了一个编辑器,Notepad++,这个编辑器以前在写PHP的时候就喜欢用,呵呵,现在写java也先沿用这个这个编辑器吧. 代码: public class Test{ public static ...

  2. Maven内置隐式变量(转)

    Maven提供了三个隐式的变量可以用来访问环境变量,POM信息,和Maven Settings env env变量,暴露了你操作系统或者shell的环境变量.便 如在Maven POM中一个对${en ...

  3. 如何使用javadoc

    package com.frank.chapter1; // object.Documentation1.java // TIJ4 Chapter Object, Exercise 13 - 1 /* ...

  4. SQL SERVER 中的 object_id()函数

    在SQLServer数据库中,如果查询数据库中是否存在指定名称的索引或者外键约束等,经常会用到object_id('name','type')方法,做笔记如下: ? 语法:object_id('obj ...

  5. CentOS7 MongoDB安裝

    查看MongoDB的最新版官方下载地址: https://www.mongodb.com/download-center#community 使用wget命令下载安装包 ? 1 wget https: ...

  6. 日期选择控件-laydate

    laydate控件非常简单易用,只需要调用一个个函数就可以轻松实现日期时间选择. <%@ page language="java" import="java.uti ...

  7. spring错误:<context:property-placeholder>:Could not resolve placeholder XXX in string value XXX

    spring同时集成redis和mongodb时遇到多个资源文件加载的问题 这两天平台中集成redis和mongodb遇到一个问题 单独集成redis和单独集成mongodb时都可以正常启动程序,但是 ...

  8. text透明无边框

    <input type="text" style="border:0px;background-color:transparent;outline:none;&qu ...

  9. ArcGIS Engine 图层裁剪 Clip的实现方法

    方法一, 图层对图层裁剪,输出图层 ILayer pLayer; IFeatureLayer pFeatureLayer; IFeatureClass pFeatureClass; IWorkspac ...

  10. Spring-MongoDB简单操作

    1.简单的配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http: ...