内部类Service报错:Unable to instantiate service...Service has no zero argument constructor

最近在写service的时候发现一个问题,service作为内部类时出现错误:

Unable to instantiate service...Service has no zero argument constructor

解决方案

把内部类改成静态内部类:

猜你喜欢

转载自blog.csdn.net/qq_39897005/article/details/79158588