springboot 加载jsp 刷新jsp ,刷新Controller (亲自尝试)

Posted 段桥123

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springboot 加载jsp 刷新jsp ,刷新Controller (亲自尝试)相关的知识,希望对你有一定的参考价值。

解决jsp加载成功。
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<!--<scope>provided</scope>-->
</dependency>

!--解决JSP及时刷新-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
</dependency>
<!--解决Controller及时刷新的问题并且在底部插件处写上fork-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>runtime</scope>
</dependency>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>






























以上是关于springboot 加载jsp 刷新jsp ,刷新Controller (亲自尝试)的主要内容,如果未能解决你的问题,请参考以下文章

jsp页面该如何刷新验证码

用按钮刷新jsp中的mysql表

当jsp页面加载后会自动点击按钮,页面会一直刷新要怎么解决。或有其他方法实现自动点击按钮也可以。

Ajax中的load()方法实现指定区域加载或刷新html与jsp

Spring Boot 使用JSP时,热部署配置

为jsp页面动态换肤(即调用不同css文件时),刷新主页时总是会先加载出默认样式,闪一下后才出现设定样式