Browse Source

增加默认主页 修改线上地址

zyh
Loki 2 years ago
parent
commit
0c83d79684
  1. 4
      yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/security/config/SecurityConfiguration.java
  2. 10
      yudao-server/src/main/java/cn/iocoder/yudao/module/shop/controller/app/AppShopOrderController.java
  3. 4
      yudao-server/src/main/resources/application-prod.yaml

4
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();

10
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 暂时不加登陆验证,前端暂时没做好

4
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
Loading…
Cancel
Save