Browse Source

clean up chatto application class

master
nova 4 years ago
parent
commit
df8e735a9b
  1. 18
      chatto/src/main/java/org/ros/chatto/ChattoApplication.java
  2. 14
      chatto/src/main/java/org/ros/chatto/captcha/WebCaptcha.java

18
chatto/src/main/java/org/ros/chatto/ChattoApplication.java

@ -11,23 +11,7 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
public class ChattoApplication extends SpringBootServletInitializer {
public static void main(String[] args) throws SQLException {
SpringApplication application = new SpringApplication(ChattoApplication.class);
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
SpringApplication.run(ChattoApplication.class, args);
}
@Override

14
chatto/src/main/java/org/ros/chatto/captcha/WebCaptcha.java

@ -24,3 +24,17 @@ public class WebCaptcha {
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
Loading…
Cancel
Save