在Spring Boot中,可以使用Spring Framework來定義bean及其依賴注入。 @ComponentScan 注釋用於查詢 bean 以及使用 @Autowired 注釋注入的相應內容。
確定! 回上一頁