content: /*
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
   ~                                                                               ~
   ~ The MIT License (MIT)                                                         ~
   ~                                                                               ~
   ~ Copyright (c) 2015-2025 miaixz.org and other contributors.                    ~
   ~                                                                               ~
   ~ Permission is hereby granted, free of charge, to any person obtaining a copy  ~
   ~ of this software and associated documentation files (the "Software"), to deal ~
   ~ in the Software without restriction, including without limitation the rights  ~
   ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     ~
   ~ copies of the Software, and to permit persons to whom the Software is         ~
   ~ furnished to do so, subject to the following conditions:                      ~
   ~                                                                               ~
   ~ The above copyright notice and this permission notice shall be included in    ~
   ~ all copies or substantial portions of the Software.                           ~
   ~                                                                               ~
   ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    ~
   ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      ~
   ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   ~
   ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        ~
   ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ~
   ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN     ~
   ~ THE SOFTWARE.                                                                 ~
   ~                                                                               ~
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  */
  package org.miaixz.bus.starter.wrapper;
  
  import java.util.LinkedHashMap;
  import java.util.LinkedHashSet;
  import java.util.Map;
  import java.util.Set;
  
  import org.miaixz.bus.core.lang.Normal;
  import org.miaixz.bus.spring.GeniusBuilder;
  import org.springframework.boot.context.properties.ConfigurationProperties;
  import org.springframework.boot.web.servlet.ServletRegistrationBean;
  
  import lombok.Getter;
  import lombok.Setter;
  
  /**
   * 配置信息
   *
   * @author Kimi Liu
   * @since Java 17+
   */
  @Getter
  @Setter
  @ConfigurationProperties(prefix = GeniusBuilder.WRAPPER)
  public class WrapperProperties {
  
      /**
       * 设置此注册的名称 如果没有指定，将使用bean名
       */
      private String name = "_wrapper";
      /**
       * 设置注册bean的顺序
       */
      private int order = 100;
  
      /**
       * 设置访问前缀
       */
      private String prefix = Normal.EMPTY;
      /**
       * 标志，表示已启用注册
       */
      private boolean enabled = true;
      /**
       * 扫描controller接口的基本包 Controller 所在包的 Ant 路径规则 主要目的是，给该 Controller 设置指定的前缀
       */
      private String[] basePackages;
      /**
       * 扫描包后的API地址是否入库，结合basePackages使用
       */
      private boolean inStorage;
      /**
       * fastjson、jackson 都支持 AutoType 功能，这个功能在序列化的 JSON 字符串中带上类型信息，在反序列化时，不需要传入类型，实现自动类型识别
       */
      private String autoType;
      /**
       * 为此注册设置初始化参数。调用此方法将替换任何现有的初始化参数
       */
      private Map<String, String> initParameters = new LinkedHashMap<>();
      /**
       * 筛选器要注册的servlet名称,这将替换以前指定的任何servlet名称
       */
      private Set<String> servletNames = new LinkedHashSet<>();
      /**
       * 过滤器将注册到的ServletRegistrationBeans
       */
      private Set<ServletRegistrationBean<?>> servletRegistrationBeans = new LinkedHashSet<>();
  
  }
  