欢迎加入运维网交流群:263444886
Microserver v0.80 发布,更新如下: New in Microserver v0.80
A spring-based platform for plugin based Microservices development. 新插件 micro-spring-boot
The micro-spring-boot plugin allows full-stack integration with
Spring Boot (in contrast to the pre-existing Spring Boot plugin which
supports only Spring Boot backends). With micro-spring-boot you can run
Spring Boot managed servers with Microserver Jersey configuration and
plugins.
micro-spring-boot and micro-log4j example apps
An example Spring Boot Jersey App with Microserver
@MicroSpringBoot //configure this package as the base for autoscan
//optionally use @Microserver here for more configuration options
public class SimpleExample {
RestClient rest = new RestClient(10_000,1_000);
public static void main (String[] args){
new MicroserverApp(()-> "simple-app"); //note unlike traditional microserver apps, there is no need to call start or run here
assertThat(rest.get("http://localhost:8080/simple-app/status/ping"),equalTo("ok"));
}
}
@Rest
@Path("/status")
public class SimpleResource{
@GET
@Produces("text/plain")
@Path("/ping")
public String ping() {
return "ok";
}
}特性跟踪
S3 plugin should allow users to specify a region for S3 client enhancement #151 opened 7 days ago by kewangie
micro-hibernate shouldn't depend on micro-hikaricp bug #146 opened 14 days ago by kewangie
micro-boot integration - Allow micro-boot apps to use Spring Boot severs and front ends enhancement #128 opened on Dec 14, 2015 by johnmcclean-aol