Java 微服务框架 Microserver

码农软件 · 软件分类 · 微服务框架 · 2019-03-18 13:12:38

软件介绍

Microserver 是一个零配置、基于标准的身经百战的库,用来运行 Java REST 微服务,通过 Java 标准 main 类执行。从 2014 年开始就一直在 AOL 生产环境中使用。

框架结构:

high level architecture

main 类:

public class AppRunnerTest {
    public static void main(String[] args) throws InterruptedException {
        new MicroserverApp(() -> "test-app").run();
    }
}

服务类:

@Rest 
@Path("/status")
public class StatusResource {
  @GET 
  @Produces("text/plain")
  @Path("/ping")
  public String ping() {
     return "ok";
  }
}

本文地址:https://codercto.com/soft/d/1616.html

Scalable Internet Architectures

Scalable Internet Architectures

Theo Schlossnagle / Sams Publishing / 2006-7-31 / USD 49.99

As a developer, you are aware of the increasing concern amongst developers and site architects that websites be able to handle the vast number of visitors that flood the Internet on a daily basis. Sc......一起来看看 《Scalable Internet Architectures》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试