預設情況下,被 @Autowired 標註的參數或值域,一定要在Spring 管理的Bean 中能夠找到,若希望允許找不到時設定為 null ,可以指定 @Autowired(required=false) 。 @ ...
確定! 回上一頁