Springboot注入命名规则 默认情况 使用@Component注解注入类,默认是驼峰命名法 例如:public Class UserControl(){} 在springboot中注入的名称是userControl。 使用value命名 使用@Component(“name”),注入名称是name。