基于maven的springboot项目(maven下含有jsp的spring boot项目如何打包)

本文目录
- maven下含有jsp的spring boot项目如何打包
- maven建立springboot项目application.properties出现这种问题 什么鬼
- Springboot中Maven项目加载架包问题
maven下含有jsp的spring boot项目如何打包
新建一个类或者让主方法的类继承SpringBootServletInitializer ,重写configure方法,
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(application.Class);
}
private static Class《ServletInitializer》 applicationClass = ServletInitializer.class;
pom添加依赖
《!-- 《dependency》 --》
《!-- 《groupId》org.springframework.boot《/groupId》 --》
《!-- 《artifactId》spring-boot-starter-tomcat《/artifactId》 --》
《!-- 《scope》provided《/scope》 --》
《!-- 《/dependency》 --》
packaging改成war
maven建立springboot项目application.properties出现这种问题 什么鬼
install不用每次都进行的...只是因为第一次你的仓库里没有rest-service的依赖...所以install一下让他能够找到这个jar....
Springboot中Maven项目加载架包问题
你改了哪个的groupId,artifactId? 没有改动的内容,怎么知道你pom文件写没写错。。。
如果pom文件没写错,可以右键 maven-》reimport 试试

更多文章:
在from子句中可以出现(如何在from 子句中嵌套查询下面的语句在access中出错!)
2026年10月11日 05:20
countif函数统计个数怎么用(countif函数怎么用 详解Excel中countif函数的使用方法)
2026年10月11日 03:30
正则匹配数字之前的字符(正则表达式如何匹配前面是数字、中间是“/”、后面也是数字,就像2/3专业的模式)
2026年10月11日 03:00
orlnsertbootmediinselected(我电脑开机显示这个是什么意思or insert boot media in select)
2026年10月10日 23:00
display的用法(display是什么意思 详解display的含义和用法)
2026年10月10日 22:00
html全部居中代码(怎么让网页居中显示,html如何让网页居中)
2026年10月10日 21:10




