通過@Profile註解可以爲一個Bean賦予對應的profile名稱,如下: @Component @Profile("dev") public class DevDatasourceConfig.
確定! 回上一頁