Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active May 7, 2017 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/e8c0c6a28f4d4e38e6d40b77fce4c687 to your computer and use it in GitHub Desktop.
Save garystafford/e8c0c6a28f4d4e38e6d40b77fce4c687 to your computer and use it in GitHub Desktop.
package com.voterapi.voter.configuration;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class VoterConfig {
@Bean
public DirectExchange directExchange() {
return new DirectExchange("voter.rpc");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment