java - Use spring to get rid of main function -



java - Use spring to get rid of main function -

is there anyway can utilize spring rid of main function in java project.

it going standalone program, , want spring rid of main function, , take care of entry point itself.

i understand main function must, talking on line of dynamic web project, wherein not define main classes, services etc.

if want standalone application, impossible. should rather load context in main method, , run specific bean's method (treat main method entry point app).

java spring

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -