为什么我照着运行,报错
Parameter 0 of method userFindAll in web.config.RouterFunctionConfiguration required a bean of type 'UserRepository' that could not found.
需要需要依赖某个模块,需要引入它
比如 service 模块依赖 dao 模块,需要在 service 里添加
<dependencies> <dependency> <groupId>com.liuyanzhao.sell</groupId> <artifactId>sell-dao</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies>
目测是依赖没依赖好 自己看看依赖