Yan 0.3
经过一周的重构和开发,我的开源项目,验证码服务,打上了0.3的tag,算是一个release吧。
This release has been focusing on support for different types captcha generators. Now Yan is not only able to provide image/jpeg captcha, but also text/plain and any others.
Changeset:
- Internal API Changes:
- Cache API improved: new CacheItemIdentity and CacheIdStrategy were introduced in to provide convertion between cache item name and captcha info model;
- Captcha Generator API improved: Add CaptchaGeneratorInfo to define some meta information on captcha providers (such as mode code, captcha type);
- Captcha Data Model(CaptchaInfo) and Ticket Data Model improved: configuration parameters are separated from required parameters and has been more generic for different types of generator algorisms;
- External API Changes:
- Rename /image url to /captcha for better literal accuracy;
- /ticket now supports multiple types of applicable format (plain text / json / xml / yaml);
- /ticket now returns the mime type of the captcha generator;
- Add a Simple-Plain-Text generator as a sample for those whose mime type is other than image/jpeg;
- Other changes:
- I created a new branch for next version of Yan. So the code in repository now has multiply branches, you can use ‘hg update branch-name’ to switch between difference branches;
- The sample test page for the service (index.jsp) has been adopt to the new protocol and totally restyled.

Again, grab code from the development repository:
hg clone https://sunng@bitbucket.org/sunng/yan/
If you don’t use mercurial/hg, you can also download the tagged version from the page:
http://bitbucket.org/sunng/yan/downloads/
Just use maven to resolve dependency, build and run the project:
mvn jetty:run
Feel free to report issue
赞一个~
赞
放一个Demo啊。。。
@alswl, 实在是没有机器。。。
@Sunng, 我在后面一篇文章看到了ruby上的图片了,霍霍,满足了
赞,很专业哎
PS: 验证码竟然是frank05