@ConfigurationProperties(prefix = "imooc.security")
public class SecurityProperties {
.......
}
@RestController
public class BrowserSecurityController {
@Autowired
private SecurityProperties securityProperties;
}
启动运行会报错:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field securityProperties in com.imooc.security.browser.BrowserSecurityController required a bean of type 'imooc.security.core.properties.SecurityProperties' that could not be found.
Action:
Consider defining a bean of type 'imooc.security.core.properties.SecurityProperties' in your configuration.
Delete94
chandou
相关分类