Spring boot 学习笔记(一) Spring boot使用注解注入属性

首先建立一个Dog类 (1)使用@Component @ConfigurationProperties(prefix = “”)注解web public class Dog { private String name; private Integer age ; public String toString() { return "Dog{" +
相关文章
相关标签/搜索