问题
初用maven,在pom.xml中配置jackson的依赖
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.11.0</version>
</dependency>
idea可以识别依赖
但点击 运行项目,报包找不到异常
分析解决
idea自带一套编译运行脚本,此处项目已使用maven编译运行,为了避免冲突,打开settings
中的runner
勾上 maven编译运行