Skip to content

mapper 中定义CrudRepository中没有的方法可以吗 #2

Open

Description

我写的报这个

Caused by: org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'todoMapper' defined in io.gitee.n__n.mapper.TodoMapper defined in @EnableJdbcRepositories declared on MyBatisJdbcConfig: 
    Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.lang.String io.gitee.n__n.mapper.TodoMapper.selectActionById()! 
   Reason: No property selectActionById found for type Todo!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions