All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.veedo.ragdoll.RagdollProperties Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package tech.veedo.ragdoll;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "veedo.ragdoll")
class RagdollProperties {

    private GlobalAdvice globalAdvice;

    private ExceptionAdvice exceptionAdvice;

    @Data
    protected static class GlobalAdvice {

        /**
         * 是否启用
         */
        private Boolean enabled = false;

        /**
         * 返回统一拦截的包路径,如果没有,则全局返回
         */
        private String basePackages;

        /**
         * 不需要使用全局返回结果的方法
         */
        private String ignoreMethods;

    }

    @Data
    protected static class ExceptionAdvice {

        /**
         * 是否启用
         */
        private Boolean enabled = false;

        /**
         * 错误打印显示模式,默认Log
         */
        private String mode = "log";

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy