首页 文章 精选 留言 我的

精选列表

搜索[数据库相关],共10000篇文章
优秀的个人博客,低调大师

Android笔记:bitmap转换与处理相关工具类,Bitmap与DrawAble与byte[]与InputStream之间的转换

1.将view转为bitmap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // 将view转为bitmap public static Bitmap getBitmapFromView(View view) { // Define a bitmap with the same size as the view Bitmap returnedBitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); // Bind a canvas to it Canvas canvas = new Canvas(returnedBitmap); // Get the view's background Drawable bgDrawable = view.getBackground(); if (bgDrawable != null ) // has background drawable, then draw it on the canvas bgDrawable.draw(canvas); else // does not have background drawable, then draw white background on // the canvas canvas.drawColor(Color.WHITE); // draw the view on the canvas view.draw(canvas); // return the bitmap return returnedBitmap; } 2.将view转为bitmap 1 2 3 4 5 6 7 8 // 将view转为bitmap public static Bitmap viewToBitmap(View view) { view.setDrawingCacheEnabled( true ); view.buildDrawingCache(); Bitmap bm = view.getDrawingCache(); return bm; } 3.将xml转为bitmap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // 将xml转为bitmap public static Bitmap convertBitmapFromXML(Context context, String clusterSize, Bitmap bm) { View layout = LayoutInflater.from(context).inflate(R.layout.estatecartlist_item, null ); View bitmapView = layout.findViewById(R.id.estatecartlist_item_bitmap); TextView xml_text = (TextView) layout.findViewById(R.id.item_estatecart_tv_name); ImageView image = (ImageView) layout.findViewById(R.id.item_estatecart_iv_main); image.setImageBitmap(bm); xml_text.setText(clusterSize); bitmapView.measure(MeasureSpec.makeMeasureSpec( 0 , MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec( 0 , MeasureSpec.UNSPECIFIED)); bitmapView.layout( 0 , 0 , bitmapView.getMeasuredWidth(), bitmapView.getMeasuredHeight()); final Bitmap clusterBitmap = Bitmap.createBitmap(bitmapView.getMeasuredWidth(), bitmapView.getMeasuredHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(clusterBitmap); bitmapView.draw(canvas); return clusterBitmap; } ==============参考资料=================== * 1.http://stackoverflow.com/questions/7200535/how-to-convert-views-to-bitmap * 2.http://stackoverflow.com/questions/5536066/convert-view-to-bitmap-on-android/9595919#9595919 * 3.http://stackoverflow.com/questions/12402392/android-converting-xml-view-to-bitmap-without-showing-it 4.图片缩放与压缩 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 // 按大小缩放 private Bitmap getimage(String srcPath) { BitmapFactory.Options newOpts = new BitmapFactory.Options(); // 开始读入图片,此时把options.inJustDecodeBounds 设回true了 newOpts.inJustDecodeBounds = true ; Bitmap bitmap = BitmapFactory.decodeFile(srcPath, newOpts); // 此时返回bm为空 newOpts.inJustDecodeBounds = false ; int w = newOpts.outWidth; int h = newOpts.outHeight; // 现在主流手机比较多是800*480分辨率,所以高和宽我们设置为 float hh = 800f; // 这里设置高度为800f float ww = 480f; // 这里设置宽度为480f // 缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可 int be = 1 ; // be=1表示不缩放 if (w > h && w > ww) { // 如果宽度大的话根据宽度固定大小缩放 be = ( int ) (newOpts.outWidth / ww); } else if (w < h && h > hh) { // 如果高度高的话根据宽度固定大小缩放 be = ( int ) (newOpts.outHeight / hh); } if (be <= 0 ) be = 1 ; newOpts.inSampleSize = be; // 设置缩放比例 // 重新读入图片,注意此时已经把options.inJustDecodeBounds 设回false了 bitmap = BitmapFactory.decodeFile(srcPath, newOpts); return compressImage(bitmap); // 压缩好比例大小后再进行质量压缩 } // 图片质量压缩 private static Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compress(Bitmap.CompressFormat.JPEG, 100 , baos); // 质量压缩方法,这里100表示不压缩,把压缩后的数据存放到baos中 int options = 100 ; while (baos.toByteArray().length / 1024 > 100 ) { // 循环判断如果压缩后图片是否大于100kb,大于继续压缩 baos.reset(); // 重置baos即清空baos image.compress(Bitmap.CompressFormat.JPEG, options, baos); // 这里压缩options%,把压缩后的数据存放到baos中 options -= 10 ; // 每次都减少10 } ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray()); // 把压缩后的数据baos存放到ByteArrayInputStream中 Bitmap bitmap = BitmapFactory.decodeStream(isBm, null , null ); // 把ByteArrayInputStream数据生成图片 return bitmap; } // 图片按比例大小压缩 private static Bitmap comp(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compress(Bitmap.CompressFormat.JPEG, 100 , baos); if (baos.toByteArray().length / 1024 > 1024 ) { // 判断如果图片大于1M,进行压缩避免在生成图片(BitmapFactory.decodeStream)时溢出 baos.reset(); // 重置baos即清空baos image.compress(Bitmap.CompressFormat.JPEG, 50 , baos); // 这里压缩50%,把压缩后的数据存放到baos中 } ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray()); BitmapFactory.Options newOpts = new BitmapFactory.Options(); // 开始读入图片,此时把options.inJustDecodeBounds 设回true了 newOpts.inJustDecodeBounds = true ; Bitmap bitmap = BitmapFactory.decodeStream(isBm, null , newOpts); newOpts.inJustDecodeBounds = false ; int w = newOpts.outWidth; int h = newOpts.outHeight; // 现在主流手机比较多是800*480分辨率,所以高和宽我们设置为 float hh = 800f; // 这里设置高度为800f float ww = 480f; // 这里设置宽度为480f // 缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可 int be = 1 ; // be=1表示不缩放 if (w > h && w > ww) { // 如果宽度大的话根据宽度固定大小缩放 be = ( int ) (newOpts.outWidth / ww); } else if (w < h && h > hh) { // 如果高度高的话根据宽度固定大小缩放 be = ( int ) (newOpts.outHeight / hh); } if (be <= 0 ) be = 1 ; newOpts.inSampleSize = be; // 设置缩放比例 // 重新读入图片,注意此时已经把options.inJustDecodeBounds 设回false了 isBm = new ByteArrayInputStream(baos.toByteArray()); bitmap = BitmapFactory.decodeStream(isBm, null , newOpts); return compressImage(bitmap); // 压缩好比例大小后再进行质量压缩 } 5.图片转为文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 // 图片转为文件 public static boolean saveBitmap2file(Bitmap bmp, String filename) { CompressFormat format = Bitmap.CompressFormat.JPEG; int quality = 100 ; OutputStream stream = null ; try { stream = new FileOutputStream( "/sdcard/" + filename); } catch (FileNotFoundException e) { e.printStackTrace(); } return bmp.compress(format, quality, stream); } 6.屏幕截屏方法 1 2 3 4 5 6 7 8 9 // 屏幕截屏方法 获取当前屏幕bitmap,转换成bytes[] 调用 UI分享方法 public void printscreen_share(View v) { View view1 = getWindow().getDecorView(); Display display = getWindowManager().getDefaultDisplay(); view1.layout( 0 , 0 , display.getWidth(), display.getHeight()); view1.setDrawingCacheEnabled( true ); Bitmap bitmap = Bitmap.createBitmap(view1.getDrawingCache()); } 7.把Bitmap 转成 Byte 1 2 3 4 5 6 7 // 把Bitmap 转成 Byte public static byte [] Bitmap2Bytes(Bitmap bm) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.PNG, 100 , baos); return baos.toByteArray(); } 8.图片转为文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 // 图片转为文件 public static boolean saveBitmap2file(Bitmap bmp) { CompressFormat format = Bitmap.CompressFormat.PNG; int quality = 100 ; OutputStream stream = null ; try { // 判断SDcard状态 if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // 错误提示 return false ; } // 检查SDcard空间 File SDCardRoot = Environment.getExternalStorageDirectory(); if (SDCardRoot.getFreeSpace() < 10000 ) { // 弹出对话框提示用户空间不够 Log.e( "Utils" , "存储空间不够" ); return false ; } // 在SDcard创建文件夹及文件 File bitmapFile = new File(SDCardRoot.getPath() + FILE_PATH); bitmapFile.getParentFile().mkdirs(); // 创建文件夹 stream = new FileOutputStream(SDCardRoot.getPath() + FILE_PATH); // "/sdcard/" } catch (FileNotFoundException e) { e.printStackTrace(); } return bmp.compress(format, quality, stream); } 9.下载图片 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 // 下载图片 public static Bitmap loadImage(String... params) { InputStream is = null ; Bitmap bitmap = null ; try { URL url = new URL(params[ 0 ]); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout( 5000 ); conn.setConnectTimeout( 5000 ); if (HttpURLConnection.HTTP_OK != conn.getResponseCode()) { // 网络连接异常 Log.e( "" , "loadImage连接异常" ); return null ; } is = conn.getInputStream(); bitmap = BitmapFactory.decodeStream(is); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if ( null != is) { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } } return bitmap; } 10.byte[]转换成Bitmap 1 2 3 4 5 6 7 8 9 // byte[]转换成Bitmap public static Bitmap Bytes2Bitmap( byte [] b) { if (b.length != 0 ) { return BitmapFactory.decodeByteArray(b, 0 , b.length); } return null ; } 11.将字符串转换成Bitmap类型 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 public static Bitmap stringtoBitmap(String string) { // 将字符串转换成Bitmap类型 Bitmap bitmap = null ; try { byte [] bitmapArray; bitmapArray = Base64.decode(string, Base64.DEFAULT); bitmap = BitmapFactory.decodeByteArray(bitmapArray, 0 , bitmapArray.length); } catch (Exception e) { e.printStackTrace(); } return bitmap; } 12.将Bitmap转换成字符串 1 2 3 4 5 6 7 8 9 10 public static String bitmaptoString(Bitmap bitmap) { // 将Bitmap转换成字符串 String string = null ; ByteArrayOutputStream bStream = new ByteArrayOutputStream(); bitmap.compress(CompressFormat.PNG, 100 , bStream); byte [] bytes = bStream.toByteArray(); string = Base64.encodeToString(bytes, Base64.DEFAULT); return string; } 13.byte[]转为文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 //byte[]转为文件 public static File getFileFromBytes( byte [] b) { BufferedOutputStream stream = null ; File file = null ; try { // 判断SDcard状态 if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // 错误提示 return null ; } // 检查SDcard空间 File SDCardRoot = Environment.getExternalStorageDirectory(); if (SDCardRoot.getFreeSpace() < 10000 ) { // 弹出对话框提示用户空间不够 Log.e( "Utils" , "存储空间不够" ); return null ; } // 在SDcard创建文件夹及文件 File bitmapFile = new File(SDCardRoot.getPath() + FILE_PATH); bitmapFile.getParentFile().mkdirs(); // 创建文件夹 FileOutputStream fstream = new FileOutputStream(bitmapFile); stream = new BufferedOutputStream(fstream); stream.write(b); } catch (Exception e) { e.printStackTrace(); } finally { if (stream != null ) { try { stream.close(); } catch (IOException e1) { e1.printStackTrace(); } } } return file; } 14.图片压缩 1 2 3 4 5 6 7 8 9 10 11 12 13 //图片缩放 public static Bitmap scaleDownBitmap(Bitmap photo, int newHeight, Context context) { final float densityMultiplier = context.getResources().getDisplayMetrics().density; int h = ( int ) (newHeight * densityMultiplier); int w = ( int ) (h * photo.getWidth() / (( double ) photo.getHeight())); photo = Bitmap.createScaledBitmap(photo, w, h, true ); return photo; } 15.将byte[]转换成InputStream 1 2 3 4 5 6 // 将byte[]转换成InputStream public InputStream Byte2InputStream( byte [] b) { ByteArrayInputStream bais = new ByteArrayInputStream(b); return bais; } 16.将InputStream转换成byte[] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 // 将InputStream转换成byte[] public byte [] InputStream2Bytes(InputStream is) { String str = "" ; byte [] readByte = new byte [ 1024 ]; int readCount = - 1 ; try { while ((readCount = is.read(readByte, 0 , 1024 )) != - 1 ) { str += new String(readByte).trim(); } return str.getBytes(); } catch (Exception e) { e.printStackTrace(); } return null ; } 17.将Bitmap转换成InputStream 1 2 3 4 5 6 7 8 // 将Bitmap转换成InputStream public InputStream Bitmap2InputStream(Bitmap bm) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.JPEG, 100 , baos); InputStream is = new ByteArrayInputStream(baos.toByteArray()); return is; } 18.将Bitmap转换成InputStream 1 2 3 4 5 6 7 8 // 将Bitmap转换成InputStream public InputStream Bitmap2InputStream(Bitmap bm, int quality) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.PNG, quality, baos); InputStream is = new ByteArrayInputStream(baos.toByteArray()); return is; } 19.将InputStream转换成Bitmap 1 2 3 4 5 // 将InputStream转换成Bitmap public Bitmap InputStream2Bitmap(InputStream is) { return BitmapFactory.decodeStream(is); } 20.Drawable转换成InputStream 1 2 3 4 5 6 // Drawable转换成InputStream public InputStream Drawable2InputStream(Drawable d) { Bitmap bitmap = this .drawable2Bitmap(d); return this .Bitmap2InputStream(bitmap); } 21.InputStream转换成Drawable 1 2 3 4 5 6 // InputStream转换成Drawable public Drawable InputStream2Drawable(InputStream is) { Bitmap bitmap = this .InputStream2Bitmap(is); return this .bitmap2Drawable(bitmap); } 22.Drawable转换成byte[] 1 2 3 4 5 6 // Drawable转换成byte[] public byte [] Drawable2Bytes(Drawable d) { Bitmap bitmap = this .drawable2Bitmap(d); return this .Bitmap2Bytes(bitmap); } 23.byte[]转换成Drawable 1 2 3 4 5 6 // byte[]转换成Drawable public Drawable Bytes2Drawable( byte [] b) { Bitmap bitmap = this .Bytes2Bitmap(b); return this .bitmap2Drawable(bitmap); } 24.Drawable转换成Bitmap 1 2 3 4 5 6 7 8 9 10 // Drawable转换成Bitmap public Bitmap drawable2Bitmap(Drawable drawable) { Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), drawable.getOpacity() != PixelFormat.OPAQUE ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565); Canvas canvas = new Canvas(bitmap); drawable.setBounds( 0 , 0 , drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); drawable.draw(canvas); return bitmap; } 25.Bitmap转换成Drawable 1 2 3 4 5 6 7 // Bitmap转换成Drawable public Drawable bitmap2Drawable(Bitmap bitmap) { BitmapDrawable bd = new BitmapDrawable(bitmap); Drawable d = (Drawable) bd; return d; } 本文转自 glblong 51CTO博客,原文链接:http://blog.51cto.com/glblong/1304090,如需转载请自行联系原作者

