问题报错如下:
项目运行启动后,控制输出错误信息是这样的:
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean named 'captchaProducer' that could not be found.
Action:
Consider defining a bean named 'captchaProducer' in your configuration.
大致的意思是:一个组件必须的bean对象,名字叫captchaProducer它的没有找到。根据问题,既然是对象没有找到,那我们就去找这个对象然后创建即可,代码如下
创建好了名字叫captchaProducer这个bean对象,问题就解决了