添加com.sun.xml.security依赖声明;删除无用的import com.sun.image.codec.jpeg

This commit is contained in:
Zhang Cheng 2017-06-30 10:33:50 +08:00
parent 0cc50efbaa
commit 2da6ff69a2
2 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,12 @@
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.xml.security/xml-security-impl -->
<dependency>
<groupId>com.sun.xml.security</groupId>
<artifactId>xml-security-impl</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee-management_1.1_spec</artifactId>

View File

@ -24,7 +24,6 @@ import com.octo.captcha.component.word.wordgenerator.ComposeDictionaryWordGenera
import com.octo.captcha.component.word.wordgenerator.WordGenerator;
import com.octo.captcha.engine.image.ListImageCaptchaEngine;
import com.octo.captcha.image.gimpy.GimpyFactory;
import com.sun.image.codec.jpeg.ImageFormatException;
public class CaptchaEngineEx extends ListImageCaptchaEngine {
@ -97,4 +96,4 @@ public class CaptchaEngineEx extends ListImageCaptchaEngine {
background, randomPaster, backDef, textDef, postDef);
addFactory(new GimpyFactory(dictionnaryWords, word2image));
}
}
}