Why import is not working in Eclipse?
There may be missing jar files or Jar file may noit added in Build path. try Project-> Clean and build , If still not , remove the respective jar refrence from build path and add again. If its a Maven project run mvn clean .