tech.veedo.ragdoll.RagdollProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ragdoll-global-advice Show documentation
Show all versions of ragdoll-global-advice Show documentation
springboot plugins to process return advise and exception
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";
}
}