Vertx与Spring配合完成DML操作
服务启动: 1 public static void main( String[] args ) { 2 ApplicationContext context = new AnnotationConfigApplicationContext(SimpleSpringConfiguration.class); 3 final Vertx vertx = Vertx.vertx(); 4 vertx.deployVerticle(new SpringSimpleVerticle(context)); 5 vertx.deployVerticle(new ServerVerticle()); 6 } EventBus接受给Service: 1 public class SpringSimpleVerticle extends AbstractVerticle { 2 3 public static final String ALL_PRODUCTS_ADDRESS = "example.all.products"; 4 5 6 private final ObjectMapper mapper = new ObjectMapper(); 7 private final ProductService service; 8 9 public SpringSimpleVerticle