SpringBoot学习中出现:Failed to instantiate [com.powernode.dao.PaymentDao]: Specified class is an interface的错误
为了练习自己的敲代码的能力,对一个小module,又写了一次

里面的dao接口,实体类,以及mapper文件都使用了一个相同的name,只是P大小写问题
导致出现了:Failed to instantiate [com.powernode.dao.PaymentDao]: Specified class is an interface,指定的类是一个接口。

解决办法:将第二个module中的dao接口,实体类和mapper文件改名。

浙公网安备 33010602011771号