1 父模块 packaging 一定要定义为 pom。
2 如果使用springboot,请讲springboot版本 依赖放在 dependencyManagement 中,而不是直接写 parent。
3 引入了web starter 的 模块一定要定义 主运行类 application
4 提示找不到类,但是代码中没有报错的时候,clear 然后再install。
maven 多模块打包常见问题
最新推荐文章于 2024-01-19 22:17:15 发布
1 父模块 packaging 一定要定义为 pom。
2 如果使用springboot,请讲springboot版本 依赖放在 dependencyManagement 中,而不是直接写 parent。
3 引入了web starter 的 模块一定要定义 主运行类 application
4 提示找不到类,但是代码中没有报错的时候,clear 然后再install。