Welcome to my official account, add me as a friend!
Springboot project encountered “handler dispatch failed; nested exception is java.lang.StackOverflowError ”My mistake.
To sum up:
Stackoverflowerror is usually a dead loop or loop dependent.
Caused by: java.lang.StackOverflowError
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
at com.hry.seckill.service.impl.GoodsServiceImpl.getGoodsVoList(GoodsServiceImpl.java:17)
Then check the location of the location and find the error:
@Service
public class GoodsServiceImpl implements GoodsService {
@Autowired
private GoodsService goodsService;
I did not correctly refer to mapper in service, but referred to service, so I can report an error and correct it.
@Service
public class GoodsServiceImpl implements GoodsService {
@Autowired
private GoodsMapper goodsMapper;
Finally, restart the project.
Welcome to my official account, add me as a friend!
Similar Posts:
- [Solved] SpringBoot Startup Error: is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- [Solved] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Consider defining a bean of type ‘xxx’ in your configuration. Autowired(required=true)
- Android Exception: UncaughtException detected: java.lang.RuntimeException: Parcelable encountered IOExcepti
- [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
- Quartz: add transaction rollback error [How to Solve]
- [Solved] Error creating bean with name ‘***’: Injection of resource dependencies failed,Bean named ‘redisService’ is expected to be of type
- [Solved] Cannot resolve symbol ‘SpringJUnit4ClassRunner’
- [Solved] JpaRepository Error: Paging query needs to have a Pageable parameter! Offending method public abstract
- Bridging mechanism of toll free bridging in IOS