草庐IT

setUserService

全部标签

java - <method> 中的方法 setUserService 的参数 0 需要找不到类型为 <service> 的 bean

我已经解决了这个问题,但找不到发生了什么....尝试@ComponentScan,尝试命名我的服务,但似乎都没有用。错误:03:35:05,193WARN[org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext](ServerServiceThreadPool--81)Exceptionencounteredduringcontextinitialization-cancellingrefreshattempt:org.springframework.beans.fa