diff --git a/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/security/config/SecurityConfiguration.java b/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/security/config/SecurityConfiguration.java index ac7a7030..fac4bc3d 100644 --- a/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/security/config/SecurityConfiguration.java +++ b/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/security/config/SecurityConfiguration.java @@ -54,7 +54,7 @@ public class SecurityConfiguration { anonymousUrls.addAll(requestCondition.getPatterns()); } } - anonymousUrls.forEach(s -> log.info("宝象购可以匿名访问的url:{}", s)); + // anonymousUrls.forEach(s -> log.info("宝象购可以匿名访问的url:{}", s)); registry.antMatchers(anonymousUrls.toArray(new String[0])).anonymous(); // Swagger 接口文档 registry.antMatchers("/swagger-ui.html").anonymous() @@ -66,6 +66,8 @@ public class SecurityConfiguration { .antMatchers("/actuator/**").anonymous(); // Druid 监控 registry.antMatchers("/druid/**").anonymous(); + // 首页 + registry.antMatchers("/").anonymous(); // Spring Boot Admin Server 的安全配置 registry.antMatchers(adminSeverContextPath).anonymous() .antMatchers(adminSeverContextPath + "/**").anonymous(); diff --git a/yudao-server/src/main/java/cn/iocoder/yudao/module/shop/controller/app/AppShopOrderController.java b/yudao-server/src/main/java/cn/iocoder/yudao/module/shop/controller/app/AppShopOrderController.java index 54ff4daf..aff2b3d5 100644 --- a/yudao-server/src/main/java/cn/iocoder/yudao/module/shop/controller/app/AppShopOrderController.java +++ b/yudao-server/src/main/java/cn/iocoder/yudao/module/shop/controller/app/AppShopOrderController.java @@ -12,10 +12,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.validation.Valid; @@ -34,6 +31,11 @@ public class AppShopOrderController { @Resource private PayOrderService payOrderService; + @GetMapping("/") + public String index(){ + return "Welcome to Zsw"; + } + @PostMapping("/create") @ApiOperation("创建商城订单") // @PreAuthenticated // TODO 暂时不加登陆验证,前端暂时没做好 diff --git a/yudao-server/src/main/resources/application-prod.yaml b/yudao-server/src/main/resources/application-prod.yaml index d3b38450..e59d257d 100644 --- a/yudao-server/src/main/resources/application-prod.yaml +++ b/yudao-server/src/main/resources/application-prod.yaml @@ -248,7 +248,7 @@ dubbo: bxg: shop: - API_URL: https://farm.lotus-wallet.com/bxgApp + API_URL: https://farm.lotus-wallet.com SITE_URL: http://project.lotus-wallet.com/ - UNI_SITE_URL: https://farm.lotus-wallet.com/bxgApp + UNI_SITE_URL: https://farm.lotus-wallet.com ADMIN_API_URL: https://farm.lotus-wallet.com/bxg \ No newline at end of file