mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	增加 SecurityProperties 和 WebProperties 默认值,简化配置
This commit is contained in:
		@@ -1,6 +1,8 @@
 | 
			
		||||
package cn.iocoder.yudao.framework.web.config;
 | 
			
		||||
 | 
			
		||||
import lombok.AllArgsConstructor;
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
import lombok.NoArgsConstructor;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		||||
import org.springframework.validation.annotation.Validated;
 | 
			
		||||
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
 | 
			
		||||
@@ -15,14 +17,16 @@ import javax.validation.constraints.NotNull;
 | 
			
		||||
public class WebProperties {
 | 
			
		||||
 | 
			
		||||
    @NotNull(message = "APP API 不能为空")
 | 
			
		||||
    private Api appApi;
 | 
			
		||||
    private Api appApi = new Api("/app-api", "**.controller.app.**");
 | 
			
		||||
    @NotNull(message = "Admin API 不能为空")
 | 
			
		||||
    private Api adminApi;
 | 
			
		||||
    private Api adminApi = new Api("/admin-api", "**.controller.admin.**");
 | 
			
		||||
 | 
			
		||||
    @NotNull(message = "Admin UI 不能为空")
 | 
			
		||||
    private Ui adminUi;
 | 
			
		||||
 | 
			
		||||
    @Data
 | 
			
		||||
    @AllArgsConstructor
 | 
			
		||||
    @NoArgsConstructor
 | 
			
		||||
    @Valid
 | 
			
		||||
    public static class Api {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user