Invalid bound statement, No converter found for return value of type:

SpringBoot2.0学习的Bug(Invalid bound statement, No converter found for return value of type:)

一、Invalid bound statement:绑定语句无效,这个问题很复杂,每一个人的解决方式不同,我的是mapper-locations中映射路径问题,我看着没问题,但还是重新copy路径试了一下。还真是这个问题。

mybatis:
  config-location: classpath:mybatis/mybatis-config.xml
  mapper-locations: classpath:mybatis/mapper/*.xml

二、[org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class com.lsl.springbootdatajdbc.Entity.Table]

解决办法:我这里是实体类没写GET、SET方法。

你可能感兴趣的:(spring,boot)