In rails I can do a rails console
and get an console where I can get an app console where I can generate app specific objects and perform operations.
Is there anything like that for Spring boot?
Edit: I want to be able to generate objects on the fly. For example when I open up the console I can create an object defined in my application, use it, then save that data to the database.
Inside of my 'console':
MyObj myobject = new MyObj();
System.out.println(myobject.toString());
myobject.saveSomeStuff();
答案 0 :(得分:0)
I think you're looking for the Spring Boot CLI.
Your "performing operations" isn't particularly clear, and there may be other ways to do what you're wanting. If Spring Roo is your thing, it can autogenerate persistence objects.
Based on your edit, you may want the Spring Boot remote shell. I'm not sure whether you get a full Groovy or BeanShell REPL.