Spring boot 學習筆記(一) Spring boot使用註解注入屬性

首先建立一個Dog類 (1)使用@Component @ConfigurationProperties(prefix = 「」)註解web public class Dog { private String name; private Integer age ; public String toString() { return "Dog{" +
相關文章
相關標籤/搜索