title: spring boot remote shell custom command
body: <p>I try to add a new custom command to the spring boot remote shell without success.
  In the documentation is only a groovy example available but I like to use Java do create a new command.</p>
  
  <p><a href="http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-remote-shell.html">http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-remote-shell.html</a>
  I also check the CRaSH documentation: <a href="http://www.crashub.org/1.3/reference.html#_java_commands">http://www.crashub.org/1.3/reference.html#_java_commands</a></p>
  
  <p>I put my class under package commands and crash.commands but I don't see my new command if I connect to the shell via ssh and type help. Any idea what I'm doing wrong? </p>
  
  <p>Here is my Java Code:</p>
  
  <pre><code>package commands;
  
  import org.crsh.cli.Command;
  import org.crsh.cli.Usage;
  import org.crsh.command.BaseCommand;
  import org.springframework.stereotype.Component;
  
  @Component
  public class hello extends BaseCommand {
  
    @Command
    @Usage("Say Hello")
    public String test() {
      return "HELLO";
    }
  } 
  </code></pre>