spring boot 报错:
Caused by: org.springframework.beans.NotWritablePropertyException:
Invalid property ‘mapperHelper’ of bean
class [org.mybatis.spring.mapper.MapperFactoryBean]:
Bean property ‘mapperHelper’ is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?

原因是:通用mapper不支持热部署,不支持devtool。

解决方法:在pom.xml屏蔽掉热部署就OK了。

<!-- 热启动配置  -->
 <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-devtools</artifactId>
     <optional>true</optional>
 </dependency>

 

相关文章:

  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-12-29
  • 2022-02-19
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案