jiangly (@QAWS12g)Springboot 多模块项目之间如何调用? 中发帖

背景

项目框架如下图所示:
[image]
我需要在common模块中的commoncontroller中调用usermanage模块中的UserService,commoncontroller通过@Autowired注入UserService的Bean, 详细代码如下,末尾附上原项目的zip压缩包,本项目仅限于个人学习交流,欢迎同行指教。我是小白
commoncontroller:

package common;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework....