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使用错了,谢谢!
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:
帮忙看看是不是我把CardBuildContext使用错了,谢谢!