首页 文章 精选 留言 我的

精选列表

搜索[.NET框架],共10000篇文章
优秀的个人博客,低调大师

PhalApi v2.15.0 发布,PHP 轻量级开源接口框架

PhalApi 2.15.0 [主要更新] 1、添加脚本,一键生成DataModel源代码,bin/phalapi_build_data_model.php 2、调整优化应用市场,向更开放的开源社区方向调整,插件源代码仓库位置 3、开源协议从原来的GPL-2调整成更开放的Apache License,更利于商业化使用 [BUG修复] 1、修复部署在非public目录下,在线接口文档样式加载失败的问题 2、解决使用 phpstorm 编辑时,因为找不到闭合标签爆红

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

Quarkus 1.5.1.Final 发布,Java 云原生、容器优先框架

Quarkus 1.5.1.Final现已发布,该版本包含一些错误修复和文档改进。 Quarkus 是 Kubernetes 原生的 Java 技术栈,它由同类中最佳的 Java 库和标准精制而成,并针对容器和云部署量身定制。Quarkus 的总体目标是将 Java 带入云原生的应用开发,并使它成为 Serverless、云和 Kubernetes 环境的领先平台。同时统一了响应式和命令式编程模型,开发人员可以选择最适合其用例的模型,并更轻松地将其代码与其它组件集成到响应式系统中,例如带有 Vert.x 和 Kafka 的响应式流、响应式数据库 API 等。 该版本的具体更新内容如下: #9935-处理 HTTP 请求返回的远程和本地地址时,修复 NullPointerException #9928-Funqy 文档改进 #9920-修复 xattr 命令的路径 #9882-quarkus.http.access-log.enabled=true 时发生 NullPointerException #9881-修复 Liquibase 中损坏的'includeAll' #9879-对于 MySQL 反应式,请正确使用密码代替用户 #9874-修正构建不正确的ConsulURL #9873-允许 websocket 请求在辅助线程上运行 #9865-IDE 启动器中的 Shade 传递依赖项 #9853-报告拼写错误修复程序 #9851-GraphQL:在元数据中添加guide #9850-Closes#9849-react-pg-client-密码认证失败 ...... 完整列表可查看更新说明:https://github.com/quarkusio/quarkus/releases/tag/1.5.1.Final

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

Netty 4.1.50.Final 发布,异步事件驱动网络应用框架​​​​​​​

