abel533 / Mapper

Mybatis Common Mapper - Easy to use
https://mybatis.io
MIT License
7.32k stars 1.63k forks source link

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? #885

Closed UltramanNoa closed 10 months ago

UltramanNoa commented 1 year ago

新增子模块后 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"); 配置这些之后启动就报这个错 项目里没有用到热部署插件

abel533 commented 1 year ago

用错注解了,注意包名。 https://github.com/abel533/Mapper/blob/master/spring/src/main/java/tk/mybatis/spring/annotation/MapperScan.java