package com.example.mina.property; import lombok.Getter; import lombok.Setter; import lombok.ToString; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Configuration; /** * @author 杜云山 * @date 2021/03/05 */ @Getter @Setter @ToString @ConfigurationProperties(prefix = "aeroflex-virtual") @Configuration @EnableConfigurationProperties(AeroflexVirtualBoxProperties.class) public class AeroflexVirtualBoxProperties { private Boolean enable = false; private Integer port = null; }