打开IDEA 点击File—settings-Editor–Inspections 搜索seria 把这两个选上。 然后点击apply—ok。。 使用 选中你要生成的类,Alt+Enter键自动提示,这个时候就有创建提示了