1、通过idea的run as 启动 2、mvn spring-boot:run 3、打成jar包, 用java -jar启动 转载于:https://my.oschina.net/xbding/blog/1545020