增加默认主页 修改线上地址
This commit is contained in:
+3
-1
@@ -54,7 +54,7 @@ public class SecurityConfiguration {
|
|||||||
anonymousUrls.addAll(requestCondition.getPatterns());
|
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();
|
registry.antMatchers(anonymousUrls.toArray(new String[0])).anonymous();
|
||||||
// Swagger 接口文档
|
// Swagger 接口文档
|
||||||
registry.antMatchers("/swagger-ui.html").anonymous()
|
registry.antMatchers("/swagger-ui.html").anonymous()
|
||||||
@@ -66,6 +66,8 @@ public class SecurityConfiguration {
|
|||||||
.antMatchers("/actuator/**").anonymous();
|
.antMatchers("/actuator/**").anonymous();
|
||||||
// Druid 监控
|
// Druid 监控
|
||||||
registry.antMatchers("/druid/**").anonymous();
|
registry.antMatchers("/druid/**").anonymous();
|
||||||
|
// 首页
|
||||||
|
registry.antMatchers("/").anonymous();
|
||||||
// Spring Boot Admin Server 的安全配置
|
// Spring Boot Admin Server 的安全配置
|
||||||
registry.antMatchers(adminSeverContextPath).anonymous()
|
registry.antMatchers(adminSeverContextPath).anonymous()
|
||||||
.antMatchers(adminSeverContextPath + "/**").anonymous();
|
.antMatchers(adminSeverContextPath + "/**").anonymous();
|
||||||
|
|||||||
+6
-4
@@ -12,10 +12,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@@ -34,6 +31,11 @@ public class AppShopOrderController {
|
|||||||
@Resource
|
@Resource
|
||||||
private PayOrderService payOrderService;
|
private PayOrderService payOrderService;
|
||||||
|
|
||||||
|
@GetMapping("/")
|
||||||
|
public String index(){
|
||||||
|
return "Welcome to Zsw";
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@ApiOperation("创建商城订单")
|
@ApiOperation("创建商城订单")
|
||||||
// @PreAuthenticated // TODO 暂时不加登陆验证,前端暂时没做好
|
// @PreAuthenticated // TODO 暂时不加登陆验证,前端暂时没做好
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ dubbo:
|
|||||||
|
|
||||||
bxg:
|
bxg:
|
||||||
shop:
|
shop:
|
||||||
API_URL: https://farm.lotus-wallet.com/bxgApp
|
API_URL: https://farm.lotus-wallet.com
|
||||||
SITE_URL: http://project.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
|
ADMIN_API_URL: https://farm.lotus-wallet.com/bxg
|
||||||
Reference in New Issue
Block a user