Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
package spring; import io.vertx.core.Vertx; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.annotation.Bean; import org.springframework.context.event.EventListener; import spring.verticles.ProxyVerticle; @SpringBootApplication public class VertxSpringApplication { @Autowired private ProxyVerticle proxyVerticle; public static void main(String[] args) { SpringApplication.run(VertxSpringApplication.class, args); } @Bean public Vertx vertx() { return Vertx.vertx(); } @EventListener public void deployVerticle(ApplicationReadyEvent event) { final Vertx vertx = this.vertx(); vertx.deployVerticle(proxyVerticle); } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)