錯誤是在類中企圖使用
@ConfigurationProperties(prefix = "hgx.security")加載,配置文件中的屬性,但是一直報錯
Description:
Field securityProperties in hgx.parent.parent.Validate.ValidateCodeFilter required a bean of type 'hgx.parent.parent.properties.SecurityProperties' that could not be found.
Action:
Consider defining a bean of type 'hgx.parent.parent.properties.SecurityProperties' in your configuration.
在啓動類中加入
@ComponentScan({"hgx.parent.parent.properties"})即可解決。