阅读:3045回复:0
java: 程序包org.slf4j不存在解决办法之一: idea-File=>Settings=>Build,Execution,Deployment=>Build Tools=>Maven=>Runner => 勾选Delegate IDE build/run actions to maven 完成。 解决办法之二 (本人觉得无效): <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.1</version> </dependency> 综上: 一个是scope <scope>compile</scope> 一个是 加slf4j-api 依赖 |
|