时间:2024-10-12 03:05:47
1、默认的打包方式为jar。
2、使用packaging标签将打包方式修改为war。
3、启动类继承SpringBootServletInitializer,这样打包出来的包就为war。