Skip to content

cannot found model's view #6

@qiaohui

Description

@qiaohui

https://github.com/qiaohui/credit-card

2017-11-09-17:58:03.810 INFO [restartedMain]-com.pay.card.utils.ApiHelper:67>>register view [CreditBankView] for model [CreditBank] with buildContext.

启动时,model view 会有 register。

但是 api 调用时会找不到 view:

cannot found model's view:class com.pay.card.model.CreditBank
2017-11-09-17:58:17.013 ERROR [http-nio-8080-exec-1]-org.apache.juli.logging.DirectJDKLog:181>>Servlet.service() for servlet [dispatcherServlet] in context with path [/credit-card] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
at com.github.phantomthief.view.mapper.impl.DefaultViewMapperImpl.map(DefaultViewMapperImpl.java:32)
at com.github.phantomthief.view.mapper.ViewMapper.lambda$map$0(ViewMapper.java:16)

帮忙看看是不是我把CardBuildContext使用错了,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions