2020-09-04 19:43:19 +08:00
|
|
|
package we;
|
2020-09-02 18:35:03 +08:00
|
|
|
|
2020-11-06 17:35:55 +08:00
|
|
|
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
|
2020-09-02 18:35:03 +08:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration;
|
|
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
|
|
|
2020-10-21 10:01:04 +08:00
|
|
|
@SpringBootApplication(
|
|
|
|
|
exclude = {ErrorWebFluxAutoConfiguration.class, RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class},
|
2020-10-23 15:59:32 +08:00
|
|
|
scanBasePackages = {"we"}
|
2020-10-21 10:01:04 +08:00
|
|
|
)
|
2020-11-20 17:16:05 +08:00
|
|
|
@NacosPropertySource(dataId = "${nacos.config.data-id}", groupId = "${nacos.config.group}", autoRefreshed = true)
|
2020-09-02 18:35:03 +08:00
|
|
|
@EnableDiscoveryClient
|
|
|
|
|
public class FizzGatewayApplication {
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
2020-10-21 10:01:04 +08:00
|
|
|
FizzAppContext.appContext = SpringApplication.run(FizzGatewayApplication.class, args);
|
2020-09-02 18:35:03 +08:00
|
|
|
}
|
|
|
|
|
}
|