新手在学springboot集成jsp的时候出现的问题
错误代码:
问题:
在templates文件下建立了Index.html,访问的时候跳转过去了,说明了最后一直跳转的是templates文件下的路径
解决方案:
在全局配置文件application.properties,写入这两句话
spring.thymeleaf.cache=false
spring.thymeleaf.enabled=false
运行结果
新手在学springboot集成jsp的时候出现的问题
错误代码:
问题:
在templates文件下建立了Index.html,访问的时候跳转过去了,说明了最后一直跳转的是templates文件下的路径
解决方案:
在全局配置文件application.properties,写入这两句话
spring.thymeleaf.cache=false
spring.thymeleaf.enabled=false
运行结果