Netty 4.1.50.Final 已发布,除了 Bugfix 外,还添加了一些新功能,例如首次为原生 epoll传输支持AARCH64。 主要变化 如果不使用 mTLS,OpenSslSession.getLocalCertificates() 和 getLocalPrincipal() 必须在客户端返回 null (#10275) 为 CNAME 选择合适的nameServer(#10272) 根据 RFC 2616 的规定,修改 header 中的日期格式,改为使用两位数的月/日(#10259) 将 GlobalEventExecutor#addTask 添加到 BlockHound 异常 (#10262) 增加选项来配置回收器延迟队列的丢包率 (#10255) 可直接使用io.netty.recycler.ratio(#10253) 不在 WebSocketProtocolHandler 中重复使用 ChannelPromise (#10248) 在 addFlattenedComponents() 中合理处理 WrappedCompositeByteBufs (#10247) 修复 HttpPostMultipartRequestDecoder 中的内存泄漏问题 (#10227) 检测 CNAME 缓存中的 CNAME 循环,并尝试解析 (#10221) Dns resolver: honor resolv.conf timeout, rotate and attempts options (#10207) 在 AbstractTrafficShapingHandler 中增加对 DefaultFileRegion 的检查,以计算 msg 的大小 (#10215) HTTP2: 防范多个 ctx.close(...) 调用时,使用相同的 ChannelPromise (#10201) 添加 epoll aarch64 maven 配置和 Dockerfile (#9804) 下载地址:https://netty.io/downloads.html 详细更新内容查看发布公告https://netty.io/news/2020/05/13/4-1-50-Final.html

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

使用Java JUnit框架里的@Rule注解的用法举例

Suppose you need to repeatedly execute some test method in your unit test case, for example, you would like to test getPrice based on the first set of test data 5 times in test method test1() while for the second set of test data, only one time should be executed. The below class RepeatDemoOne is a bad example, where this special LOOP operation is mixed with test method implementation. Ideally the test method should only contain the pure logic to operate on the method being tested. So we have a better solution RepeatDemoTwo:It could easily be observed that now the test method test1 and test2 are rather clean: no more for LOOP and System.out.println exist any more. Instead, I put the LOOP logic and print out operation into class RepeatableRule which implements interface MethodRule. The concrete rule implementation is done by overriding method apply as below: class RepeatableRule implements MethodRule{ int times = 1; String[] testMethods = null; RepeatableRule(int times, String[] testMethods){ this.times = times; this.testMethods = testMethods; } @Override public Statement apply(final Statement base, final FrameworkMethod method, Object target) { return new Statement() { @Override public void evaluate() throws Throwable { int loopTime = 1; if(Arrays.asList(testMethods).contains(method.getName())) { loopTime = times; } for(int i = 0; i < loopTime; i++ ) { base.evaluate(); System.out.println(method.getName() + " executed."); } } }; } } When I execute this test case, I can get exactly the same result as RepeatDemoOne: With the help of @Rule, we can achieve the same as @Test(expected=). For example, we can use an instance of class ExpectedException to manually declare within a test method itself that a test method expects a given type of exception class. Besides exception, we can also manually specify a sub string which is expected to appear in an error message, and add our custom error message in Junit report if a test method fails. See following code for example: public class RuleWithException { @Rule public ExpectedException exp = ExpectedException.none(); @Test public void expectMessage() { exp.expectMessage("Hello World"); throw new RuntimeException("Hello World will throw exception."); } @Test public void expectCourse() { exp.expectCause(new BaseMatcher<IllegalArgumentException>() { public boolean matches(Object item) { return item instanceof IllegalArgumentException; } @Override public void describeTo(org.hamcrest.Description description) { description.appendText("Expected exception with type IllegalArgumentException " + "raised in test method! "); } }); Throwable cause = new IllegalArgumentException("Cause Test."); throw new RuntimeException(cause); } } In this example, if we comment out line 46, the customed message defined in method describeTo will be printed out in JUnit console: 本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

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

Netty 4.1.49.Final 发布,异步事件驱动网络应用框架​​​​​​​

Netty 4.1.49.Final 已发布,除了修复 bug 之外,还添加了一些新功能。 使用java 8u251 时支持 ALPN (#10196) 调用 CompositeByteBuf.addComponent(...) 时防止溢出 (#10197) 在所有情况下都能正确传播来自入站操作(inbound operations)的异常(#10176) 添加对 HAProxyMessageEncoder 的支持 (#10175) 新增在尝试加载 JNI 代码时可能出现的针对 classloader 死锁的解决方案 (#10190) 高效的 BytBuf 搜索算法(#9955) 支持在 Android 上使用 Conscrypt(#10182) 如果 promise 被取消,停止发送 DNS 查询 (#10171) 当 NIC 只有本地 IPv6 地址时,会将 Set IPV4_ONLY 设置为默认值 (#10170) 在 PoolChunkList 热路径中的阈值中,用 freeBytes() 替代 usage() (#10141) 在 SSL 握手失败时,避免出现多次调用 exceptionCaught(...) 的情况(#10134) 升级至 netty-tcnative 2.0.30.Final 以修复内存泄露的问题(#10118) 下载地址:https://netty.io/downloads.html 详细更新内容查看发布说明https://netty.io/news/2020/04/22/4-1-49-Final.html

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

Netty 4.1.48.Final 发布,异步事件驱动网络应用框架

Netty 4.1.48.Final 发布了,主要更新内容如下: HttpObjectDecoder 应限制控制字符的数量(#10112) 异常时关闭 SocketChannel 以避免泄漏(#10110) 确保使用 HttpProxyHandler 时 WebSocket*Handshaker 不会破坏管道(#10103) 修复路径为空时 WebSocketClientHandshaker 无法生成正确的握手请求(#10095) 添加了对 Cookies 中 SameSite 属性的支持(#10050) 详情见更新说明: https://netty.io/news/2020/03/17/4-1-48-Final.html

资源下载

更多资源
腾讯云软件源

腾讯云软件源

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

Nacos

Nacos

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

Rocky Linux

Rocky Linux

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

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码