refactor: 修改框架

server_five_liuyunhu
lijiayao 2024-04-03 11:27:17 +08:00
parent 2352def47e
commit 0c1cfb8f28
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import com.couplet.remote.RemoteVehicleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import java.util.List;
@ -16,6 +17,7 @@ import java.util.List;
* @description: TODO
* @date 2024/4/2 14:46
*/
@Component
public class RemoteVehicleFallbackFactory implements FallbackFactory<RemoteVehicleService> {
private static final Logger log = LoggerFactory.getLogger(RemoteVehicleFallbackFactory.class);

View File

@ -13,7 +13,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableMyFeignClients
@EnableMyFeignClients(basePackages = ("com.couplet"))
@SpringBootApplication(scanBasePackages = {"com.couplet"})
public class CoupletBusinessApplication {
public static void main (String[] args) {