Eclipse运行Springboot出现Caused by: java.lang.ClassNotFoundException: Cannot find class: User

错误提示

Caused by: java.lang.ClassNotFoundException: Cannot find class: User
    at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200) ~[mybatis-3.4.6.jar:3.4.6]
    at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89) ~[mybatis-3.4.6.jar:3.4.6]
    at org.apache.ibatis.io.Resources.classForName(Resources.java:261) ~[mybatis-3.4.6.jar:3.4.6]
    at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116) ~[mybatis-3.4.6.jar:3.4.6]
    ... 57 common frames omitted

修改

在application.properties中添加扫描user的路径

Eclipse运行Springboot出现Caused by: java.lang.ClassNotFoundException: Cannot find class: User_第1张图片

添加user的路径

你可能感兴趣的:(springboot,错误)