maven项目的依赖项scope为provided时,表示此以来项目由运行环境提供,开发时直接启动可能会报NoClassDefFoundError异常
Idea版本2021.3 (其他版本类似)
解决run/debug配置中勾选Add dependencies with “provided” scope to classpath

maven项目的依赖项scope为provided时,表示此以来项目由运行环境提供,开发时直接启动可能会报NoClassDefFoundError异常
Idea版本2021.3 (其他版本类似)
解决run/debug配置中勾选Add dependencies with “provided” scope to classpath