`
啸笑天
  • 浏览: 3437505 次
  • 性别: Icon_minigender_1
  • 来自: China
社区版块
存档分类
最新评论

Eclipse 积累

    博客分类:
  • IDE
阅读更多

Eclipse对静态导入还不能自动插入导入语句。

解决方法:

在包语句后面输入一个通配符静态导入(例如:import static org.example.Constants.*; ),使所有语句能够通过编译。然后可以使用Source>Organize Imports来展开通配符并对导入语句排序。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics