2020-09-02 18:35:03 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-09-04 19:43:19 +08:00
|
|
|
package we;
|
2020-09-02 18:35:03 +08:00
|
|
|
|
|
|
|
|
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
|
|
|
|
|
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;
|
|
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author lancer
|
|
|
|
|
* @author francis
|
|
|
|
|
*/
|
|
|
|
|
@SpringBootApplication(exclude = {ErrorWebFluxAutoConfiguration.class, RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class})
|
|
|
|
|
// @EnableApolloConfig
|
|
|
|
|
@EnableDiscoveryClient
|
|
|
|
|
public class FizzGatewayApplication {
|
|
|
|
|
|
|
|
|
|
public static ConfigurableApplicationContext appContext;
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
FizzGatewayApplication.appContext = SpringApplication.run(FizzGatewayApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
}
|