| | |
| | | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.context.annotation.ComponentScan; |
| | | |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | @EnableSwagger2 |
| | |
| | | @EnableEurekaClient |
| | | @EnableZuulProxy |
| | | @EnableFeignClients(basePackages = {"com.panzhihua.common.service"}) |
| | | @ComponentScan({"com.panzhihua.zuul","com.panzhihua.common"}) |
| | | @ComponentScan({"com.panzhihua.zuul", "com.panzhihua.common"}) |
| | | public class ZuulApplication { |
| | | |
| | | public static void main(String[] args) { |