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?
起因:多模块项目 以前没有这个问题 这个版本因为需求 新增了一个模块 然后再这个新增的模块下创建了许多子模块 然后再项目里扫描的地方配置了多路径 本地启服务正常 测试环境第一次通过docker 启动也正常 但是后续通过脚本部署启动就报这个错 需要每次手动删除容器删除镜像手动运行命令启动才行
网上查了 许多说是热部署插件的问题 但我们项目里压根就没有热部署
MybatisConfiguration里的配置: @MapperScans({@MapperScan("net.axx.bxx.*.mapper"),@MapperScan("net.axx.bxx.xxx.*.mapper")})
MapperScannerConfigurer里的配置: mapperScannerConfigurer.setBasePackage("net.axx.bxx.*.mapper,net.axx.bxx.xxx.*.mapper");
大佬们 怎么解决呀
Spring
Java