pull/17/merge
Jared Wang 2021-08-20 01:29:45 -07:00 committed by GitHub
commit 82e0f41fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,11 @@ public class RandCodeImageServlet extends HttpServlet {
* 线=1.414*lineWidth
*/
private static final int lineWidth = 2;
public RandCodeImageServlet() {
// 兼容linux图形处理
System.setProperty("java.awt.headless", "true");
}
@Override
public void doGet(final HttpServletRequest request,
@ -236,4 +241,4 @@ enum RandCodeImageEnum {
return charStr;
}
}
}