您的位置:首页 > 其它

The method isEmpty(String) is undefined for the type StringUtils解决办法

2018-03-09 14:17 519 查看
在myecplise开发spring项目是出现
The method isEmpty(String) is undefined for the type StringUtils解决办法

把导入的//import org.springframework.util.StringUtils; 
改成 
import org.apache.commons.lang.StringUtils;
注:需要导入org.apache.commons的commons-lang3maven导入方法在pop.xml配置文件中添加  <dependencies>
          <dependency>  
            <groupId>org.apache.commons</groupId>  
            <artifactId>commons-lang3</artifactId>  
            <version>3.1</version>  
        </dependency>  
  </dependencies>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