Skip to content

Instantly share code, notes, and snippets.

@plateauu
Created May 30, 2017 19:11
Show Gist options
  • Save plateauu/21725430bcbac0b19f0a2670f91c5933 to your computer and use it in GitHub Desktop.
Save plateauu/21725430bcbac0b19f0a2670f91c5933 to your computer and use it in GitHub Desktop.
test
package pl.piomin.microservices.edge;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.sleuth.sampler.AlwaysSampler;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@EnableZuulProxy
@RestController
public class Application {
public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
}
@Bean
public AlwaysSampler defaultSampler() {
return new AlwaysSampler();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment