Compare commits

..

No commits in common. "89fed1715756c151f84d7535983287eee6408b1d" and "107e2cb85e5e56c6004535fdc6af7da7595e1a1b" have entirely different histories.

4 changed files with 7 additions and 28 deletions

View File

@ -24,41 +24,20 @@ public class Knife4jConfig {
public GroupedOpenApi adminApi() {
log.info("admin请求接口");
return GroupedOpenApi.builder().group("admin请求接口").pathsToMatch("/admin/**").build();
}
@Bean
public GroupedOpenApi orderApi() {
log.info("订单管理接口-8510");
return GroupedOpenApi.builder().group("订单管理接口").pathsToMatch("/api/order/orderInfo/**").build();
return GroupedOpenApi.builder().group("admin请求接口").pathsToMatch("/admin/**").build();// 接口请求路径规则
}
@Bean
public GroupedOpenApi productApi() {
log.info("商品管理接口-8511");
log.info("商品管理接口");
return GroupedOpenApi.builder().group("商品管理接口").pathsToMatch("/api/product/**").build();
return GroupedOpenApi.builder().group("商品管理接口").pathsToMatch("/api/product/**").build(); // 接口请求路径规则
}
@Bean
public GroupedOpenApi userApi() {
log.info("用户接口-8512");
log.info("用户接口");
return GroupedOpenApi.builder().group("用户接口").pathsToMatch("/api/user/**").build();
}
@Bean
public GroupedOpenApi cartApi() {
log.info("购物车接口-8513");
return GroupedOpenApi.builder().group("购物车接口").pathsToMatch("/api/order/cart/**").build();
}
@Bean
public GroupedOpenApi payApi() {
log.info("支付接口-8514");
return GroupedOpenApi.builder().group("支付接口").pathsToMatch("/api/order/alipay/**").build();
}
}

View File

@ -8,7 +8,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.atguigu"})
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
@EnableUserTokenFeignInterceptor
@ComponentScan("com.atguigu")
@Slf4j

View File

@ -17,4 +17,4 @@ COPY target/*.jar /home/bunny/app.jar
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
#暴露 8080 端口
EXPOSE 8514
EXPOSE 8080

View File

@ -9,7 +9,7 @@ import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
// @EnableConfigurationProperties(value = {AlipayProperties.class})
@ComponentScan("com.atguigu")
@EnableFeignClients(basePackages = {"com.atguigu"})
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
@Slf4j
public class PayApplication {
public static void main(String[] args) {