Java---报错The type List is not generic; it cannot be parameterized with arguments <Role>==List打包错误

提示The type List is not generic; it cannot be parameterized with arguments 错误。
翻译:类型列表不是泛型;不能用参数参数化它
如下:
因为List打包错误导致的
在这里插入图片描述
解决方法:
这个包是错误的,换到

import java.util.List; 

在这里插入图片描述
如下:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44182157/article/details/108938638