SpringBoot启动方式

一、第一种就是快速入门那样只启动一个类;

第二种:App运行main方法扫描包:

 

 发布:项目打成jar包,直接运行App中的main方法;

@ComponentScan(basePackages= {" ", " "}) ;扫描多个包;

posted @ 2019-10-06 22:01  wmqiang  阅读(126)  评论(0编辑  收藏  举报