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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -