2020
10-10
10-10
Springboot集成jsp及部署服务器实现原理
1.在application配置文件里面加入配置:spring:mvc:view:prefix:/jsp/suffix:.jsp2.手动在src->main->下面创建webapp文件夹3.在Springboot启动类加入如下代码:@BeanpublicInternalResourceViewResolversetupViewResolver(){InternalResourceViewResolverresolver=newInternalResourceViewResolver();resolver.setPrefix("/jsp/");resolver.setSuffix(".jsp");returnresolver;}4.在webapp...
继续阅读 >