📄 captchaservicesingleton.java
字号:
/* * CaptchaServiceSingleton.java * * Created on 2006年7月11日, 上午10:12 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package tot.image;import com.octo.captcha.service.image.ImageCaptchaService;import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;import com.octo.captcha.engine.image.gimpy.*;import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;/** * * @author Administrator */public class CaptchaServiceSingleton { //private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(new FastHashMapCaptchaStore(),new SimpleListImageCaptchaEngine(),180,100000,75000); private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(new FastHashMapCaptchaStore(),new SimpleListImageByNumonlyEngine(),180,100000,75000); public static ImageCaptchaService getInstance(){ return instance; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -