报错内容:
Error creating bean with name 'modelApplicationServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lxjn.hgd.module.model.mapper.ModelApplicationMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Error creating bean with name 'modelApplicationServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lxjn.hgd.module.model.mapper.ModelApplicationMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
图:
原因:myBatistaplus代码生成器生成的代码
原因:myBatistaplus代码生成器生成的代码
mapper层代码不会加@Mapper注解
解决办法:
方法一、给mapper层代码加上@Mapper注解
方法二、在启动类上加@MapperScan("mapper包的引用路径")注解
版权声明:《 springboot项目使用myBatistaplus代码生成器生成代码后启动报错问题 》为柳絮江南飘原创文章,转载请注明出处!
最后编辑:2020-11-20 09:11:54
2021-01-10 18:36
链接 - http://gasthausamflughafen.de/food-delivery-bitcoin.php
2021-01-10 14:29
链接 - http://gasthausamflughafen.de/failed-bitcoin.php
2021-01-10 04:55
链接 - http://stuntszene.de/cara-menambang-bitcoin-di-hp-android.php
2021-01-10 04:55
链接 - http://stuntszene.de/win-free-bitcoins.php
2021-01-10 01:18
链接 - - http://t-protex.de/bitcoin-cash-purchase-disabled.php
2021-01-10 00:22
链接 - - http://natur-holzbausteine.de/dutch-exchange-bitcoin.php
2021-01-09 23:38
链接 - http://gasthausamflughafen.de/market-bitcoin-gold.php
2021-01-09 18:59
链接 - http://t-protex.de/can-i-buy-and-sell-bitcoin-same-day.php
2021-01-09 14:27
链接 - http://gasthausamflughafen.de/how-to-exchange-btc-to-usd-on-binance.php
2021-01-09 10:57
链接 - - http://gasthausamflughafen.de/bitcoin-cash-to-btc-exchange.php