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
Post a Comment