public Result cflistByIdsListInteger ids ListYlYncf list = new ArrayList; ifids != null && idssize1 list = ylYncfServicelistByIdsids; return Resultoklist; 报错
The error message suggests that there is no primary or single unique constructor found for the interface java.util.List.
To resolve this issue, you can try the following steps:
- Check if you have imported the correct List interface. It should be imported from java.util package.
- Verify that the ylYncfService.listByIds() method returns a List
object. If not, you may need to modify the method to return the correct type. - Ensure that the YlYncf class has a default constructor or a constructor that matches the parameters being passed in the ylYncfService.listByIds() method. If not, you may need to add a constructor to the YlYncf class.
- Verify that the Result class has a constructor that can accept a List
object. If not, you may need to modify the constructor of the Result class to accept the correct type.
By addressing these issues, you should be able to resolve the error
原文地址: http://www.cveoy.top/t/topic/iZUN 著作权归作者所有。请勿转载和采集!