首先,你得知道这个类是哪个jar包里的,这样才能导入相应的jar包 1 http://findjar.com/ 可以帮你找jar包 2 mvnrepository.com 可以帮你确定导入的jar包的配置