2020
10-23
10-23
Spring Shell打Jar包时常用小技巧
1、Main-Classspring-shell项目打Jar包的一个必要条件就是,指定Main-Class为org.springframework.shell.Bootstrap一般情况下,如果想在IDE中直接运行项目,显示在控制台中,也会调用org.springframework.shell.Bootstrap中的Main方法。如下:importorg.springframework.shell.Bootstrap;importjava.io.IOException;publicclassHelloApplication{publicstaticvoidmain(String[]args)throwsIOException{B...
继续阅读 >