報錯了怎么辦?
?Description: Field personProperties in com.example.demo.MyController required a bean of type 'com.example.demo.PersonProperties' that could not be found. Action: Consider defining a bean of type 'com.example.demo.PersonProperties' in your configuration.
2017-06-28
檢查下有沒有寫PersonProperties類,寫了的話再檢查類頭部的注解@ConfigurationProperties是否書寫,還有該注解的前綴prefix是否配置,并且在application中是否初始化(個人覺得這一步實際無影響)