clean up chatto application class

This commit is contained in:
nova 2019-12-13 19:31:42 +05:30
parent ddc7f15498
commit df8e735a9b
2 changed files with 15 additions and 17 deletions

View File

@ -11,23 +11,7 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
public class ChattoApplication extends SpringBootServletInitializer { public class ChattoApplication extends SpringBootServletInitializer {
public static void main(String[] args) throws SQLException { public static void main(String[] args) throws SQLException {
SpringApplication application = new SpringApplication(ChattoApplication.class); SpringApplication.run(ChattoApplication.class, args);
application.run();
// WebCaptcha webCaptcha = WebCaptcha.builder().captchaBehaviour(new SimpleCaptchaBehavior()).build();
// webCaptcha.generateCaptcha();
//
// // @formatter:off
// webCaptcha = WebCaptcha.builder()
// .captchaBehaviour(
// ManualCaptchaBehaviour.builder()
// .length(8)
// .style("black")
// .build()
// ).build();
//
// // @formatter:on
} }
@Override @Override

View File

@ -24,3 +24,17 @@ public class WebCaptcha {
return captchaBehaviour.getRandomChars(quantity); return captchaBehaviour.getRandomChars(quantity);
} }
} }
// WebCaptcha webCaptcha = WebCaptcha.builder().captchaBehaviour(new SimpleCaptchaBehavior()).build();
// webCaptcha.generateCaptcha();
//
// // @formatter:off
// webCaptcha = WebCaptcha.builder()
// .captchaBehaviour(
// ManualCaptchaBehaviour.builder()
// .length(8)
// .style("black")
// .build()
// ).build();
//
// // @formatter:on