优秀的个人博客,低调大师

与存储相关的五项突破,彻底改变了成本与复杂性的规则

尽管存储行业不会像好莱坞那样多姿多彩,但这里经常会出现令人振奋的好消息。云存储厂商之间激烈竞争的结果就是如果您希望将数据存放在云中,现在可以用更低的成本存储更多内容。在数据中心内,固态硬盘 (SSD) 风光无限,即使并不是每个人都认为它们是存储阵列的绝佳之选。在企业,当面临虚拟服务器备份模式的选择以及针对未结构化数据和大数据的处理规划时,一系列问题被突显出来。 面临这样的问题,一系列的突破也应运而生。以下五个方面的突破令人瞩目,让我们首先从一项创新开始,它有可能会改变我们使用 DVD 的模式: 借助纳米技术,科研人员将单片 DVD 的存储能力从约 4.7GB 提升到 1,000TB。来源:《自然通讯》 1. 1,000TB DVD 科研人员已经研发了一项技术,可以将单面单层 DVD 的存储能力从 4.7 G 提升到 1 拍字节 (1,000 TB)。这相当于存储 10.6 年经过压缩的高清视频或者 50,000 部全高清影片! 这个方法突破了绕射极限 (Abbe’s Limit),即对于可见光,光斑的直径不能低于其波长的一半 – 约为 500 纳米(一纳米为十亿分之一米)。 通过使用不同颜色光的双光束方法,而不是传统的单光束,研究人员将光束重叠以形成更小的焦斑。“反记录”光束会抵消一部分“写”光束,进而将记录过程限定一个极小的中心点,约为 9 纳米 – 约为普通人发丝直径的万分之一。 研究人员表示,这是一个会产生巨大成本节约的技术,可以在此基础上开发出超级紧凑的设备,也会极大促进长寿命、低能耗光学数据存储的发展,揭开了纳米科学和纳米技术研究新的一页。目前研究人员正在进一步研究工业化的可行性,它预示了光盘光明的未来和全新的用途。 Crossbar 公司的 ReRAM 技术使用了三层结构设计(顶层电极、交换介质、底层电极)和 3D 叠放,其结构大大优于传统内存。 2. ReRAM 从光学存储转换到内存,接下来的突破为平板电脑的未来发展奠定了基础,能够为平板电脑提供 8TB 的存储。 可变电阻式记忆体或称为 ReRAM 是一种非易失性存储器,被专家们视为闪存的替代方案,因为体积更小并且可以更好地解决了脆弱性和速度问题。 几大厂商正在继续研发这项技术,包括松下 (Panasonic) 和 Rambus。最近,位于美国加州的创业公司 Crossbar 最新发布的一款产品可以在一块单独的芯片中存储高达 1TB 的数据量、比 NAND 闪存快 20 倍,而且生产成本并不高。 Robin Harris 在他的 ZDNet 存储博客中解释到:“对一家半导体芯片生产厂家的投资是巨大的 – 达到国家领先水平的芯片厂需要投资大约为 50 亿美元 – Crossbar 取得成功最重要的因素是它创造了一种方法,使用目前的技术和材料成功制造出能够推向市场的产品、以极具竞争力的价格进入市场。” MCS 在降低延迟的同时改善了 $/IOPS。 3. 1TB DIMM 与时俱进,闪存在与 DRAM 的性能比拼中不断创新。 双列直插内存模块 (DIMMS) 曾经凭借其更佳的内存总线全面取代了单列直插内存模块 (SIMMS)。直到现在,市场上主流的内存是动态随机存取存储器 (DRAM)。感谢 Diablo Technologies 推出了突破性的 MCS 架构(内存通道存储),现在已经有了 terabyte DIMM,与 DRAM 相比,它更紧凑、更廉价、并且能耗更低。MCS 可以用于块存储,也能够将系统内存从 G 级扩大到 T 级。 DIMM 兼容标准的 DDR3 内存插槽,能够改善内存计算的经济性,为各种企业在虚拟机、大数据应用等用途创造了经济可行的前提。 Nimble Storage 公司的混合闪存优化架构可以为主流的 IT 应用,如 Microsoft 应用的虚拟化、VDI 和 OLTP 提供最佳的性能、可扩展性和数据保护,极大简化了存储。来源:Nimble Storage 4. 闪存和硬盘驱动器存储 现在,让我们从组件回到在实验室环境已经经过测试的系统。 存储的需求不断增加,只有更强大的系统才能够跟上虚拟化的“蔓延”,在系统规模扩大时,还需要保证成本效益。缓存加速顺序布局 (CASL™) 架构结合了闪存和硬盘驱动器的功能,并且加入了联可变块压缩、克隆和占用空间更少的集成快照,并且不会产生性能损失。该架构采用多级单元 (MLC) NAND闪存作为缓存层,同时将“冷”数据卸载到 SATA 层。 Nimble Storage 是已经美国加州的创业企业,拥有这项技术的专利,正在帮助目前的存储供应商解决快速设备性能的挑战。Riverbed 公司的 CEO Jerry Kennelly 是这家公司的董事。 5. 数据中心的存储交付 很多人强调需要在分支机构中部署与数据中心类似的 IT 设备。是否曾经有过这样的设想,将服务器与需要访问的存储分离,分开几米、几公里、直到一个难以想象的长距离;但是性能却没有丝毫的影响?现在,您可以做到这点! 这是 Riverbed 公司的 CTO - David Wu 的杰出创造。Granite 技术是针对分支机构而设计的一整套解决方案。将位于分支机构的数据整合到数据中心,Granite 彻底消除了分支机构的备份和备份恢复系统,允许应用以本地磁盘性能跨广域网访问远程存储。 Granite Core 设备是这个架构的关键,将存储与计算(本地执行)分离,在数据中心存储分支机构数据,IT 团队可以为所有分支机构进行服务器的配置、管理、升级和维护。 Granite 由 Core 和 Edge 设备以及软件组成,提供高效的跨网络数据传输,缓存分支机构最经常使用的数据,在分支网络暂时中断时支持脱机操作。 使用这种新的全球存储架构,一个组织可以将宝贵的数据从高风险位置移出、极大地增加灵活性并降低管理远程分支机构的 IT 成本。 作者:Riverbed科技公司亚太区产品营销总监丁伟 来源:51CTO

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册