No qualifying bean of type [java.lang.String] found for dependency: expected 出现这个问题的原因是因为多写了一个注解但是没有实体类。如: 或者其他注解下没有内容。