先にジャンプ
VMware は、あなたの進歩を加速させるトレーニングと認定を提供します。
さらに学習したい方に (英語)Spring Cloud Bus は、軽量メッセージブローカーを使用して分散システムのノードをリンクします。これを使用して、状態の変更 (構成の変更など) やその他の管理指示をブロードキャストできます。AMQP および Kafka ブローカー実装はプロジェクトに含まれています。または、クラスパスにある任意のリンク: https://spring.io/projects/spring-cloud-stream[Spring Cloud Stream] バインダーは、そのままトランスポートとして機能します。
Spring Cloud Bus AMQP と RabbitMQ がクラスパス上にある限り、Spring Boot アプリケーションは localhost:5672 (spring.rabbitmq.addresses のデフォルト値)上の RabbitMQ サーバーに接続しようとします。
@Configuration
@EnableAutoConfiguration
@RestController
public class Application {
@RequestMapping("/")
public String home() {
return "Hello World";
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}