Dependancy Management in Ultimate
已回答
Hello,
I am trying to use the integrated build enviroment in ultimate.
The dependency I have added is : com.fasterxml.jackson.core:jackson-databind:2.8.8
And the exception I get is : java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper
On line :
ObjectMapper mapper = new ObjectMapper();
Dependancies is setup like:

And I am running it from the tomcat run option in the IDE.
Why is it complaining about the missing dependency?
请先登录再写评论。
Did you add this dependency to the artifact that is deployed to Tomcat? See https://www.jetbrains.com/help/idea/artifacts.html.
Is it just a case of dragging Jackson from available elements to WEB-INF\classes ?
Should be WEB-INF/lib. Isn't there some button at the bottom suggesting to add a missing dependency to the artifact?
Brilliant - thanks that fixed it with the "Fix" button.