springboot module请求不到controller

记录一下,今天在项目中遇到的坑。
公司项目用的是springboot多模块管理,建了个module发现请求不到controller,下面我来总结下,解决思路:
1,看启动类路径有没有错误
springboot module请求不到controller
2,结合网络上可能会出现的问题,启动类要和controller包同级目录
springboot module请求不到controller
3,就是我项目中出现的问题,主module也就是启动类的pom文件要引入你新增的module。例如,新的module basic-core,在主module basic-main的pom里加入依赖
springboot module请求不到controller