com.octo.captcha.CaptchaException:

来源:百度知道 编辑:UC知道 时间:2024/06/06 10:31:45
com.octo.captcha.CaptchaException: word is too long: try to use less letters, smaller font or bigger background: text bounds = {text=wwuj
我的j2ee项目启动后出现了这样的问题!请问这是什么问题?

new ComposedWordToImage(new TwistedRandomFontGenerator(new Integer(34),
new Integer(40)), new FunkyBackgroundGenerator(new Integer( 180), new Integer(80)), randomPaster));
你是用的这个方法吧,前面两个参数是字体大小,第三第四个参数是图片的长度和宽度,字符太长就更改第三个参数改大些,字符太高就把第四个参数改大些,我也是遇到这个问题,看到这里没有回答好,就顺便晒一下了,回答有些晚了~_~||

不是吧?代码太长了?!好强啊,还没遇到过这种问题呢

减小代码字体?把你页面的容量变大点