Created
May 30, 2017 19:11
-
-
Save plateauu/21725430bcbac0b19f0a2670f91c5933 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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