PropertySource和Configuration一起使用,以下是API中的解釋
Annotation providing a convenient and declarative mechanism for adding a PropertySource to Spring's Environment. To be used in conjunction with @Configuration classes.(為把屬性資源添加到Spring的環境變量中提供一種便捷的聲明機制,要配合Configuration注解一起使用)
以下是測試類