package com.simple.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * @author Stormeye */ @Component @ConfigurationProperties(prefix = "pay") public class PayProperty { /** * 真实支付 */ private boolean real; public boolean isReal() { return real; } public void setReal(boolean real) { this.real = real; } }