window→preferences→Java→Editor→Content Assistant→Advanced,勾选Java Proposals ---->Apply and Close 前提好像是需要安装STS工具